mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Isuue #875 clarified that CL_INVALID_BUFFER_SIZE should be returned if clCreateBuffer is passed a pointer returned by clSVMAlloc as its host_ptr and the size of the buffer exceeds the size of the SVM allocation. Add a new negative test to ensure CL_INVALID_BUFFER_SIZE is returned when the size of buffer exceeds the size of the SVM allocation. Fixes #1701
24 lines
698 B
CMake
24 lines
698 B
CMake
set(MODULE_NAME SVM)
|
|
|
|
set(${MODULE_NAME}_SOURCES
|
|
main.cpp
|
|
test_allocate_shared_buffer.cpp
|
|
test_allocate_shared_buffer_negative.cpp
|
|
test_byte_granularity.cpp
|
|
test_cross_buffer_pointers.cpp
|
|
test_enqueue_api.cpp
|
|
test_fine_grain_memory_consistency.cpp
|
|
test_fine_grain_sync_buffers.cpp
|
|
test_pointer_passing.cpp
|
|
test_set_kernel_exec_info_svm_ptrs.cpp
|
|
test_shared_address_space_coarse_grain.cpp
|
|
test_shared_address_space_fine_grain.cpp
|
|
test_shared_address_space_fine_grain_buffers.cpp
|
|
test_shared_sub_buffers.cpp
|
|
test_migrate.cpp
|
|
)
|
|
|
|
set_gnulike_module_compile_flags("-Wno-sometimes-uninitialized -Wno-sign-compare")
|
|
|
|
include(../CMakeCommon.txt)
|