Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
b450ed7e
Commit
b450ed7e
authored
4 years ago
by
Hashim Sharif
Committed by
Yifan Zhao
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding check in set_path.sh throwing error if CUDA path not set
parent
0bc1df24
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/set_paths.sh
+16
-13
16 additions, 13 deletions
hpvm/set_paths.sh
with
16 additions
and
13 deletions
hpvm/set_paths.sh
+
16
−
13
View file @
b450ed7e
#!/bin/bash
#!/bin/bash
# These paths can be modified by the HPVM user
# These paths can be modified by the HPVM user
CUDA_TOOLKIT_PATH
=
/software/cuda-9.1/
CUDA_TOOLKIT_PATH
=
# Set this to the root of your CUDA Installation
CUDA_INCLUDE_PATH
=
$CUDA_TOOLKIT_PATH
/include
if
[
-z
"
$CUDA_TOOLKIT_PATH
"
]
CUDA_LIB_PATH
=
$CUDA_TOOLKIT_PATH
/lib64/
then
echo
"ERROR: SET CUDA_TOOLKIT_PATH to the Root of your CUDA Installation"
else
CUDA_INCLUDE_PATH
=
$CUDA_TOOLKIT_PATH
/include
CUDA_LIB_PATH
=
$CUDA_TOOLKIT_PATH
/lib64/
echo
"Setting environment paths..."
echo
"Setting environment paths..."
# Setting CUDA paths here
export
CUDA_BIN_PATH
=
$CUDA_TOOLKIT_PATH
# Setting CUDA paths here
export
CUDA_INCLUDE_PATH
=
$CUDA_INCLUDE_PATH
export
CUDA_BIN_PATH
=
$CUDA_TOOLKIT_PATH
export
CUDNN_PATH
=
$CUDA_LIB_PATH
export
CUDA_INCLUDE_PATH
=
$CUDA_INCLUDE_PATH
export
LIBRARY_PATH
=
$CUDA_LIB_PATH
:
$LIBRARY_PATH
export
CUDNN_PATH
=
$CUDA_LIB_PATH
export
LD_LIBRARY_PATH
=
$CUDA_LIB_PATH
:
$LD_LIBRARY_PATH
export
LIBRARY_PATH
=
$CUDA_LIB_PATH
:
$LIBRARY_PATH
echo
"Finished setting environment paths!"
export
LD_LIBRARY_PATH
=
$CUDA_LIB_PATH
:
$LD_LIBRARY_PATH
fi
echo
"Finished setting environment paths!"
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