File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 2424// Some headers provide these as macros. Temporarily undefine them so they do
2525// not conflict with any definitions for the GPU.
2626
27- #pragma push_macro("stdout")
28- #pragma push_macro("stdin")
29- #pragma push_macro("stderr")
30-
31- #undef stdout
32- #undef stderr
33- #undef stdin
34-
35- #pragma omp begin declare target
36-
37- __LIBC_ATTRS extern FILE * stderr ;
38- __LIBC_ATTRS extern FILE * stdin ;
39- __LIBC_ATTRS extern FILE * stdout ;
40-
41- #pragma omp end declare target
42-
43- // Restore the original macros when compiling on the host.
44- #if !defined(__NVPTX__ ) && !defined(__AMDGPU__ )
45- #pragma pop_macro("stderr")
46- #pragma pop_macro("stdin")
47- #pragma pop_macro("stdout")
48- #endif
4927
5028#undef __LIBC_ATTRS
5129
You can’t perform that action at this time.
0 commit comments