Skip to content

Commit ebe6e69

Browse files
committed
Update openlibm patch to use offload-arch instead of mygpu.
1 parent f097808 commit ebe6e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/patches/openlibm.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ diff -Naur -x .git openlibm.0.7.2/test/Makefile openlibm/test/Makefile
474474
+# Clang offloading has header overlays for math.h to define device variants of math functions.
475475
+# It does not have an overlay for openlibm headers, so we must use system defines.
476476
+AOMP ?= /usr/lib/aomp
477-
+_gpu = $(shell $(AOMP)/bin/mygpu -d gfx900)
477+
+_gpu = $(shell $(AOMP)/bin/offload-arch)
478478
+ifeq (sm_,$(findstring sm_,$(_gpu)))
479479
+ _gputriple = nvptx64-nvidia-cuda
480480
+else

0 commit comments

Comments
 (0)