Replace /opt/hcc -> /opt/rocm/hcc and /opt/hsa -> /opt/rocm/hsa

[ROCm/hip commit: 5a31bad821]
This commit is contained in:
Maneesh Gupta
2016-04-15 12:56:31 +05:30
parent 425c5f9ade
commit 32e35b671d
7 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -16,8 +16,8 @@ use File::Basename;
# Other environment variable controls:
# HIP_PATH : Path to HIP directory, default is one dir level above location of this script
# CUDA_PATH : Path to CUDA SDK (default /usr/local/cuda). Used on NVIDIA platforms only.
# HCC_HOME : Path to HCC SDK (default /opt/hcc). Used on AMD platforms only.
# HSA_PATH : Path to HSA dir (default /opt/hsa). Used on AMD platforms only.
# HCC_HOME : Path to HCC SDK (default /opt/rocm/hcc). Used on AMD platforms only.
# HSA_PATH : Path to HSA dir (default /opt/rocm/hsa). Used on AMD platforms only.
if(scalar @ARGV == 0){
print "No Arguments passed, exiting ...\n";
@@ -59,10 +59,10 @@ $enablestdcpplib = 0;
if ($HIP_PLATFORM eq "hcc") {
$HSA_PATH=$ENV{'HSA_PATH'};
$HSA_PATH="/opt/hsa" unless defined $HSA_PATH;
$HSA_PATH="/opt/rocm/hsa" unless defined $HSA_PATH;
$HCC_HOME=$ENV{'HCC_HOME'};
$HCC_HOME="/opt/hcc" unless defined $HCC_HOME;
$HCC_HOME="/opt/rocm/hcc" unless defined $HCC_HOME;
# HCC* may be used to compile src/hip_hcc.o (and also feed the HIPCXXFLAGS below)
$HCC = "$HCC_HOME/bin/hcc";
+2 -2
View File
@@ -37,10 +37,10 @@ $CUDA_PATH=$ENV{'CUDA_PATH'};
$CUDA_PATH='/usr/local/cuda' unless defined $CUDA_PATH;
$HCC_HOME=$ENV{'HCC_HOME'};
$HCC_HOME='/opt/hcc' unless defined $HCC_HOME;
$HCC_HOME='/opt/rocm/hcc' unless defined $HCC_HOME;
$HSA_PATH=$ENV{'HSA_PATH'};
$HSA_PATH='/opt/hsa' unless defined $HSA_PATH;
$HSA_PATH='/opt/rocm/hsa' unless defined $HSA_PATH;
#---
#HIP_PLATFORM controls whether to use NVCC or HCC for compilation: