Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxbin
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Pour rappel, le service sera inaccessible ce lundi 05/05/25 midi pour raison de mise à jour.
Show more breadcrumbs
Aerospace and Mechanical Engineering
linuxbin
Commits
2667e285
Commit
2667e285
authored
1 year ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
add cuda to wsl on my laptop
parent
e76e3a03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cfg/loop.sh
+3
-3
3 additions, 3 deletions
cfg/loop.sh
cfg/plankton/cuda.profile
+2
-0
2 additions, 0 deletions
cfg/plankton/cuda.profile
with
5 additions
and
3 deletions
cfg/loop.sh
+
3
−
3
View file @
2667e285
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
cfg/plankton/cuda.profile
0 → 100644
+
2
−
0
View file @
2667e285
add2env
PATH
"/usr/local/cuda/bin"
add2env
LD_LIBRARY_PATH
"/usr/local/cuda/lib64"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment