Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defect: src/tests/unit/simple/test1Caf.F90 AKA increment_my_neighbor fails #407

Open
zbeekman opened this issue Jun 20, 2017 · 5 comments
Open

Comments

@zbeekman
Copy link
Collaborator

zbeekman commented Jun 20, 2017

Defect/Bug Report

src/tests/unit/simple/test1Caf.F90 AKA increment_my_neighbor fails (at least when oversubscribed @ 32 cores)

I have spent some time looking at this and can't convince myself that this is not a logic error in the test itself. So it could be a bug in the test or a bug in the library, likely due to a race condition, if that's the case.

  • OpenCoarrays Version: 1.9.0-5-g232d234
  • Fortran Compiler: GFortran 7.1
  • C compiler used for building lib: GCC 7.1
  • Installation method: FC=gfortran-7 CC=gcc-7 cmake ..
  • Output of uname -a: Darwin IBBs-MBP.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Apr 11 16:12:42 PDT 2017; root:xnu-2782.50.9.2.3~1/RELEASE_X86_64 x86_64
  • MPI library being used: MPICH 3.2
  • Machine architecture and number of physical cores: Intel_64 @ 4 cores
  • Version of CMake: 3.8.2

Observed Behavior

Test fails when oversubscribed at 32 images

Expected Behavior

Test passes

Steps to Reproduce

Uncomment relevant line in CMakeLists.txt, L568 currently.

@jerryd
Copy link

jerryd commented Jun 21, 2017

I have noticed several tests failing when over prescribed. Failing in the sense of running forever and I manually terminated. This could be because the test make no sense at higher numbers of processes. I will post what I am seeing later.

@zbeekman
Copy link
Collaborator Author

Some tests require a specific number such as power of two

@jerryd
Copy link

jerryd commented Jun 23, 2017

I have been running some tests on this case. With -np 4 I can get a fail about every 100 runs or so. The fail rate goes up with increased -np.

I can eliminate failures by inserting a 'sync all' here:
me = this_image()
np = num_images()

sync all

left = merge(np,me-1,me==1)
right = merge(1,me+1,me==np)

@zbeekman zbeekman moved this from Unconfirmed bugs to Confirmed bugs in Bug squashing: Most wanted Jul 19, 2017
@stale
Copy link

stale bot commented Mar 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Mar 29, 2019
@zbeekman
Copy link
Collaborator Author

Building with (MPICH 3.3, GCC/GFortran 8.3 all from mac Homebrew):

export FC="$(which gfortran-8)"
export CC="$(which gcc-8)"
cmake -Wdev -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_Fortran_FLAGS:STRING="-g -fbacktrace -fcheck=bounds,pointer" -DCMAKE_C_FLAGS:STRING="-g -fstack-check" ..
make -j

and then testing with:

bin/cafrun -np 50 bin/OpenCoarrays-2.6.1-11-g84ea96a-tests/increment_my_neighbor

Reliably causes failures on my work iMac

intel core i-5 4690 @ 3.5 GHz, 4 cores, 4 threads.

I have attached a full debug log of the runtime failure.
increment_my_neighbor.50img.fail.txt

@stale stale bot removed the stale label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Bug squashing: Most wanted
  
Confirmed bugs
Development

No branches or pull requests

2 participants