summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eed9f8f..8e248fe 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,12 @@ ifeq ($(shell uname),Linux)
else
TARGETS += $(SIM_LIB_DIR)/libcudart.dylib
endif
-ifneq ($(NVOPENCL_LIBDIR),)
+
+ifeq ($(NVOPENCL_LIBDIR),)
+ TARGETS += no_opencl_support
+else ifeq ($(NVOPENCL_INCDIR),)
+ TARGETS += no_opencl_support
+else
TARGETS += $(SIM_LIB_DIR)/libOpenCL.so
endif
TARGETS += decuda_to_ptxplus/decuda_to_ptxplus
@@ -60,6 +65,9 @@ endif
gpgpusim: makedirs $(TARGETS)
+no_opencl_support:
+ @echo "Warning: gpgpu-sim is building without opencl support. Make sure NVOPENCL_LIBDIR and NVOPENCL_INCDIR are set"
+
$(SIM_LIB_DIR)/libcudart.so: $(LIBS) cudalib
g++ $(SNOW) -shared -Wl,-soname,libcudart.so \
$(SIM_OBJ_FILES_DIR)/libcuda/*.o \