Added make config for NVCC
This commit is contained in:
parent
9b615cf0b3
commit
fd886e77eb
@ -1,5 +1,5 @@
|
||||
# Compiler tag (GCC/CLANG/ICC)
|
||||
TAG ?= CLANG
|
||||
# Compiler tag (GCC/CLANG/ICC/NVCC)
|
||||
TAG ?= NVCC
|
||||
# Enable likwid (true or false)
|
||||
ENABLE_LIKWID ?= false
|
||||
# SP or DP
|
||||
|
15
include_NVCC.mk
Normal file
15
include_NVCC.mk
Normal file
@ -0,0 +1,15 @@
|
||||
CC = nvcc
|
||||
LINKER = $(CC)
|
||||
|
||||
ANSI_CFLAGS = -ansi
|
||||
ANSI_CFLAGS += -std=c99
|
||||
ANSI_CFLAGS += -pedantic
|
||||
ANSI_CFLAGS += -Wextra
|
||||
|
||||
# CFLAGS = -O0 -g -std=c99 -fargument-noalias
|
||||
CFLAGS = -O3 -arch=sm_61 # -fopenmp
|
||||
ASFLAGS = -masm=intel
|
||||
LFLAGS =
|
||||
DEFINES = -D_GNU_SOURCE -DLIKWID_PERFMON
|
||||
INCLUDES = $(LIKWID_INC)
|
||||
LIBS = -lm $(LIKWID_LIB) -llikwid
|
@ -20,6 +20,8 @@
|
||||
* with MD-Bench. If not, see <https://www.gnu.org/licenses/>.
|
||||
* =======================================================================================
|
||||
*/
|
||||
#include <cuda_runtime.h>
|
||||
|
||||
#include <likwid-marker.h>
|
||||
|
||||
#include <timing.h>
|
||||
|
Loading…
Reference in New Issue
Block a user