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
operation
mechanical_forces_op_cuda.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_OPERATION_MECHANICAL_FORCES_OP_CUDA_H_
16
#define CORE_OPERATION_MECHANICAL_FORCES_OP_CUDA_H_
17
18
#include "
core/gpu/mechanical_forces_op_cuda_kernel.h
"
19
#include "
core/operation/operation.h
"
20
#include "
core/operation/operation_registry.h
"
21
22
namespace
bdm
{
23
24
namespace
detail {
25
26
struct
InitializeGPUData;
27
28
}
// namespace detail
29
31
struct
MechanicalForcesOpCuda
:
public
StandaloneOperationImpl
{
32
BDM_OP_HEADER
(
MechanicalForcesOpCuda
);
33
34
public
:
35
void
SetUp
()
override
;
36
37
void
operator()
()
override
;
38
39
void
TearDown
()
override
;
40
41
private
:
42
MechanicalForcesOpCudaKernel
*
cdo_
=
nullptr
;
43
detail::InitializeGPUData
*
i_
=
nullptr
;
44
uint32_t
num_boxes_
= 0;
45
uint32_t
total_num_agents_
= 0;
46
};
47
48
}
// namespace bdm
49
50
#endif // CORE_OPERATION_MECHANICAL_FORCES_OP_CUDA_H_
bdm::MechanicalForcesOpCudaKernel
Definition:
mechanical_forces_op_cuda_kernel.h:29
bdm
Definition:
agent.cc:39
operation.h
bdm::MechanicalForcesOpCuda::SetUp
void SetUp() override
Definition:
mechanical_forces_op_cuda.cc:236
bdm::MechanicalForcesOpCuda
Defines the 3D physical interactions between physical objects.
Definition:
mechanical_forces_op_cuda.h:31
operation_registry.h
bdm::MechanicalForcesOpCuda::cdo_
MechanicalForcesOpCudaKernel * cdo_
Definition:
mechanical_forces_op_cuda.h:42
bdm::MechanicalForcesOpCuda::BDM_OP_HEADER
BDM_OP_HEADER(MechanicalForcesOpCuda)
bdm::MechanicalForcesOpCuda::total_num_agents_
uint32_t total_num_agents_
Definition:
mechanical_forces_op_cuda.h:45
bdm::MechanicalForcesOpCuda::operator()
void operator()() override
Definition:
mechanical_forces_op_cuda.cc:282
bdm::MechanicalForcesOpCuda::num_boxes_
uint32_t num_boxes_
Definition:
mechanical_forces_op_cuda.h:44
mechanical_forces_op_cuda_kernel.h
bdm::StandaloneOperationImpl
Interface for implementing an operation that should run on a GPU.
Definition:
operation.h:86
bdm::MechanicalForcesOpCuda::i_
detail::InitializeGPUData * i_
Definition:
mechanical_forces_op_cuda.h:43
bdm::detail::InitializeGPUData
Definition:
mechanical_forces_op_cuda.cc:45
bdm::MechanicalForcesOpCuda::TearDown
void TearDown() override
Definition:
mechanical_forces_op_cuda.cc:333
Generated by
1.8.17