6429ef1b60
- https://github.com/ROCm/hip-tests/pull/194 - https://github.com/ROCm/hip-tests/pull/36 - https://github.com/ROCm/hip-tests/pull/44 - https://github.com/ROCm/hip-tests/pull/47 - https://github.com/ROCm/hip-tests/pull/62 - https://github.com/ROCm/hip-tests/pull/63 - https://github.com/ROCm/hip-tests/pull/64 - https://github.com/ROCm/hip-tests/pull/65 - https://github.com/ROCm/hip-tests/pull/66 - https://github.com/ROCm/hip-tests/pull/67 - https://github.com/ROCm/hip-tests/pull/68 - https://github.com/ROCm/hip-tests/pull/69 - https://github.com/ROCm/hip-tests/pull/142 - https://github.com/ROCm/hip-tests/pull/196 - https://github.com/ROCm/hip-tests/pull/238 Change-Id: I74f7fef76d7d536b1cf89dad3e527c92d1cd21b5
27 righe
1.1 KiB
CMake
27 righe
1.1 KiB
CMake
# Common Tests - Test independent of all platforms
|
|
set(TEST_SRC
|
|
hipOccupancyMaxActiveBlocksPerMultiprocessor.cc
|
|
hipOccupancyMaxActiveBlocksPerMultiprocessor_old.cc
|
|
hipOccupancyMaxPotentialBlockSize.cc
|
|
hipOccupancyMaxPotentialBlockSize_old.cc
|
|
hipModuleOccupancyMaxPotentialBlockSize.cc
|
|
hipModuleOccupancyMaxPotentialBlockSizeWithFlags.cc
|
|
hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.cc
|
|
hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.cc
|
|
hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags.cc
|
|
)
|
|
|
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/simple_kernel.code
|
|
COMMAND ${CMAKE_CXX_COMPILER} --genco --std=c++17
|
|
${CMAKE_CURRENT_SOURCE_DIR}/simple_kernel.cc
|
|
-o simple_kernel.code --rocm-path=${ROCM_PATH}
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/simple_kernel.cc)
|
|
|
|
add_custom_target(simple_kernel ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/simple_kernel.code)
|
|
|
|
hip_add_exe_to_target(NAME OccupancyTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests)
|
|
|
|
add_dependencies(OccupancyTest simple_kernel)
|