OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
Using clang, compiling test tests/5.0/target/test_target_allocate.c with -fopenmp gets this error:
27:32: error: allocator must be specified in the 'uses_allocators' clause
27 | #pragma omp target allocate(omp_default_mem_alloc:x) firstprivate(x) map(from: device_result)
| ^~~~~
For the test to compile properly, the uses_allocators clause must be specified. See
Using clang, compiling test tests/5.0/target/test_target_allocate.c with -fopenmp gets this error: 27:32: error: allocator must be specified in the 'uses_allocators' clause 27 | #pragma omp target allocate(omp_default_mem_alloc:x) firstprivate(x) map(from: device_result) | ^
~~~~For the test to compile properly, the uses_allocators clause must be specified. See
OpenMP5.0 specification, section 2.12.5 target construct, under restrictions, pg. 175, L7-8
7 Memory allocators that do not appear in a uses_allocators clause cannot appearas an 8 allocator in an allocate clause ...
This restriction is the same in versions 5.1 and 5.2 as well.
To reproduce, using clang 19.0 clang -fopenmp -I./ompvv tests/5.0/target/test_target_allocate.c
Test should compile and pass upon execution.
NOTE: gcc compiles the test case without error, which is wrong.