On Fri, Mar 25, 2022 at 10:18:49AM +0100, Tom de Vries wrote: > When a display manager is running on an nvidia card, all CUDA kernel launches > get a 5 seconds watchdog timer. > > Consequently, when running the libgomp testsuite with nvptx accelerator and > GOMP_NVPTX_JIT=-O0 we run into a few FAILs like this: > ... > libgomp: cuStreamSynchronize error: the launch timed out and was terminated > FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/parallel-dims.c \ > -DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none -O0 \ > execution test > ... > > Fix this by scaling down the failing test-cases. > > Tested on x86_64-linux with nvptx accelerator. > > OK for trunk?
Will defer to Thomas, as it is a purely OpenACC change. One way to do it is /* { dg-additional-options "-DEXPENSIVE" { target run_expensive_tests } } */ and using #ifdef EXPENSIVE #define N 100 #else #define N 50 #endif etc., that way the tests will be normally scaled down, but with GCC_TEST_RUN_EXPENSIVE=1 in the environment one can still request the more expensive tests. For the Fortran test it would mean .F90 extension though... Jakub