Files
rocm-systems/tests/catch/unit/module/CMakeLists.txt
T
dkrottap 8763c8c2ad SWDEV-289405 - [catch2][dtest][module] Migration of Module files to CATCH2 framework (#2351)
Migrated all module related files to CATCH2 framework and optimized to
have single module kernel file

Change-Id: I39aa28ef22c1b2f4d0014ca32b59b9c645b725dc
2021-09-17 11:39:36 +05:30

52 lines
1.5 KiB
CMake

# Common Tests - Test independent of all platforms
if(HIP_PLATFORM MATCHES "amd")
set(TEST_SRC
hipExtLaunchKernelGGL.cc
hipExtModuleLaunchKernel.cc
hipExtLaunchMultiKernelMultiDevice.cc
hipModuleLaunchKernel.cc
hipFuncSetCacheConfig.cc
hipModuleUnload.cc
hipFuncSetAttribute.cc
hipModuleLoadData.cc
hipFuncSetSharedMemConfig.cc
hipManagedKeyword.cc
hipModuleGetGlobal.cc
hipFuncGetAttributes.cc
hipModule.cc
hipModuleLoadDataMultThreadOnMultGPU.cc
hipModuleLoadDataMultThreaded.cc
hipModuleLoadMultiThreaded.cc
hipModuleLoadUnloadStress.cc
hipModuleNegative.cc
hipModuleOccupancyMaxPotentialBlockSize.cc
hipModuleTexture2dDrv.cc
hipOpenCLCOTest.cc
)
else()
set(TEST_SRC
hipModuleLaunchKernel.cc
hipFuncSetCacheConfig.cc
hipModuleUnload.cc
hipFuncSetAttribute.cc
hipModuleLoadData.cc
hipFuncSetSharedMemConfig.cc
hipManagedKeyword.cc
hipModuleGetGlobal.cc
hipFuncGetAttributes.cc
hipModule.cc
hipModuleLoadDataMultThreadOnMultGPU.cc
hipModuleLoadDataMultThreaded.cc
hipModuleLoadMultiThreaded.cc
hipModuleLoadUnloadStress.cc
hipModuleNegative.cc
hipModuleOccupancyMaxPotentialBlockSize.cc
)
endif()
add_custom_target(module_kernels.code COMMAND ${CMAKE_CXX_COMPILER} --genco ${HIP_COMMON_DIR}/tests/catch/unit/module/module_kernels.cc -o ${HIP_PATH}/catch/hipTestMain/module_kernels.code -I${HIP_PATH}/include/ -I${HIP_COMMON_DIR}/tests/catch/include)
# Create shared lib of all tests
add_library(ModuleTest SHARED EXCLUDE_FROM_ALL ${TEST_SRC})
add_dependencies(build_tests ModuleTest module_kernels.code)