Skip to content
Snippets Groups Projects
Commit 4a82524a authored by Akash Kothari's avatar Akash Kothari
Browse files

Update Makefiles to use CUDA runtime

parent d5f53922
No related branches found
No related tags found
No related merge requests found
CUDA_PATH=/usr/local/cuda
CUDA_LIB_PATH=/usr/local/cuda/lib64
OPENCL_PATH=/opt/intel/opencl-sdk
OPENCL_LIB_PATH=/usr/lib64
CUDA_PATH=/software/cuda-9.1/
CUDA_LIB_PATH=/software/cuda-9.1/lib64/
OPENCL_PATH=/opt/intel/opencl-sdk/
OPENCL_LIB_PATH=/usr/lib64/
......@@ -3,7 +3,7 @@
# Default language wide options
LANG_CFLAGS=-I$(PARBOIL_ROOT)/common/include
LANG_CXXFLAGS=$(LANG_CFLAGS) -fno-exceptions
LANG_LDFLAGS=-lOpenCL -L$(OPENCL_LIB_PATH) -lrt
LANG_LDFLAGS=-lOpenCL -L$(OPENCL_LIB_PATH) -lrt -L$(CUDA_LIB_PATH) -lcudart
CFLAGS=$(LANG_CFLAGS) $(PLATFORM_CFLAGS) $(APP_CFLAGS)
CXXFLAGS=$(LANG_CXXFLAGS) $(PLATFORM_CXXFLAGS) $(APP_CXXFLAGS)
......@@ -154,11 +154,11 @@ default: $(FAILSAFE) $(BUILDDIR) $(PTX_ASSEMBLY) $(SPIR_ASSEMBLY) $(BIN)
#default: $(FAILSAFE) $(BUILDDIR) $(BIN)
run : $(RUNDIR)
echo "Resolving OpenCL library..."
$(shell echo $(RUNTIME_ENV)) LD_LIBRARY_PATH=$(OPENCL_LIB_PATH) ldd ./$(BIN) | grep OpenCL
echo "Resolving CUDA library..."
$(shell echo $(RUNTIME_ENV)) LD_LIBRARY_PATH=$(CUDA_LIB_PATH) ldd ./$(BIN) | grep cuda
#echo "Resolving OpenCV library..."
#$(shell echo $(RUNTIME_ENV)) LD_LIBRARY_PATH=$(OPENCV_LIB_PATH) ldd ./$(BIN) | grep opencv
$(shell echo $(RUNTIME_ENV)) LD_LIBRARY_PATH=$(OPENCL_LIB_PATH):$(OPENCV_LIB_PATH) ./$(BIN) $(ARGS)
$(shell echo $(RUNTIME_ENV)) LD_LIBRARY_PATH=$(OPENCL_LIB_PATH):$(OPENCV_LIB_PATH):$(CUDA_LIB_PATH) ./$(BIN) $(ARGS)
$(TOOL) $(OUTPUT) $(REF_OUTPUT)
debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment