19#include "owl/helper/cuda.h" 
   22#pragma warning( push ) 
   23#pragma warning( disable : 4996 ) 
   27#include <optix_function_table.h> 
   28#include <optix_stubs.h> 
   31#pragma warning( push ) 
   34#define OPTIX_CHECK( call )                                             \ 
   36    OptixResult res = call;                                             \ 
   37    if( res != OPTIX_SUCCESS )                                          \ 
   39        fprintf( stderr, "Optix call (%s) failed with code %d (line %d)\n", #call, res, __LINE__ ); \
 
   44#define OPTIX_CHECK_LOG( call )                                         \ 
   46    OptixResult res = call;                                             \ 
   47    if( res != OPTIX_SUCCESS )                                          \ 
   49        fprintf( stderr, "Optix call (%s) failed with code %d (line %d)\n", #call, res, __LINE__ ); \
 
   50        fprintf( stderr, "Log:\n%s\n", log );                           \
 
   55#define OPTIX_CALL( call ) OPTIX_CHECK(optix##call)