Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02d8c9c

Browse files
authored
[OpenMP] Stub vprintf on non-NVPTX if no libc (#180025)
The AMDGPU check was added in #123670 where the reasoning seems to be that the NVIDIA SDK will provide `vprintf` for the NVPTX case and AMDGPU was the only other supported target at the time. SPIR-V also needs this stubbed out, so just check that it's not NVPTX. Signed-off-by: Nick Sarnie <[email protected]>
1 parent df662e9 commit 02d8c9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openmp/device/src/LibC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "LibC.h"
1010

11-
#if defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC)
11+
#if !defined(__NVPTX__) && !defined(OMPTARGET_HAS_LIBC)
1212
extern "C" int vprintf(const char *format, __builtin_va_list) { return -1; }
1313
#else
1414
extern "C" int vprintf(const char *format, __builtin_va_list);

0 commit comments

Comments
 (0)