File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ set(OFFLOAD_UNITTESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
19
19
20
20
function (add_offload_test_device_code test_filename test_name )
21
21
cmake_parse_arguments (
22
- "ARGS " "WITH_DEVICE_MATH_LIBS" "" "" ${ARGN} )
22
+ "OFFLOAD_TESTS " "WITH_DEVICE_MATH_LIBS" "" "" ${ARGN} )
23
23
24
24
set (SRC_PATH ${CMAKE_CURRENT_SOURCE_DIR} /${test_filename} )
25
25
set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY )
@@ -40,9 +40,9 @@ function(add_offload_test_device_code test_filename test_name)
40
40
endif ()
41
41
42
42
if (nvptx_arch AND CUDAToolkit_FOUND )
43
- set (nvptx_compile_flags ${ARGS_UNPARSED_ARGUMENTS } )
43
+ set (nvptx_compile_flags ${OFFLOAD_TESTS_UNPARSED_ARGUMENTS } )
44
44
45
- if (ARGS_WITH_DEVICE_MATH_LIBS )
45
+ if (OFFLOAD_TESTS_WITH_DEVICE_MATH_LIBS )
46
46
file (GLOB libdevice_paths "${CUDAToolkit_LIBRARY_ROOT} /nvvm/libdevice/libdevice.*.bc" )
47
47
if (libdevice_paths )
48
48
list (GET libdevice_paths 0 libdevice_path )
@@ -77,9 +77,9 @@ function(add_offload_test_device_code test_filename test_name)
77
77
endif ()
78
78
79
79
if (amdgpu_arch )
80
- set (amdgpu_compile_flags ${ARGS_UNPARSED_ARGUMENTS } )
80
+ set (amdgpu_compile_flags ${OFFLOAD_TESTS_UNPARSED_ARGUMENTS } )
81
81
82
- if (ARGS_WITH_DEVICE_MATH_LIBS )
82
+ if (OFFLOAD_TESTS_WITH_DEVICE_MATH_LIBS )
83
83
find_package (AMDDeviceLibs QUIET HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm )
84
84
if (AMDDeviceLibs_FOUND )
85
85
get_target_property (ocml_path ocml IMPORTED_LOCATION )
You can’t perform that action at this time.
0 commit comments