OpenMP-Validation-and-Verification / OpenMP_VV

OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
https://crpl.cis.udel.edu/ompvvsollve/
Other
54 stars 19 forks source link

Adding more tests with teams loop construct #761

Closed lthakur007 closed 9 months ago

lthakur007 commented 1 year ago

Please review..

seyonglee commented 1 year ago

Add brief descriptions to the beginning of each test using the format used in other tests.

seyonglee commented 1 year ago

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.

tob2 commented 1 year ago

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).

lthakur007 commented 1 year ago

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.

lthakur007 commented 1 year ago

addressed review comments.. please approve...

lthakur007 commented 11 months ago

Hi @seyonglee and @spophale , I have addressed the review comments. Please consider to scrutinize the fixes... Fixes are working fine on AMD platforms....

spophale commented 11 months ago

@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.

spophale commented 11 months ago

Add for all tests in main:

OMPVV_TEST_OFFLOADING;

This will ensure that the correct message is printed. Like "Test passed on device .."

lthakur007 commented 10 months ago

Hi @seyonglee and @spophale , I have addressed review comments... please consider the fixes....

spophale commented 10 months ago

@lthakur007 please review our comments at your convenience.

lthakur007 commented 9 months ago

Hi @fel-cab , I have committed the changes you suggested. Please consider the PR for further processing...