Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Henning Fehrmann
NVidia_AMD_Bench
Commits
d3142d28
Commit
d3142d28
authored
Jan 29, 2021
by
Henning Fehrmann
Committed by
Henning Fehrmann
Jan 29, 2021
Browse files
add fftw compilation
parent
d3412583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d3142d28
...
...
@@ -2,16 +2,20 @@
GPU
=
NVIDIA
GPU
=
AMD
OBJ
=
blas.o
OBJ_blas
=
blas.o
OBJ_fftw
=
fftw.o
ifeq
($(GPU), AMD)
LDFLAGS
=
-L
/opt/rocm/lib
-lhipblas
-lrocblas
-fopenmp
LDFLAGS
=
-L
/opt/rocm/lib
-fopenmp
LDFLAGS_blas
=
-lhipblas
-lrocblas
LDFLAGS_fftw
=
-lrocfft
CFLAGS
=
-g
-Wall
-O3
-fopenmp
-I
/opt/rocm/include
-I
/opt/rocm/hip/include
-DROC
CC
=
hipcc
else
ifeq
($(GPU), NVIDIA)
CC
=
nvcc
LDFLAGS
=
-lcublas
-lm
-lgomp
LDFLAGS
=
-lm
-lgomp
LDFLAGS_blas
=
-lcublas
INCLUDE
=
-I
/usr/lib/x86_64-linux-gnu/openmpi/include/
CFLAGS
=
${INCLUDE}
--compile
-O3
-pg
-Xcompiler
-fopenmp
-DCUDA
CUDAFLAGS
=
--Werror
cross-execution-space-call
--Wno-deprecated-gpu-targets
...
...
@@ -19,9 +23,13 @@ else
unknown_HW
:
endif
all
:
blas fftw
all
:
${OBJ}
${CC}
-o
blas
${OBJ}
${LDFLAGS}
${CUDAFLAGS}
blas
:
${OBJ_blas}
${CC}
-o
blas
${OBJ_blas}
${LDFLAGS}
${LDFLAGS_blas}
${CUDAFLAGS}
fftw
:
${OBJ_fftw}
${CC}
-o
fftw
${OBJ_fftw}
${LDFLAGS}
${LDFLAGS_fftw}
${CUDAFLAGS}
%.o
:
%.c ${HEADER}
${CC}
${CFLAGS}
-c
$<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment