mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 15:19:02 +00:00
API Feature Consistency Test, Part 1 (#875)
* add api consistency test for Shared Virtual Memory * add memory model and device enqueue consistency tests * added pipes test clang-format fixes * simplify diffs * add negative tests for when features are not supported Previously, this test emitted warnings in the log if a feature wasn't supported and a query or API call didn't generated the expected value. After this change, these tests will fail if a query or API call does not generate the expected value or error condition. * switch handling of expected error codes to test_failure_error * fix formatting * use valid pipe creation parameters * remove calls to clFinish as per review comments * purposefully pass a bogus pointer to SVM free functions * fix pointer passed to clEnqueueSVMFree * change the bogus pointer to a known bit pattern
This commit is contained in:
@@ -129,3 +129,16 @@ extern int test_image_properties_queries(cl_device_id deviceID,
|
||||
cl_context context,
|
||||
cl_command_queue queue,
|
||||
int num_elements);
|
||||
|
||||
extern int test_consistency_svm(cl_device_id deviceID, cl_context context,
|
||||
cl_command_queue queue, int num_elements);
|
||||
extern int test_consistency_memory_model(cl_device_id deviceID,
|
||||
cl_context context,
|
||||
cl_command_queue queue,
|
||||
int num_elements);
|
||||
extern int test_consistency_device_enqueue(cl_device_id deviceID,
|
||||
cl_context context,
|
||||
cl_command_queue queue,
|
||||
int num_elements);
|
||||
extern int test_consistency_pipes(cl_device_id deviceID, cl_context context,
|
||||
cl_command_queue queue, int num_elements);
|
||||
|
||||
Reference in New Issue
Block a user