Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
h
i
m
n
o
p
r
s
t
v
w
x
y
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
p
q
r
s
t
u
v
Enumerations
Enumerator
b
g
h
j
l
o
p
r
s
w
x
y
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
z
Related Functions
:
a
b
c
d
e
f
h
k
l
n
o
p
s
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
f
i
m
n
o
p
s
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
s
t
u
v
Enumerations
Enumerator
a
d
f
i
k
l
o
p
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
h
i
k
l
m
n
p
r
s
t
u
v
w
Examples
ext
kintinuous
kfusion
include
kfusion
safe_call.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "cuda_runtime_api.h"
4
5
namespace
kfusion
6
{
7
namespace
cuda
8
{
9
void
error
(
const
char
*error_string,
const
char
*
file
,
const
int
line,
const
char
*func);
10
}
11
}
12
13
#if defined(__GNUC__)
14
#define cudaSafeCall(expr) kfusion::cuda::___cudaSafeCall(expr, __FILE__, __LINE__, __func__)
15
#else
/* defined(__CUDACC__) || defined(__MSVC__) */
16
#define cudaSafeCall(expr) kfusion::cuda::___cudaSafeCall(expr, __FILE__, __LINE__)
17
#endif
18
19
namespace
kfusion
20
{
21
namespace
cuda
22
{
23
static
inline
void
___cudaSafeCall
(cudaError_t err,
const
char
*
file
,
const
int
line,
const
char
*func =
""
)
24
{
25
if
(cudaSuccess != err)
26
error
(cudaGetErrorString(err),
file
, line, func);
27
}
28
29
static
inline
int
divUp
(
int
total,
int
grain) {
return
(total + grain - 1) / grain; }
30
}
31
32
namespace
device
33
{
34
using
kfusion::cuda::divUp
;
35
}
36
}
kfusion
Utility.
Definition:
capture.hpp:8
file
FILE * file
Definition:
arithmeticencoder.cpp:77
kfusion::cuda::___cudaSafeCall
static void ___cudaSafeCall(cudaError_t err, const char *file, const int line, const char *func="")
Definition:
safe_call.hpp:23
kfusion::cuda::error
KF_EXPORTS void error(const char *error_string, const char *file, const int line, const char *func="")
Error handler. All GPU functions from this subsystem call the function to report an error....
Definition:
device_memory.cpp:7
kfusion::cuda::divUp
static int divUp(int total, int grain)
Definition:
safe_call.hpp:29
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz
, Alexander Mock
, Lars Kiesow
, Lukas Kalbertodt
, Tristan Igelbrink
, Johan M. von Behren
, Dominik Feldschnieders
, Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24