MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / init

Function init

Tests/DeviceGlobal/init.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "global_vars.H"
3
4void init ()
5{
6 amrex::ParallelFor(1, [=] AMREX_GPU_DEVICE (int)
7 {
8 dg_x = 1;
9 for (int n = 0; n < 4; ++n) {
10 dg_y[n] = 100 + n;
11 }
12 });
13
14 amrex::Gpu::streamSynchronize();
15}
16
17void init2 ()
18{

Callers 4

mainFunction · 0.70
InitializeMethod · 0.50
StreamIterMethod · 0.50
ForkJoinMethod · 0.50

Calls 2

streamSynchronizeFunction · 0.85
ParallelForFunction · 0.50

Tested by

no test coverage detected