--- a/cuda-samples/0_Simple/cudaOpenMP/Makefile +++ b/cuda-samples/0_Simple/cudaOpenMP/Makefile @@ -166,7 +166,7 @@ endif endif -GOMPLIB ?= $(shell find $(OPENMPDIR)/libgomp* 2>/dev/null) +GOMPLIB ?= $(shell find $(OPENMPDIR) -type f -name libgomp* 2>/dev/null) ifeq ($(GOMPLIB),) $(info -----------------------------------------------------------------------------------------------) --- a/cuda-samples/0_Simple/UnifiedMemoryStreams/Makefile +++ b/cuda-samples/0_Simple/UnifiedMemoryStreams/Makefile @@ -166,7 +166,7 @@ endif endif -GOMPLIB ?= $(shell find $(OPENMPDIR)/libgomp* 2>/dev/null) +GOMPLIB ?= $(shell find $(OPENMPDIR) -type f -name libgomp* 2>/dev/null) ifeq ($(GOMPLIB),) $(info -----------------------------------------------------------------------------------------------)