Searched refs:numthreads (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex7.c | 229 PetscInt numthreads = PetscNumOMPThreads; in go() local 231 PetscInt numthreads = 1; in go() local 236 …PetscCheck(numthreads <= MAX_NUM_THRDS, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "Too many thre… in go() 237 …PetscCheck(numthreads > 0, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "No threads %" PetscInt_FMT… in go() 239 if (target >= numthreads) target = numthreads - 1; in go() 249 for (int tid = 0; tid < numthreads; tid++) { in go() 282 for (int tid = 0; tid < numthreads; tid++) { // change size of particle list a little in go() 308 …for (int tid = 0; tid < numthreads; tid++) PetscCallAbort(PETSC_COMM_SELF, createSwarm(dm_t[tid], … in go() 310 …for (int tid = 0; tid < numthreads; tid++) PetscCallAbort(PETSC_COMM_SELF, particlesToGrid(dm_t[ti… in go() 314 …for (int tid = 0; tid < numthreads; tid++) PetscCallAbort(PETSC_COMM_SELF, VecCopy(rho_t[tid], rhs… in go() [all …]
|
| /petsc/src/ts/tests/ |
| H A D | ex30.c | 278 …rmArray[], const PetscInt dim, const PetscInt v_target, const PetscInt numthreads, const PetscInt … in gridToParticles_private() argument 284 for (PetscInt v_id_0 = 0; v_id_0 < ctx->batch_sz; v_id_0 += numthreads) { in gridToParticles_private() 287 for (PetscInt tid = 0; tid < numthreads; tid++) { in gridToParticles_private() 300 …d_dm[0], "Cleanup batches %" PetscInt_FMT " to %" PetscInt_FMT "\n", v_id_0, v_id_0 + numthreads)); in gridToParticles_private() 301 for (PetscInt tid = 0; tid < numthreads; tid++) { in gridToParticles_private() 468 PetscInt numthreads = PetscNumOMPThreads; in go() local 470 PetscInt numthreads = 1; in go() local 478 …PetscCheck(numthreads <= EX30_MAX_NUM_THRDS, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "Too many… in go() 479 …PetscCheck(numthreads > 0, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "Number threads %" PetscInt… in go() 482 …numthreads == 0, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "batch size (-dm_landau_batch_size) %… in go() [all …]
|