summaryrefslogtreecommitdiff
blob: c414578a73fb5054bcda0f632363498b14bd0677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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 -----------------------------------------------------------------------------------------------)