Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:00

0001 #include <optix.h>
0002 
0003 /**
0004 
0005 
0006 
0007 **/
0008 
0009 
0010 
0011 extern "C" __global__ void __raygen__rg()
0012 {
0013     float f0 = 1.f ; 
0014 
0015     // its unclear where these methods are coming from
0016     // there are __float_as_uint __uint_as_float documented
0017 
0018 #ifdef NOW_DEPRECATED_WARNS
0019     unsigned u0 = float_as_uint( f0 ); 
0020     float f1 = uint_as_float(u0) ; 
0021 #else
0022     unsigned u0 = __float_as_uint( f0 ); 
0023     float f1 = __uint_as_float(u0) ; 
0024 #endif
0025 
0026     //int i1 = uint_as_int(u0);  nope
0027 }
0028 
0029 /**
0030 Compiler informs::
0031 
0032 /data3/wenzel/newopticks_dev2/opticks/CSGOptiX/Check.cu(11): warning #1444-D: function "float_as_uint"
0033 /usr/local/cuda/include/crt/device_functions.hpp(140): here was declared deprecated ("float_as_uint() is deprecated in favor of __float_as_uint() and may be removed in a fu
0034 /data3/wenzel/newopticks_dev2/opticks/CSGOptiX/Check.cu(12): warning #1444-D: function "uint_as_float"
0035 /usr/local/cuda/include/crt/device_functions.hpp(145): here was declared deprecated ("uint_as_float() is deprecated in favor of __uint_as_float() and may be removed in a fu
0036 
0037 
0038 
0039 **/