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
4a82524a
Commit
4a82524a
authored
5 years ago
by
Akash Kothari
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefiles to use CUDA runtime
parent
d5f53922
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hpvm/test/parboil/common/Makefile.conf
+4
-5
4 additions, 5 deletions
hpvm/test/parboil/common/Makefile.conf
hpvm/test/parboil/common/mk/visc.mk
+4
-4
4 additions, 4 deletions
hpvm/test/parboil/common/mk/visc.mk
with
8 additions
and
9 deletions
hpvm/test/parboil/common/Makefile.conf
+
4
−
5
View file @
4a82524a
CUDA_PATH
=/
usr
/
local
/
cuda
CUDA_LIB_PATH
=/
usr
/
local
/
cuda
/
lib64
OPENCL_PATH
=/
opt
/
intel
/
opencl
-
sdk
OPENCL_LIB_PATH
=/
usr
/
lib64
CUDA_PATH
=/
software
/
cuda
-
9
.
1
/
CUDA_LIB_PATH
=/
software
/
cuda
-
9
.
1
/
lib64
/
OPENCL_PATH
=/
opt
/
intel
/
opencl
-
sdk
/
OPENCL_LIB_PATH
=/
usr
/
lib64
/
This diff is collapsed.
Click to expand it.
hpvm/test/parboil/common/mk/visc.mk
+
4
−
4
View file @
4a82524a
...
...
@@ -3,7 +3,7 @@
# Default language wide options
LANG_CFLAGS
=
-I
$(
PARBOIL_ROOT
)
/common/include
LANG_CXXFLAGS
=
$(
LANG_CFLAGS
)
-fno-exceptions
LANG_LDFLAGS
=
-lOpenCL
-L
$(
OPENCL_LIB_PATH
)
-lrt
LANG_LDFLAGS
=
-lOpenCL
-L
$(
OPENCL_LIB_PATH
)
-lrt
-L
$(
CUDA_LIB_PATH
)
-lcudart
CFLAGS
=
$(
LANG_CFLAGS
)
$(
PLATFORM_CFLAGS
)
$(
APP_CFLAGS
)
CXXFLAGS
=
$(
LANG_CXXFLAGS
)
$(
PLATFORM_CXXFLAGS
)
$(
APP_CXXFLAGS
)
...
...
@@ -154,11 +154,11 @@ default: $(FAILSAFE) $(BUILDDIR) $(PTX_ASSEMBLY) $(SPIR_ASSEMBLY) $(BIN)
#default: $(FAILSAFE) $(BUILDDIR) $(BIN)
run
:
$(RUNDIR)
echo
"Resolving
OpenCL
library..."
$(
shell
echo
$(
RUNTIME_ENV
))
LD_LIBRARY_PATH
=
$(
OPENCL
_LIB_PATH
)
ldd ./
$(
BIN
)
|
grep
OpenCL
echo
"Resolving
CUDA
library..."
$(
shell
echo
$(
RUNTIME_ENV
))
LD_LIBRARY_PATH
=
$(
CUDA
_LIB_PATH
)
ldd ./
$(
BIN
)
|
grep
cuda
#echo "Resolving OpenCV library..."
#
$(
shell
echo
$(
RUNTIME_ENV
))
LD_LIBRARY_PATH
=
$(
OPENCV_LIB_PATH
)
ldd ./
$(
BIN
)
|
grep
opencv
$(
shell
echo
$(
RUNTIME_ENV
))
LD_LIBRARY_PATH
=
$(
OPENCL_LIB_PATH
)
:
$(
OPENCV_LIB_PATH
)
./
$(
BIN
)
$(
ARGS
)
$(
shell
echo
$(
RUNTIME_ENV
))
LD_LIBRARY_PATH
=
$(
OPENCL_LIB_PATH
)
:
$(
OPENCV_LIB_PATH
)
:
$(
CUDA_LIB_PATH
)
./
$(
BIN
)
$(
ARGS
)
$(
TOOL
)
$(
OUTPUT
)
$(
REF_OUTPUT
)
debug
:
...
...
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