Skip to content

Commit e0a4d22

Browse files
committed
Check OS before installing cudatoolkit
1 parent aac34e1 commit e0a4d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
conda update -y conda
44
conda update -y --all
55
conda env update --file environment.yml
6-
if [ `which nvcc | wc -l` -lt "1" ]; then
6+
if [[ `uname` == "Linux" && `which nvcc | wc -l` -lt "1" ]]; then
77
conda install -y -c conda-forge cudatoolkit-dev
88
fi
99
#conda install -y -c conda-forge numpy scipy numba pandas flake8 flake8-docstrings black pytest-cov

0 commit comments

Comments
 (0)