Revise the previous fix to use the canonical path to HSA.

- This fix the build failures under certain environments.
This commit is contained in:
Michael LIAO
2019-08-01 14:50:03 -04:00
parent 9189279220
commit 4f2aa06688
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ if("${HIP_COMPILER}" MATCHES "clang")
PRIVATE --amdgpu-target=gfx908
PRIVATE -fgpu-rdc)
target_link_libraries(rccl PRIVATE -fgpu-rdc)
target_include_directories(rccl PRIVATE /opt/rocm/include)
target_include_directories(rccl PRIVATE /opt/rocm/hsa/include)
endif()
if("${HIP_COMPILER}" MATCHES "hcc")
+2 -1
View File
@@ -7,7 +7,8 @@
#include "core.h"
#include "common_coll.h"
#include <hsa.h>
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
extern struct ncclTransport p2pTransport;
extern struct ncclTransport shmTransport;