Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hydra-image-processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenSource
hydra-image-processor
Commits
2aa9e8e3
Commit
2aa9e8e3
authored
5 years ago
by
Mark Winter
Browse files
Options
Downloads
Patches
Plain Diff
Properly handle non-default nvcc installs by specifying the include directory
parent
678beea3
No related branches found
Branches containing commit
Tags
v2.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/c/makefile
+5
-3
5 additions, 3 deletions
src/c/makefile
with
5 additions
and
3 deletions
src/c/makefile
+
5
−
3
View file @
2aa9e8e3
...
...
@@ -8,6 +8,9 @@ PYTHON3_INC = /usr/include/$(PYTHON_VER)
NUMPY3_INC
=
/usr/include/
$(
PYTHON_VER
)
PYTHON_LIB
=
/usr/lib/
$(
PYTHON_VER
)
/config-3.5m-x86_64-linux-gnu
# Include directory for cuda toolkit
NVCC_INC
=
/usr/include
#########################################
# Default files and include dirs
#########################################
...
...
@@ -26,7 +29,7 @@ MEX_CPP_OBJ = $(addprefix $(OBJ_DIR)/,$(notdir $(MEX_CPP_FILES:.cpp=.o)))
PY_CPP_OBJ
=
$(
addprefix
$(
OBJ_DIR
)
/,
$(
notdir
$(
PY_CPP_FILES:.cpp
=
.o
)))
TST_CPP_OBJ
=
$(
addprefix
$(
OBJ_DIR
)
/,
$(
notdir
$(
TST_CPP_FILES:.cpp
=
.o
)))
CUDA_INC
=
-I
.
-I
./Cuda
CUDA_INC
=
-I
.
-I
./Cuda
-I
$(
NVCC_INC
)
MEX_INC
=
-I
.
-I
./Mex
-I
./ScriptCmds
-I
./external
-I
$(
MATALAB_DIR
)
/extern/include
PY_INC
=
-I
.
-I
./Python
-I
./ScriptCmds
-I
./external
-I
$(
PYTHON3_INC
)
-I
$(
NUMPY3_INC
)
...
...
@@ -51,7 +54,6 @@ LD_FLAGS = --no-undefined
NVCC_PATH
=
nvcc
NVCC_FLAGS
=
$(
CPP_FLAGS
)
SMODEL
=
-arch
=
sm_30
NVCC_INC
=
-I
/usr/include
ifndef
COMP
COMP
=
clang
...
...
@@ -99,7 +101,7 @@ Mex.mexa64: $(CUDA_OBJ) $(MEX_CPP_OBJ) $(CUDA_CPP_OBJ)
#########################################
$(OBJ_DIR)/%.o
:
Cuda/%.cu
@
mkdir
-p
$(
@D
)
$(
NVCC_PATH
)
$(
NVCC_FLAGS
)
$(
CUDA_INC
)
$(
SMODEL
)
--compiler-options
'
$(
C_FLAGS
)
'
-c
$<
-o
$@
$(
NVCC_INC
)
-dc
$(
NVCC_PATH
)
$(
NVCC_FLAGS
)
$(
CUDA_INC
)
$(
SMODEL
)
--compiler-options
'
$(
C_FLAGS
)
'
-c
$<
-o
$@
-dc
$(OBJ_DIR)/%.o
:
Cuda/%.cpp
@
mkdir
-p
$(
@D
)
...
...
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