Changeset e97170c in sasmodels


Ignore:
Timestamp:
Dec 11, 2015 4:04:54 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f4f3919
Parents:
716abe0
Message:

try to work around opencl double pragma warning on AMD driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r5d316e9 re97170c  
    320320# still compile even if OpenCL is not present. 
    321321_F16_PRAGMA = """\ 
    322 #ifdef cl_khr_fp16 
     322#if defined(__OPENCL_VERSION__) && !defined(cl_khr_fp16) 
    323323#  pragma OPENCL EXTENSION cl_khr_fp16: enable 
    324324#endif 
     
    326326 
    327327_F64_PRAGMA = """\ 
    328 #ifdef cl_khr_fp64 
     328#if defined(__OPENCL_VERSION__) && !defined(cl_khr_fp64) 
    329329#  pragma OPENCL EXTENSION cl_khr_fp64: enable 
    330330#endif 
Note: See TracChangeset for help on using the changeset viewer.