Commit db14c06b authored by karius's avatar karius

removed unnecessary variable from make file

parent 8019c414
NVCC=/usr/local/cuda-10.0/bin/nvcc
CUDA_INCLUDE = -I./cuda_util_include #most of it comes with nvcc, this is a convenience lib
BOOST_INCLUDE = -I/usr/local/include/
DELAUNAY_INCLUDE = -I./gDel3D/GPU/
......@@ -20,28 +19,28 @@ endif
eval: GpuDelaunay.o KerDivision.o Splaying.o Star.o PredWrapper.o RandGen.o InputCreator.o predicates.o ThrustWrapper.o KerPredicates.o CRotationGrid.o DelaunayChecker.o
$(NVCC) --gpu-architecture=sm_61 --include-path=./,./gDel3D/GPU/ CRotationGrid.o InputCreator.o RandGen.o DelaunayChecker.o KerPredicates.o Splaying.o Star.o predicates.o ThrustWrapper.o PredWrapper.o KerDivision.o GpuDelaunay.o TransformationGrid.cu -o eval
nvcc --gpu-architecture=sm_61 --include-path=./,./gDel3D/GPU/ CRotationGrid.o InputCreator.o RandGen.o DelaunayChecker.o KerPredicates.o Splaying.o Star.o predicates.o ThrustWrapper.o PredWrapper.o KerDivision.o GpuDelaunay.o TransformationGrid.cu -o eval
ccl: CMrcReader.o
# $(NVCC) --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Labeler.cu Density.cu Kernels.cu Particles.cu TransformationGrid.cu CRotationGrid.cu ccl_test.cu -g -G
$(NVCC) --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Density.cu TransformationGrid.cu ccl_test.cu -g -G
$(NVCC) --gpu-architecture=sm_61 --device-link Density.o ccl_test.o Kernels.o Labeler.o Particles.o PdbReader.o TransformationGrid.o CRotationGrid.o --output-file link.o $(CUDA_LINKS)
# nvcc --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Labeler.cu Density.cu Kernels.cu Particles.cu TransformationGrid.cu CRotationGrid.cu ccl_test.cu -g -G
nvcc --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Density.cu TransformationGrid.cu ccl_test.cu -g -G
nvcc --gpu-architecture=sm_61 --device-link Density.o ccl_test.o Kernels.o Labeler.o Particles.o PdbReader.o TransformationGrid.o CRotationGrid.o --output-file link.o $(CUDA_LINKS)
g++ Density.o Particles.o PdbReader.o CMrcReader.o Kernels.o TransformationGrid.o Labeler.o CRotationGrid.o ccl_test.o link.o -o ccl_test -L. $(CUDA_LINKS) $(BOOST_LINKS) -lpng -lnvidia-ml
protocol:
# sm_72 volta support, V100s
# $(NVCC) --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Particles.cu PdbReader.cu CMrcReader.cu Target.cu FittingProtocol.cu Density.cu ccl_test.cu -g -G
# $(NVCC) --gpu-architecture=sm_61 --device-link Particles.o PdbReader.o FittingProtocol.o Density.o Target.o CMrcReader.o --output-file link.o -lnvidia-ml $(CUDA_LINKS)
# nvcc --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) --device-c Particles.cu PdbReader.cu CMrcReader.cu Target.cu FittingProtocol.cu Density.cu ccl_test.cu -g -G
# nvcc --gpu-architecture=sm_61 --device-link Particles.o PdbReader.o FittingProtocol.o Density.o Target.o CMrcReader.o --output-file link.o -lnvidia-ml $(CUDA_LINKS)
# g++ FittingProtocol.o Particles.o PdbReader.o Target.o Density.o CMrcReader.o ccl_test.o link.o -o protocol -lnvidia-ml -L. $(CUDA_LINKS)
$(info Compiling for device architecture $(DEVICE_ARCH))
$(NVCC) --gpu-architecture=$(DEVICE_ARCH) --include-path=./ --device-c FittingProtocol.cu ccl_test.cu -g -G
$(NVCC) --gpu-architecture=$(DEVICE_ARCH) --device-link FittingProtocol.o ccl_test.o --output-file link.o
nvcc --gpu-architecture=$(DEVICE_ARCH) --include-path=./ --device-c FittingProtocol.cu ccl_test.cu -g -G
nvcc --gpu-architecture=$(DEVICE_ARCH) --device-link FittingProtocol.o ccl_test.o --output-file link.o
g++ FittingProtocol.o ccl_test.o link.o -o protocol -lnvidia-ml -L/usr/local/cuda-10.0/lib64/ -lcudart
ccl2: CMrcReader.o
$(NVCC) --gpu-architecture=sm_61 --include-path=./ --device-c Density.cu Kernels.cu PdbReader.cu Particles.cu Labeler.cu ccl_test.cu -g -G
$(NVCC) --gpu-architecture=sm_61 --device-link Sampler.o PdbReader.o Particles.o Labeler.o Kernels.o Density.o ccl_test.o --output-file link.o
nvcc --gpu-architecture=sm_61 --include-path=./ --device-c Density.cu Kernels.cu PdbReader.cu Particles.cu Labeler.cu ccl_test.cu -g -G
nvcc --gpu-architecture=sm_61 --device-link Sampler.o PdbReader.o Particles.o Labeler.o Kernels.o Density.o ccl_test.o --output-file link.o
g++ Sampler.o PdbReader.o Particles.o Labeler.o Kernels.o Density.o CMrcReader.o ccl_test.o link.o -o ccl_test -L. $(CUDA_LINKS) $(BOOST_LINKS)
weights:
......@@ -50,8 +49,8 @@ weights:
sort:
$(NVCC) -g -G -dc --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) example_block_radix_sort.cu
$(NVCC) example_block_radix_sort.o -lcudadevrt -o sort
nvcc -g -G -dc --gpu-architecture=sm_61 --include-path=./ $(CUB_INCLUDE) example_block_radix_sort.cu
nvcc example_block_radix_sort.o -lcudadevrt -o sort
grid: QuadratureErrorSO3.o
g++ $(EIGEN_INCLUDE) $(LINK_LORM) $(LINK_NFFT3) QuadratureErrorSO3.o -O2 -o grid search_grid_alpha.cpp
......@@ -60,37 +59,37 @@ QuadratureErrorSO3.o: /data/tools/lorm/src/ObjectiveFunctions/QuadratureErrorSO3
g++ $(EIGEN_INCLUDE) $(LINK_LORM) -O2 -c -o $@ $<
ccl_test.o: ccl_test.cu
$(NVCC) -c -o $@ $< $(CFLAGS) $(BOOST_INCLUDE)
nvcc -c -o $@ $< $(CFLAGS) $(BOOST_INCLUDE)
GpuDelaunay.o: gDel3D/GpuDelaunay.cu
$(NVCC) $(DELAUNAY_INCLUDE) -c -o $@ $< $(CFLAGS)
nvcc $(DELAUNAY_INCLUDE) -c -o $@ $< $(CFLAGS)
KerDivision.o: gDel3D/GPU/KerDivision.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
Splaying.o: gDel3D/CPU/Splaying.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
Star.o: gDel3D/CPU/Star.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
PredWrapper.o: gDel3D/CPU/PredWrapper.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
KerPredicates.o: gDel3D/GPU/KerPredicates.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
predicates.o: gDel3D/CPU/predicates.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
ThrustWrapper.o: gDel3D/GPU/ThrustWrapper.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
InputCreator.o: InputCreator.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
RandGen.o: RandGen.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
CRotationGrid.o: CRotationGrid.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
CMrcReader.o: CMrcReader.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
PdbReader.o: PdbReader.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
Particles.o: Particles.cu
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
DelaunayChecker.o: DelaunayChecker.cpp
$(NVCC) -c -o $@ $< $(CFLAGS)
nvcc -c -o $@ $< $(CFLAGS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment