MCPcopy Create free account
hub / github.com/RenderKit/ospray / MPIDistribBase

Method MPIDistribBase

modules/mpi/testing/distributed_test_fixture.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44MPIDistribBase::MPIDistribBase()
45{
46 MPI_Comm_size(MPI_COMM_WORLD, &mpiSize);
47 MPI_Comm_rank(MPI_COMM_WORLD, &mpiRank);
48
49 rankGridDims = computeGrid(mpiSize);
50 rankBrickId = vec3i(mpiRank % rankGridDims.x,
51 (mpiRank / rankGridDims.x) % rankGridDims.y,
52 mpiRank / (rankGridDims.x * rankGridDims.y));
53}
54
55void MPIDistribBase::AddInstance(cpp::Instance instance)
56{

Callers

nothing calls this directly

Calls 1

computeGridFunction · 0.70

Tested by

no test coverage detected