Added make config for NVCC

This commit is contained in:
Maximilian Gaul 2021-11-08 20:32:12 +01:00
parent 9b615cf0b3
commit fd886e77eb
3 changed files with 19 additions and 2 deletions

View File

@ -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
View 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

View File

@ -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>