HIPCC adds paths to profiler include and libs by default.

Users who desire otherwise can set HIP_ATP_MARKER=0.
Also remove old unused hipcc_explicit_lib option.

Change-Id: I2bf07ba880329e7a3b1365dd33a3b2be6794370f
Этот коммит содержится в:
Ben Sander
2016-10-27 20:38:32 -05:00
родитель f95482c7c5
Коммит e5ef8a2fd7
+4 -5
Просмотреть файл
@@ -79,7 +79,7 @@ if ($HIP_PLATFORM eq "hcc") {
$ROCM_PATH=$ENV{'ROCM_PATH'} // "/opt/rocm";
$HIP_ATP_MARKER=$ENV{'HIP_ATP_MARKER'};
$HIP_ATP_MARKER=$ENV{'HIP_ATP_MARKER'} // 1;
$marker_path = "$ROCM_PATH/profiler/CXLActivityLogger";
$ROCM_TARGET=$ENV{'ROCM_TARGET'} // "fiji";
@@ -273,10 +273,9 @@ foreach $arg (@ARGV)
# Process HIPCC options here:
if ($arg =~ m/^--hipcc/) {
$swallowArg = 1;
if ($arg eq "--hipcc_explicit_lib") {
# Some environments (ie cmake tests) already link their own hip_hcc.o, so don't add here:
$needHipHcc = 0;
}
#if $arg eq "--hipcc_profile") { # Example argument here, hipcc
#
#}
} else {
push (@options, $arg);
}