Make OpenMM OpenCL support work on Clover and RadeonSI
Submitted by Vedran Miletić
Assigned to Vedran Miletić
Description
How to build/test:
$ git clone https://github.com/pandegroup/openmm.git $ cd openmm $ mkdir build $ cd build $ cmake .. $ make -j4 test
We pass three tests:
Start 90: TestOpenCLDeviceQuerySingle
90/235 Test #90 (closed): TestOpenCLDeviceQuerySingle ..................... Passed 0.03 sec Start 91: TestOpenCLDeviceQueryMixed 91/235 Test #91 (closed): TestOpenCLDeviceQueryMixed ...................... Passed 0.03 sec Start 92: TestOpenCLDeviceQueryDouble 92/235 Test #92: TestOpenCLDeviceQueryDouble ..................... Passed 0.03 sec
Everything else fails with:
exception: Error compiling kernel: input.cl:124:67: warning: implicit declaration of function 'native_recip' is invalid in C99
<unknown>
:0:0: in function determineNativeAccuracy void (<8 x float>
addrspace(1)*, i32): unsupported call to function native_recip
Version: git