@@ -180,8 +180,6 @@ bool RocmInstallationDetector::parseHIPVersionFile(llvm::StringRef V) {
180180const SmallVectorImpl<RocmInstallationDetector::Candidate> &
181181RocmInstallationDetector::getInstallationPathCandidates () {
182182
183- /* salinas */ fprintf (stderr," DAVE: RocmInstallationDetector::getInstallationPathCandidates() ...\n " );
184-
185183 // Return the cached candidate list if it has already been populated.
186184 if (!ROCmSearchDirs.empty ())
187185 return ROCmSearchDirs;
@@ -309,10 +307,7 @@ RocmInstallationDetector::getInstallationPathCandidates() {
309307 }
310308 }
311309
312- fprintf (stderr," DAVE: checking isHostWindows() ...\n " ); /* salinas */
313-
314- if (!isHostWindows ()) { /* salinas */
315- fprintf (stderr, " \t NOT WINDOWS ....\n " );
310+ if (!isHostWindows ()) {
316311
317312 if (!LatestROCm.empty ())
318313 ROCmSearchDirs.emplace_back (D.SysRoot + " /opt/" + LatestROCm,
@@ -322,7 +317,7 @@ RocmInstallationDetector::getInstallationPathCandidates() {
322317 /* StrictChecking=*/ true );
323318 ROCmSearchDirs.emplace_back (D.SysRoot + " /usr" ,
324319 /* StrictChecking=*/ true );
325- } /* salinas */ else fprintf (stderr, " \t IS WINDOWS! \n " );
320+ }
326321
327322 DoPrintROCmSearchDirs ();
328323 return ROCmSearchDirs;
@@ -333,7 +328,6 @@ RocmInstallationDetector::RocmInstallationDetector(
333328 const llvm::opt::ArgList &Args /* , SALINAS bool DetectHIPRuntime,
334329 bool DetectDeviceLib, bool isMSVC*/ )
335330 : D(D), TargetTriple(TargetTriple) {
336- /* salinas */ fprintf (stderr," RocmInstallationDetector::RocmInstallationDetector() ... \n " );
337331 /* SALINAS IsHostMSVC = isMSVC; */
338332 Verbose = Args.hasArg (options::OPT_v);
339333 RocmPathArg = Args.getLastArgValue (clang::driver::options::OPT_rocm_path_EQ);
@@ -388,9 +382,8 @@ RocmInstallationDetector::RocmInstallationDetector(
388382 .str ();
389383 }
390384
391- // if (DetectHIPRuntime) /* salinas */ {
392- // fprintf(stderr, "DAVE: RocmInstallationDetector ctor: calling "
393- // "detectHIPRuntime() ...\n");
385+ // SALINAS
386+ // if (DetectHIPRuntime)
394387 // detectHIPRuntime();
395388 // }
396389 // if (DetectDeviceLib)
@@ -450,7 +443,6 @@ void RocmInstallationDetector::detectDeviceLibrary() {
450443
451444 // Find device libraries in a legacy ROCm directory structure
452445 // ${ROCM_ROOT}/amdgcn/bitcode/*
453- /* salinas */ fprintf (stderr," DAVE 1: calling getInstallationPathCandidates()\n " );
454446 auto &ROCmDirs = getInstallationPathCandidates ();
455447 for (const auto &Candidate : ROCmDirs) {
456448 LibDevicePath = Candidate.Path ;
@@ -461,11 +453,7 @@ void RocmInstallationDetector::detectDeviceLibrary() {
461453 }
462454}
463455
464- void RocmInstallationDetector::detectHIPRuntime () { /* salinas */
465- fprintf (stderr, " DAVE: RocmInstallationDetector::detectHIPRuntime()\n " );
466- /* salinas */ std::optional<std::string> dave =
467- llvm::sys::Process::GetEnv (" HIP_PATH" );
468- /* salinas */ if (dave) fprintf (stderr, " DAVE: in detectHIPRuntime(): HIP_PATH = %s\n " ,(*dave).c_str ());
456+ void RocmInstallationDetector::detectHIPRuntime () {
469457 SmallVector<Candidate, 4 > HIPSearchDirs;
470458 if (!HIPPathArg.empty ())
471459 HIPSearchDirs.emplace_back (HIPPathArg.str ());
@@ -474,12 +462,8 @@ void RocmInstallationDetector::detectHIPRuntime() { /* salinas */
474462 if (!HIPPathEnv->empty ())
475463 HIPSearchDirs.emplace_back (std::move (*HIPPathEnv));
476464 }
477- if (HIPSearchDirs.empty ()) { /* salinas */
478- /* salinas */ fprintf (stderr," DAVE 1: calling getInstallationPathCandidates()\n " );
465+ if (HIPSearchDirs.empty ())
479466 HIPSearchDirs.append (getInstallationPathCandidates ());
480- } /* salinas */ else
481- fprintf (stderr,
482- " DAVE: detectHIPRuntime() .... HIPSearchDirs is NOT empty!\n " );
483467 auto &FS = D.getVFS ();
484468
485469 for (const auto &Candidate : HIPSearchDirs) {
@@ -711,15 +695,12 @@ AMDGPUToolChain::AMDGPUToolChain(const Driver &D, const llvm::Triple &Triple,
711695 const ArgList &Args)
712696 : Generic_ELF(D, Triple, Args),
713697 OptionsDefault({{options::OPT_O, " 3" },
714- {options::OPT_cl_std_EQ, " CL1.2" }}) { /* salinas */
715- fprintf (stderr, " ========= DAVE =========== AMDGPUToolChain() ctor ....\n " );
698+ {options::OPT_cl_std_EQ, " CL1.2" }}) {
716699 // Check code object version options. Emit warnings for legacy options
717700 // and errors for the last invalid code object version options.
718701 // It is done here to avoid repeated warning or error messages for
719702 // each tool invocation.
720703 checkAMDGPUCodeObjectVersion (D, Args);
721- /* salinas */ fprintf (
722- stderr, " ===== DVE: AMDGPUToolChain ctor END ..... =========\n " );
723704}
724705
725706Tool *AMDGPUToolChain::buildLinker () const {
@@ -848,13 +829,10 @@ bool AMDGPUToolChain::isWave64(const llvm::opt::ArgList &DriverArgs,
848829// / ROCM Toolchain
849830ROCMToolChain::ROCMToolChain (const Driver &D, const llvm::Triple &Triple,
850831 const ArgList &Args, bool isHostTCMSVC)
851- : AMDGPUToolChain(D, Triple, Args) { /* salinas */ fprintf (stderr," DAVE: ROCMToolChain::ROCMToolChain() ...\n " );
852- /* salinas */ fprintf (
853- stderr, " DAVE: in ROCMToolChain ctor calling setHostWindows()\n " );
832+ : AMDGPUToolChain(D, Triple, Args) {
854833 RocmInstallation->setHostWindows (isHostTCMSVC);
855834
856835 RocmInstallation->detectDeviceLibrary ();
857- /* salinas */ fprintf (stderr, " DAVE: end of ROCMToolChain ctor\n " );
858836}
859837
860838void AMDGPUToolChain::addClangTargetOptions (
0 commit comments