File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ DEBUG ?= 0
1212CUDA_LIB ?= $(CUDA_HOME ) /lib64
1313CUDA_INC ?= $(CUDA_HOME ) /include
1414NVCC = $(CUDA_HOME ) /bin/nvcc
15+ CUDARTLIB ?= cudart
1516
1617CUDA_VERSION = $(strip $(shell which $(NVCC ) >/dev/null && $(NVCC ) --version | grep release | sed 's/.* release //' | sed 's/\,.* //') )
1718CUDA_MAJOR = $(shell echo $(CUDA_VERSION ) | cut -d "." -f 1)
3637NVCUFLAGS := -ccbin $(CXX ) $(NVCC_GENCODE ) -std=c++11
3738
3839LDFLAGS := -L${CUDA_LIB} -lcudart -lrt
39- NVLDFLAGS := -L${CUDA_LIB} -lcudart -lrt
40+ NVLDFLAGS := -L${CUDA_LIB} -l${CUDARTLIB} -lrt
4041
4142ifeq ($(DEBUG ) , 0)
4243NVCUFLAGS += -O3 -g
@@ -68,7 +69,7 @@ ifeq ($(MPI_IBM),1)
6869NVCUFLAGS += -DMPI_SUPPORT
6970NVLDFLAGS += -lmpi_ibm
7071endif
71- LIBRARIES += curand nccl nvToolsExt
72+ LIBRARIES += nccl
7273NVLDFLAGS += $(LIBRARIES:%=-l% )
7374
7475DST_DIR := $(BUILDDIR )
Original file line number Diff line number Diff line change 1010#include < stdio.h>
1111#include < cstdint>
1212#include < algorithm>
13- #include < curand.h>
1413#ifdef MPI_SUPPORT
1514#include " mpi.h"
1615#endif
@@ -46,7 +45,6 @@ typedef enum {
4645 testInternalError = 1 ,
4746 testCudaError = 2 ,
4847 testNcclError = 3 ,
49- testCuRandError = 4
5048} testResult_t;
5149
5250// Relay errors up and trace
You can’t perform that action at this time.
0 commit comments