Null argument handling HIPCC

This change makes hipcc handle no-arguments passed to it. It solves https://github.com/AMDComputeLibraries/HIP-privatestaging/issues/1

[ROCm/hip commit: 3238185276]
Cette révision appartient à :
Aditya Avinash Atluri a révisé 2016-02-26 13:47:58 -06:00
1 Parent 1ac07d2b87
révision 433cf742b9
1 fichier modifié
+4
+4
Voir le fichier
@@ -19,6 +19,10 @@ use File::Basename;
# 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.
if(scalar @ARGV == 0){
print "No Arguments passed, exiting ...\n";
exit(-1);
}
$verbose = $ENV{'HIPCC_VERBOSE'};
$verbose = 0 unless defined $verbose;