Add HSA_PATH to hip_Includes in cmake and hipconfig (#1260)

* Add HSA_PATH to hip_Includes in cmake and hipconfig

* HSA_PATH to CACHE path,checks for HSA include path

* Removed new lines at EOF


[ROCm/clr commit: 53b5c917cc]
This commit is contained in:
ansurya
2019-07-31 10:32:20 +05:30
committed by Maneesh Gupta
parent 189e6b5d44
commit d46e575ec1
3 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ if (not defined $HIP_PLATFORM) {
$HIP_PATH=$ENV{'HIP_PATH'} // Cwd::realpath (dirname (dirname $0)); # use parent directory of this tool
if ($HIP_PLATFORM eq "hcc") {
$CPP_CONFIG= " -D__HIP_PLATFORM_HCC__= -I$HIP_PATH/include -I$HCC_HOME/include";
$CPP_CONFIG= " -D__HIP_PLATFORM_HCC__= -I$HIP_PATH/include -I$HCC_HOME/include -I$HSA_PATH/include";
}
if ($HIP_PLATFORM eq "nvcc") {
$CPP_CONFIG = " -D__HIP_PLATFORM_NVCC__= -I$HIP_PATH/include -I$CUDA_PATH/include";