EXSWHTEC-112 - Implement tests for hipModuleGetFunction #21

Change-Id: Id0eee32b3f330c8d9156df30d3b0733082a6ba0a
This commit is contained in:
Mirza Halilčević
2023-12-28 19:14:45 +01:00
committed by Rakesh Roy
orang tua 2c6d940ac0
melakukan d143e4c486
3 mengubah file dengan 113 tambahan dan 4 penghapusan
+11 -4
Melihat File
@@ -21,12 +21,18 @@
# Common Tests - Test independent of all platforms
set(TEST_SRC
hip_module_common.cc
hipModuleLoad.cc
hipModuleLoadData.cc
hipModuleLoadDataEx.cc
hipModuleUnload.cc
hipModuleLoad.cc
hipModuleLoadData.cc
hipModuleLoadDataEx.cc
hipModuleUnload.cc
hipModuleGetFunction.cc
)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/get_function_module.code
COMMAND ${CMAKE_CXX_COMPILER} --genco --std=c++17 ${CMAKE_CURRENT_SOURCE_DIR}/get_function_module.cc -o get_function_module.code
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/get_function_module.cc)
add_custom_target(get_function_module ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/get_function_module.code)
add_custom_target(empty_module.code
COMMAND ${CMAKE_CXX_COMPILER} --genco ${OFFLOAD_ARCH_STR}
${CMAKE_CURRENT_SOURCE_DIR}/empty_module.cc
@@ -129,6 +135,7 @@ hip_add_exe_to_target(NAME ModuleTest
COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
add_dependencies(build_tests empty_module.code)
add_dependencies(ModuleTest get_function_module)
if(HIP_PLATFORM MATCHES "amd")
add_dependencies(build_tests copyKernel.code copyKernel.s)