correct -x option in hip::device

Change-Id: I8c288e678b4357019144a024395cda1fcead61fc
Этот коммит содержится в:
David Salinas
2020-07-22 10:38:10 -04:00
коммит произвёл Aaron En Ye Shi
родитель 0e7498071e
Коммит 9a0f5fa32c
+2 -2
Просмотреть файл
@@ -156,13 +156,13 @@ if(HIP_COMPILER STREQUAL "clang")
if (EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode)
set_property(TARGET hip::device APPEND PROPERTY
INTERFACE_COMPILE_OPTIONS -x hip
INTERFACE_COMPILE_OPTIONS -xhip
)
else()
# This path is to support an older build of the device library
# TODO: To be removed in the future.
set_property(TARGET hip::device APPEND PROPERTY
INTERFACE_COMPILE_OPTIONS -x hip --hip-device-lib-path=${AMD_DEVICE_LIBS_PREFIX}/lib
INTERFACE_COMPILE_OPTIONS -xhip --hip-device-lib-path=${AMD_DEVICE_LIBS_PREFIX}/lib
)
endif()