Skip to content

ranks with unequal number of threads #886

Description

@hfp

It seems dbcsr_mm_multrec.F:309 can crash with OOB access if ranks have unequal number of threads?

A test script looks like:

#!/usr/bin/env bash
NPROC=$(nproc)
MYVAR=$1
VAR=$((MYVAR<NPROC?MYVAR:(NPROC-1)))
export OMP_NUM_THREADS=$((0<RANDOM%2?(NPROC-VAR):NPROC))
echo "OMP_NUM_THREADS=${OMP_NUM_THREADS}"
shift && eval "$*"

The actual test is:

mpirun -np 16 ./runbug.sh 2 /path/to/cp2k-exe/cp2k.psmp /path/to/benchmarks/QS_single_node/dbcsr.inp

This test assumes more than two threads per rank, and varies the number of OpenMP threads per rank by the given variation (2).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions