1.3.64
 
Loading...
Searching...
No Matches
VoxelIntersection.cu File Reference

Go to the source code of this file.

Macros

#define CUDA_CHECK_ERROR(ans)
 

Functions

void gpuAssert (cudaError_t code, const char *file, int line, bool abort=true)
 
float3 vec3tofloat3 (helios::vec3 v3)
 
helios::vec3 float3tovec3 (float3 f3)
 
__device__ float3 d_rotatePoint_vi (const float3 &position, const float &theta, const float &phi)
 
__global__ void insideVolume_vi (const uint Nhits, const float3 *d_hit_xyz, const uint Ngridcells, const float3 *d_grid_size, const float3 *d_grid_center, const float *d_grid_rotation, int *d_hit_vol)
 

Detailed Description

CUDA-related functions for voxel-intersection plug-in

Copyright (C) 2016-2026 Brian Bailey

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Definition in file VoxelIntersection.cu.

Macro Definition Documentation

◆ CUDA_CHECK_ERROR

#define CUDA_CHECK_ERROR (   ans)
Value:
{ \
gpuAssert((ans), __FILE__, __LINE__); \
}

Definition at line 18 of file VoxelIntersection.cu.

Function Documentation

◆ d_rotatePoint_vi()

__device__ float3 d_rotatePoint_vi ( const float3 &  position,
const float &  theta,
const float &  phi 
)

Definition at line 46 of file VoxelIntersection.cu.

◆ float3tovec3()

helios::vec3 float3tovec3 ( float3  f3)
inline

Definition at line 38 of file VoxelIntersection.cu.

◆ gpuAssert()

void gpuAssert ( cudaError_t  code,
const char *  file,
int  line,
bool  abort = true 
)
inline

Definition at line 22 of file VoxelIntersection.cu.

◆ insideVolume_vi()

__global__ void insideVolume_vi ( const uint  Nhits,
const float3 *  d_hit_xyz,
const uint  Ngridcells,
const float3 *  d_grid_size,
const float3 *  d_grid_center,
const float *  d_grid_rotation,
int *  d_hit_vol 
)

Definition at line 98 of file VoxelIntersection.cu.

◆ vec3tofloat3()

float3 vec3tofloat3 ( helios::vec3  v3)
inline

Definition at line 30 of file VoxelIntersection.cu.