Skip to content

Commit

Permalink
fix which command on linux server (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyufeng authored May 22, 2023
1 parent 54072ef commit 775cda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindnlp/models/utils/kernel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _find_cuda_home():
cuda_home = os.environ.get('CUDA_HOME') or os.environ.get('CUDA_PATH')
if cuda_home is None:
try:
nvcc = subprocess.check_output(['where', 'nvcc']).decode().rstrip('\r\n')
nvcc = subprocess.check_output(['which', 'nvcc']).decode().rstrip('\r\n')
cuda_home = os.path.dirname(os.path.dirname(nvcc))
except subprocess.CalledProcessError as exc:
raise RuntimeError('NVCC Not Available') from exc
Expand Down

0 comments on commit 775cda4

Please sign in to comment.