Skip to content
Snippets Groups Projects
Commit 2667e285 authored by Boman Romain's avatar Boman Romain
Browse files

add cuda to wsl on my laptop

parent e76e3a03
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,9 @@ function add2env()
return
fi
ndir=${2%/} # remove trailing space
if [ -d $ndir ] ; then # if the second arg is an existing folder
if [ -z ${!1} ] ; then # if the first arg is an empty env variable
ndir=${2%/} # remove trailing space
if [ -d "$ndir" ] ; then # if the second arg is an existing folder
if [ -z "${!1}" ] ; then # if the first arg is an empty env variable
#echo $1 is empty
eval export $1="$ndir"
else
......
add2env PATH "/usr/local/cuda/bin"
add2env LD_LIBRARY_PATH "/usr/local/cuda/lib64"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment