This commit is contained in:
Ben Sander
2016-02-22 08:33:47 -06:00
19 changed files with 3283 additions and 277 deletions
+2 -1
View File
@@ -71,6 +71,7 @@ if ($HIP_PLATFORM eq "hcc") {
$HIPLDFLAGS .= " -L$HSA_PATH/lib -lhsa-runtime64 -lhc_am";
# Add C++ libs for GCC.
$HIPLDFLAGS .= " -lstdc++";
$HIPLDFLAGS .= " -lm";
if ($verbose & 0x2) {
print ("HSA_PATH=$HSA_PATH\n");
@@ -163,7 +164,7 @@ if ($needHipHcc) {
if ((not -e $object) or ((stat($source))[9] > (stat($object))[9])) {
my $CMD = "$HCC $HCCFLAGS -I$HSA_PATH/include -I$HIP_PATH/include -Wall -c $source -o $object";
if ($verbose & 0x10) {
$CMD .= " -g" ;
$CMD .= " -g -O2" ;
} else {
$CMD .= " -O3" ;
}
+3
View File
@@ -82,6 +82,7 @@ if ($p_full) {
system("$HCC_HOME/bin/hcc-config --cxxflags");
print ("HCC-ldflags : ");
system("$HCC_HOME/bin/hcc-config --ldflags");
printf("\n");
}
if ($HIP_PLATFORM eq "nvcc") {
print "\n" ;
@@ -98,6 +99,8 @@ if ($p_full) {
print "\n" ;
print "== Linux Kernel\n";
system ("uname -a");
print "\n" ;
$printed = 1;
}
+2
View File
@@ -277,6 +277,8 @@ while (@ARGV) {
$ft{'mem'} += s/\bcudaMemcpyKind\b/hipMemcpyKind/g;
$ft{'mem'} += s/\bcudaPointerAttributes\b/hipPointerAttribute_t/g;
#--------
# Memory management: