Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions compyle/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ def get_backend(backend=None):

minmax_operator_tpl = """

__device__ ${dtype}()
{
}

__device__ ${dtype}(${dtype} const volatile &src)
{
% for prop in prop_names:
% if not only_max:
this->cur_min_${prop} = src.cur_min_${prop};
% endif
% if not only_min:
this->cur_max_${prop} = src.cur_max_${prop};
% endif
% endfor
}
Comment on lines +100 to +114
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback


__device__ ${dtype} volatile &operator=(
${dtype} const &src) volatile
{
Expand Down
Loading