Files
rocm-systems/projects/hip-tests/catch/unit/streamperthread/CMakeLists.txt
T
systems-assistant[bot] 7105a89a51 Add 'projects/hip-tests/' from commit '5ce508401e1934053b127de5bf756dcd56a326a2'
git-subtree-dir: projects/hip-tests
git-subtree-mainline: cc7a96c46f
git-subtree-split: 5ce508401e
2025-08-10 02:09:49 +00:00

27 lines
844 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
hipStreamPerThread_Basic.cc
hipStreamPerThread_Event.cc
hipStreamPerThread_MultiThread.cc
hipStreamPerThread_DeviceReset.cc
hipStreamPerThrdTsts.cc
hipStreamPerThrdCompilerOptn.cc
)
if(HIP_PLATFORM MATCHES "amd")
set(TEST_SRC ${TEST_SRC}
hipGetProcAddressSptApis.cc)
endif()
if(HIP_PLATFORM MATCHES "amd")
set_source_files_properties(hipStreamPerThrdCompilerOptn.cc PROPERTIES COMPILE_OPTIONS "-fgpu-default-stream=per-thread")
endif()
if(HIP_PLATFORM MATCHES "nvidia")
set_source_files_properties(hipStreamPerThrdCompilerOptn.cc PROPERTIES COMPILE_OPTIONS "--default-stream=per-thread")
endif()
hip_add_exe_to_target(NAME StreamPerThreadTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)