BioDynaMo
v1.05.125-2619fe54
Home
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
l
n
o
p
r
s
t
u
v
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
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
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
b
c
d
e
f
i
n
p
r
t
v
Enumerations
Enumerator
Related Functions
:
d
e
i
m
o
p
r
s
t
Files
File List
File Members
All
_
b
c
d
h
n
p
s
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
core
gpu
cuda_pinned_memory.h
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
//
3
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4
// BioDynaMo collaboration. All Rights Reserved.
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
//
9
// See the LICENSE file distributed with this work for details.
10
// See the NOTICE file distributed with this work for additional information
11
// regarding copyright ownership.
12
//
13
// -----------------------------------------------------------------------------
14
15
#ifndef CORE_GPU_CUDA_PINNED_MEMORY_H_
16
#define CORE_GPU_CUDA_PINNED_MEMORY_H_
17
18
#include <cstdint>
19
20
namespace
bdm
{
21
22
#ifdef USE_CUDA
23
25
template
<
typename
T>
26
void
CudaAllocPinned
(T** d, uint64_t elements);
27
28
void
CudaFreePinned
(
void
* p);
29
30
#else
31
32
template
<
typename
T>
33
inline
void
CudaAllocPinned
(T** d, uint64_t elements) {}
34
35
inline
void
CudaFreePinned
(
void
* p) {}
36
37
#endif // USE_CUDA
38
39
}
// namespace bdm
40
41
#endif // CORE_GPU_CUDA_PINNED_MEMORY_H_
bdm
Definition:
agent.cc:39
bdm::CudaAllocPinned
void CudaAllocPinned(T **d, uint64_t elements)
Definition:
cuda_pinned_memory.h:33
bdm::CudaFreePinned
void CudaFreePinned(void *p)
Definition:
cuda_pinned_memory.h:35
Generated by
1.8.17