ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthCUDA
AthCUDACore
src
TaskArena.cxx
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
//
4
5
#include "
CxxUtils/checker_macros.h
"
6
7
// Local include(s).
8
#include "
AthCUDACore/TaskArena.h
"
9
10
#include <tbb/task_arena.h>
11
12
namespace
AthCUDA
{
13
14
tbb::task_arena&
taskArena
() {
15
16
static
tbb::task_arena arena
ATLAS_THREAD_SAFE
( 1, 0 );
17
return
arena;
18
}
19
20
void
enqueueTask
( std::function<
void
()> f ) {
21
22
taskArena
().enqueue( f );
23
}
24
25
}
// namespace AthCUDA
TaskArena.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
AthCUDA
Definition
Info.h:14
AthCUDA::taskArena
tbb::task_arena & taskArena()
Definition
TaskArena.cxx:14
AthCUDA::enqueueTask
void enqueueTask(std::function< void()> f)
Enqueue a function to the TBB task arena used for CUDA calls.
Definition
TaskArena.cxx:20
Generated on
for ATLAS Offline Software by
1.14.0