Commit 7a009bd4 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber

Small fixes.

parent 5ff7fd4e
......@@ -45,6 +45,7 @@ inline constexpr int getWarpSize()
return 64;
#endif
#endif
return -1;
}
// When we transfer data between the GPU and the CPU we use 1 MiB buffer. This
......
......@@ -19,3 +19,15 @@ if( BUILD_CUDA )
TARGET_LINK_LIBRARIES( DevicePointerCudaTest ${GTEST_BOTH_LIBRARIES} )
ADD_TEST( DevicePointerCudaTest ${EXECUTABLE_OUTPUT_PATH}/DevicePointerCudaTest${CMAKE_EXECUTABLE_SUFFIX} )
endif( BUILD_CUDA )
if( BUILD_HIP )
HIP_ADD_EXECUTABLE( SharedPointerHipTest SharedPointerHipTest.cpp )
TARGET_COMPILE_OPTIONS( SharedPointerHipTest PRIVATE ${CMAKE_HIPCXX_FLAGS} ${CXX_TESTS_FLAGS} )
TARGET_LINK_LIBRARIES( SharedPointerHipTest ${GTEST_BOTH_LIBRARIES} )
ADD_TEST( SharedPointerHipTest ${EXECUTABLE_OUTPUT_PATH}/SharedPointerHipTest${CMAKE_EXECUTABLE_SUFFIX} )
HIP_ADD_EXECUTABLE( DevicePointerHipTest DevicePointerHipTest.cpp )
TARGET_COMPILE_OPTIONS( DevicePointerHipTest PRIVATE ${CMAKE_HIPCXX_FLAGS} ${CXX_TESTS_FLAGS} )
TARGET_LINK_LIBRARIES( DevicePointerHipTest ${GTEST_BOTH_LIBRARIES} )
ADD_TEST( DevicePointerHipTest ${EXECUTABLE_OUTPUT_PATH}/DevicePointerHipTest${CMAKE_EXECUTABLE_SUFFIX} )
endif( BUILD_HIP )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment