BioDynaMo  v1.05.159-3be850bb
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 
21 
22 namespace bdm {
23 
24 namespace detail {
25 
26 struct InitializeGPUData;
27 
28 } // namespace detail
29 
33 
34  public:
35  void SetUp() override;
36 
37  void operator()() override;
38 
39  void TearDown() override;
40 
41  private:
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_
Definition: agent.cc:39
Defines the 3D physical interactions between physical objects.
detail::InitializeGPUData * i_
MechanicalForcesOpCudaKernel * cdo_
BDM_OP_HEADER(MechanicalForcesOpCuda)
Interface for implementing an operation that should run on a GPU.
Definition: operation.h:86