Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
af048198
Unverified
Commit
af048198
authored
Feb 27, 2023
by
Andrey Talman
Committed by
GitHub
Feb 27, 2023
Browse files
Fix cpu instals in circleci (#7357)
parent
cd332463
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
.circleci/unittest/linux/scripts/install.sh
.circleci/unittest/linux/scripts/install.sh
+4
-4
No files found.
.circleci/unittest/linux/scripts/install.sh
View file @
af048198
...
@@ -22,6 +22,10 @@ else
...
@@ -22,6 +22,10 @@ else
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION:
${
CU_VERSION
}
"
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION:
${
CU_VERSION
}
"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
cudatoolkit
=
"pytorch-cuda=
${
version
}
"
cudatoolkit
=
"pytorch-cuda=
${
version
}
"
# make sure local cuda is set to required cuda version and not CUDA version by default
rm
-f
/usr/local/cuda
ln
-s
/usr/local/cuda-
${
version
}
/usr/local/cuda
fi
fi
case
"
$(
uname
-s
)
"
in
case
"
$(
uname
-s
)
"
in
...
@@ -34,10 +38,6 @@ if [ "${os}" == "MacOSX" ]; then
...
@@ -34,10 +38,6 @@ if [ "${os}" == "MacOSX" ]; then
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
"pytorch-
${
UPLOAD_CHANNEL
}
"
::pytorch
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
"pytorch-
${
UPLOAD_CHANNEL
}
"
::pytorch
"
${
cudatoolkit
}
"
else
else
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
nvidia
"pytorch-
${
UPLOAD_CHANNEL
}
"
::pytorch[build
=
"*
${
version
}
*"
]
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
nvidia
"pytorch-
${
UPLOAD_CHANNEL
}
"
::pytorch[build
=
"*
${
version
}
*"
]
"
${
cudatoolkit
}
"
# make sure local cuda is set to required cuda version and not CUDA version by default
rm
-f
/usr/local/cuda
ln
-s
/usr/local/cuda-
${
version
}
/usr/local/cuda
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment