Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
SWDEV-409068 - Fix can_run arg
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhuravl committed Jul 11, 2023
1 parent ee309ae commit 3d22649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hipvars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if (defined $HIP_RUNTIME and $HIP_RUNTIME eq "rocclr" and !defined $HIP_ROCCLR_H
}

if (not defined $HIP_PLATFORM) {
if (can_run("$HIP_CLANG_PATH/clang++") or can_run("clang++")) {
if (can_run("\"$HIP_CLANG_PATH/clang++\"") or can_run("clang++")) {
$HIP_PLATFORM = "amd";
} elsif (can_run("$CUDA_PATH/bin/nvcc") or can_run("nvcc")) {
$HIP_PLATFORM = "nvidia";
Expand Down

0 comments on commit 3d22649

Please sign in to comment.