Closed lthakur007 closed 5 months ago
@lthakur007 , this appears to be a OpenMP 5.1 test as before that only shared or none was allowed with default clause for C/C++. According to 5.1 the default clause applies to both teams and parallel. The test logic needs to be checked for such usage.
I have moved the test to 5.1 folder. Will observe CI machines report with 5.1 version of this test...
HI @spophale , I have addressed the review comments, please consider the changes...
Please delete the obsolete test: tests/4.5/target_teams_distribute_parallel_for/test_target_teams_distribute_parallel_for_default.c
Please delete the obsolete test: tests/4.5/target_teams_distribute_parallel_for/test_target_teams_distribute_parallel_for_default.c
Done!! Thank you @seyonglee :) ..
Hi @spophale , Addressed all the review comments.. Please consider the updates ...
Hi @spophale , Please consider the changes submitted....
It is not clear to me how this test is testing the default
clause, since the test would pass if the default
clauses are removed, or they are changed for the other possible default
(e.g. if the default(private)
is changed for default(shared)
or the other way around). Is it possible to change the test in a way that the consequence of default
is carefully tested?
It is not clear to me how this test is testing the
default
clause, since the test would pass if thedefault
clauses are removed, or they are changed for the other possibledefault
(e.g. if thedefault(private)
is changed fordefault(shared)
or the other way around). Is it possible to change the test in a way that the consequence ofdefault
is carefully tested?
Hi @spophale , I agree with the comment of @fel-cab mentioned above. However, the test passes with/without "default(firstprivate)" and also with/without presence of "map(to: Arr[0:32])". I have attached a file for reference. The terminal output when the file is run is as follows: @spophale , could you please help me improve the test case.....
_/opt/rocm/llvm/bin/clang -O2 -fopenmp --offload-arch=gfx906 -fopenmp-version=51 dist_paraleldefault.c ./a.out Test Passed!! Test Passed!! Test Passed!! Test Passed!! __ dist_paralel_default.txt
I also agree that this test does not actually test the default
clause, since the default
clause is not applied to the target
construct (and this test checks the data mapping behaviors only.)
@lthakur007 , here is my suggestion: For default(firstprivate)
Same steps can be used for default(private) but CONST will be assigned inside the target region -- 'CONST = team_num + thread_num'
This test was merged with PR #793 .This is a duplicate.
Please review...