perry-ca wrote:

This test will fail on z/OS without a resource requirement for cuda.   I get 
these errors when running this test:
```
clang: warning: argument unused during compilation: '-c' 
[-Wunused-command-line-argument]
In file included from <built-in>:1:
In file included from ./../../lib/Headers/__clang_cuda_runtime_wrapper.h:158:
./../../lib/Headers/__clang_cuda_math.h:284:13: error: use of undeclared 
identifier 'INT_MAX'
  284 |   if (__b > INT_MAX)
      |             ^~~~~~~
./../../lib/Headers/__clang_cuda_math.h:286:13: error: use of undeclared 
identifier 'INT_MIN'
  286 |   if (__b < INT_MIN)
      |             ^~~~~~~
./../../lib/Headers/__clang_cuda_math.h:291:13: error: use of undeclared 
identifier 'INT_MAX'
  291 |   if (__b > INT_MAX)
      |             ^~~~~~~
./../../lib/Headers/__clang_cuda_math.h:293:13: error: use of undeclared 
identifier 'INT_MIN'
  293 |   if (__b < INT_MIN)
      |             ^~~~~~~
4 errors generated when compiling for sm_52.
```

Is there a better resource to require?  This does require the the target 
support cuda.

https://github.com/llvm/llvm-project/pull/171174
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to