added kernel only compilation feature for hipcc

1. Added hipgenisa.sh file to compile kernel code to hsa code object
2. Changed hipcc to call hipgenisa.sh, making hipcc compiling the kernels

Change-Id: I976459c1ebb24343e1b1fe38b4c3a203f1adffa9


[ROCm/clr commit: 2f8b2fca6b]
This commit is contained in:
Aditya Atluri
2016-08-31 13:05:57 -05:00
parent df6f400a8e
commit f97eec0d3b
2 changed files with 37 additions and 0 deletions
+11
View File
@@ -157,6 +157,16 @@ if ($HIP_PLATFORM eq "hcc") {
exit (-1);
}
my $ISACMD="hipgenisa.sh ";
$ISACMD .= $ROCM_PATH;
if($ARGV[0] eq "--genisa"){
foreach $isaarg (@ARGV){
$ISACMD .= " ";
$ISACMD .= $isaarg;
}
system($ISACMD);
exit(-1);
}
# Add paths to common HIP includes:
$HIPCXXFLAGS .= " -I$HIP_PATH/include" ;
@@ -178,6 +188,7 @@ if ($verbose & 0x4) {
}
my $toolArgs = ""; # arguments to pass to the hcc or nvcc tool
foreach $arg (@ARGV)
{
my $swallowArg = 0;