Tachyon (current)  Current Main Branch
Macros | Functions
TachyonOptiX.cu File Reference

Tachyon ray tracing host side routines and internal APIs that provide the core ray OptiX-based RTX-accelerated tracing engine. More...

#include "TachyonOptiX.h"
#include <optix_stubs.h>
#include <optix_function_table_definition.h>
#include "ProfileHooks.h"

Go to the source code of this file.

Macros

#define TACHYON_INTERNAL   1
 
#define DBG()   if (verbose == RT_VERB_DEBUG) { printf("TachyonOptiX) %s\n", __func__); }
 
#define CUERR
 

Functions

static void TachyonOptixLogCallback (unsigned int level, const char *tag, const char *message, void *cbdata)
 
static TachyonOptiX::Verbosity get_verbose_flag (int inform=0)
 

Detailed Description

Tachyon ray tracing host side routines and internal APIs that provide the core ray OptiX-based RTX-accelerated tracing engine.

The major responsibilities of the core engine are to manage runtime RT pipeline construction and JIT-linked shaders to build complete ray tracing pipelines, management of RT engine state, and managing associated GPU hardware. Written for NVIDIA OptiX 7 and later.

Definition in file TachyonOptiX.cu.

Macro Definition Documentation

◆ CUERR

#define CUERR
Value:
{ cudaError_t err; \
if ((err = cudaGetLastError()) != cudaSuccess) { \
printf("CUDA error: %s, %s line %d\n", cudaGetErrorString(err), __FILE__, __LINE__); \
}}

Definition at line 103 of file TachyonOptiX.cu.

Referenced by TachyonOptiX::print_raystats_info(), and TachyonOptiX::~TachyonOptiX().

◆ DBG

#define DBG ( )    if (verbose == RT_VERB_DEBUG) { printf("TachyonOptiX) %s\n", __func__); }

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 88 of file TachyonOptiX.cu.

Function Documentation

◆ get_verbose_flag()

static TachyonOptiX::Verbosity get_verbose_flag ( int  inform = 0)
static

◆ TachyonOptixLogCallback()

static void TachyonOptixLogCallback ( unsigned int  level,
const char *  tag,
const char *  message,
void *  cbdata 
)
static

Definition at line 298 of file TachyonOptiX.cu.

References TachyonOptiX::log_callback().