BioDynaMo
v1.05.120-25dc9790
core
gpu
gpu_helper.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_GPU_HELPER_H_
16
#define CORE_GPU_GPU_HELPER_H_
17
18
namespace
bdm
{
19
20
class
GpuHelper
{
21
public
:
22
static
GpuHelper
*
GetInstance
();
23
24
#ifdef USE_CUDA
25
static
void
FindGpuDevicesCuda();
26
#endif // USE_CUDA
27
28
#ifdef USE_OPENCL
29
void
CompileOpenCLKernels();
30
31
void
FindGpuDevicesOpenCL();
32
#endif // defined(USE_OPENCL)
33
34
void
InitializeGPUEnvironment
();
35
};
36
37
}
// namespace bdm
38
39
#endif // CORE_GPU_GPU_HELPER_H_
bdm::GpuHelper::GetInstance
static GpuHelper * GetInstance()
Definition:
gpu_helper.cc:47
bdm::GpuHelper
Definition:
gpu_helper.h:20
bdm
Definition:
agent.cc:39
bdm::GpuHelper::InitializeGPUEnvironment
void InitializeGPUEnvironment()
Definition:
gpu_helper.cc:244
Generated by
1.8.17