Starting to fix things so they run under Linux
This commit is contained in:
Родитель
88125bec4c
Коммит
c848afb42b
|
@ -0,0 +1,32 @@
|
||||||
|
CSOURCES = CPUMatrix.cpp CPUSparseMatrix.cpp Matrix.cpp
|
||||||
|
|
||||||
|
OBJECTS = CPUMatrix.o CPUSparseMatrix.o Matrix.o \
|
||||||
|
GPUSparseMatrix.o GPUWatcher.o \
|
||||||
|
GPUMatrixCUDAKernels.o GPUMatrix.o
|
||||||
|
|
||||||
|
INCLUDES = -I../../Common/Include -I/opt/acml5.3.1/gfortran64_mp_int64/include
|
||||||
|
|
||||||
|
DEPS =
|
||||||
|
|
||||||
|
CFLAGS = $(INCLUDES) \
|
||||||
|
-D BASETYPES_NO_UNSAFECRTOVERLOAD -DBASETYPES_NO_STRPRINTF \
|
||||||
|
-DLINUX -D_FILEUTIL_ -Wnon-template-friend -std=c++11
|
||||||
|
|
||||||
|
NVCFLAGS = -DLINUX -I../../Common/Include -D_FILEUTIL_ -arch sm_11
|
||||||
|
|
||||||
|
CXX = gcc
|
||||||
|
NVCC = nvcc
|
||||||
|
|
||||||
|
all: libmatrixmat.so
|
||||||
|
|
||||||
|
libmatrixmat.so: $(OBJECTS)
|
||||||
|
$(CXX) -shared $(OBJECTS) -o libmatrixmat.so
|
||||||
|
|
||||||
|
libmatrixmat.so: $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
%.o: %.cpp $(DEPS)
|
||||||
|
$(CXX) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
%.o: %.cu $(DEPS)
|
||||||
|
$(NVCC) -c $(NVCFLAGS) $< -o $@
|
Загрузка…
Ссылка в новой задаче