2022-01-06 16:18:30 +05:30
|
|
|
# Common Tests - Test independent of all platforms
|
|
|
|
|
set(TEST_SRC
|
|
|
|
|
hipStreamPerThread_Basic.cc
|
|
|
|
|
hipStreamPerThread_Event.cc
|
|
|
|
|
hipStreamPerThread_MultiThread.cc
|
|
|
|
|
hipStreamPerThread_DeviceReset.cc
|
2022-07-08 15:19:24 +05:30
|
|
|
hipStreamPerThrdTsts.cc
|
2023-02-28 05:24:03 +05:30
|
|
|
hipStreamPerThrdCompilerOptn.cc
|
2022-01-06 16:18:30 +05:30
|
|
|
)
|
|
|
|
|
|
2024-07-12 20:55:55 +05:30
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set(TEST_SRC ${TEST_SRC}
|
|
|
|
|
hipGetProcAddressSptApis.cc)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-02-28 05:24:03 +05:30
|
|
|
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()
|
|
|
|
|
|
2022-02-09 08:17:45 -08:00
|
|
|
hip_add_exe_to_target(NAME StreamPerThreadTest
|
|
|
|
|
TEST_SRC ${TEST_SRC}
|
|
|
|
|
TEST_TARGET_NAME build_tests)
|