Closed lthakur007 closed 9 months ago
Add brief descriptions to the beginning of each test using the format used in other tests.
GCC 13.1.1 on the Summit system fails on test_target_teams_loop_allocate.c
with the following error messages:
(the other tests pass with GCC 13.1.1.)
25:17: error: 'local' specified in 'allocate' clause but not in an explicit privatization clause
However, this seems to be a compiler bug.
GCC 13.1.1 on the Summit system fails on
test_target_teams_loop_allocate.c
with the following error messages: (the other tests pass with GCC 13.1.1.)25:17: error: 'local' specified in 'allocate' clause but not in an explicit privatization clause
However, this seems to be a compiler bug.
Actually, it is a code bug:
#pragma omp target teams loop ... allocate(omp_default_mem_alloc: local) private(local)
Namely:
I have now filed a GCC issue, PR111042, to improve the message wording for C/C++ and to add an error check for Fortran (currently, it crashes for the F90 vanriant of the invalid directive).
Hi @seyonglee and @seyonglee , Could you please share your opinion on the comment made by @tob2 . Please advise if we should remove the test file or any modification would allow allocate() clause still applicable.
addressed review comments.. please approve...
Hi @seyonglee and @spophale , I have addressed the review comments. Please consider to scrutinize the fixes... Fixes are working fine on AMD platforms....
@lthakur007 , generally arrays are not the best data types to check if defaultmaps were correctly applied as they have an implicit data mapping of toform on target directive.
Add for all tests in main:
OMPVV_TEST_OFFLOADING;
This will ensure that the correct message is printed. Like "Test passed on device .."
Hi @seyonglee and @spophale , I have addressed review comments... please consider the fixes....
@lthakur007 please review our comments at your convenience.
Hi @fel-cab , I have committed the changes you suggested. Please consider the PR for further processing...
Please review..