Make HIP_VDI the default

As this snippet shows, HCC is no longer supported by roctracer:

#if HIP_VDI
...
#else
#error HCC support dropped
#endif

Removed HIP_VDI from the CMakeLists.txt, and the source code.

Change-Id: Ib273da2a5af6d67fa1b021a7eca3ff785c8b9c73
This commit is contained in:
Laurent Morichetti
2021-04-15 19:37:29 -07:00
committed by Laurent Morichetti
parent faada3e569
commit 8fb3cdb30b
6 changed files with 4 additions and 32 deletions
+2 -11
View File
@@ -81,16 +81,8 @@ endif()
add_definitions ( -DHIP_PROF_HIP_API_STRING=${HIP_API_STRING} )
## Enable HIP_VDI mode
if ( NOT DEFINED HIP_VDI )
set ( HIP_VDI 0 )
endif()
add_definitions ( -DHIP_VDI=${HIP_VDI} )
if ( "${HIP_VDI}" STREQUAL "1" )
add_definitions ( -D__HIP_ROCclr__=1 )
set ( HIP_DEFINES "-D__HIP_PLATFORM_HCC__=1 -D__HIP_ROCclr__=1" )
else()
set ( HIP_DEFINES "-D__HIP_PLATFORM_HCC__=1")
endif()
add_definitions ( -D__HIP_ROCclr__=1 )
set ( HIP_DEFINES "-D__HIP_PLATFORM_HCC__=1 -D__HIP_ROCclr__=1" )
## Enable HIP local build
if ( DEFINED LOCAL_BUILD )
@@ -173,7 +165,6 @@ message ( "-------ROCM_ROOT_DIR: ${ROCM_ROOT_DIR}" )
message ( "-------ROCM_INC_PATH: ${ROCM_INC_PATH}" )
message ( "-------------KFD-Inc: ${HSA_KMT_INC_PATH}" )
message ( "-------------HIP-Inc: ${HIP_INC_DIR}" )
message ( "-------------HIP-VDI: ${HIP_VDI}" )
message ( "-----CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}" )
message ( "---CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}" )
message ( "---------GPU_TARGETS: ${GPU_TARGETS}" )