-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Test for set_final_data(..) method #122
Conversation
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Though, should other types be tested here as well to ensure that there is no failure?
if (data_vector[i] != true) | ||
assert(false); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lacks return 0;
Also, there're tests for |
|
||
for (size_t i = 0; i < size; i++) { | ||
if (data_vector[i] != true) | ||
assert(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you write some message and return 1 to be more user friendly?
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
@s-kanaev The test was moved to the buffer.cpp. It was extracted for int and double types. |
Fixed set_final_data() taking std::vector<bool> which was not compiling because such a vector has no data method. The patch adds a special case for bool type. Test: intel/llvm-test-suite#122 Signed-off-by: mdimakov [email protected]
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov [email protected]