[Bug lto/92553] New: OpenMP offload static linking error

2019-11-17 Thread xw111luoye at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- I have a linking error when building miniQMC. The offload functions are first archived in libqmcwfs.a and then linked to the final binary

[Bug ipa/92553] OpenMP offload static linking error, ICE in inline_read_section, at ipa-fnsummary.c:3332

2020-01-11 Thread xw111luoye at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92553 --- Comment #2 from Ye Luo --- PR92357 mentioned that you backported a fix to the gcc 9 branch and how I'm getting the following error /home/yeluo/opt/gcc-9-branch/bin/g++ -fopenmp -foffload=nvptx-none -foffload=-lm -fomit-frame-pointer

[Bug target/95023] Offloading AMD GCN wiki cannot be followed

2020-05-12 Thread xw111luoye at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95023 --- Comment #2 from Ye Luo --- I got the following error when building the new lib. Tried gcc 8 and 10 with master and newlib-3.3.0. No difference /home/yeluo/opt/build-amdgcn-gcc/./gcc/xgcc -B/home/yeluo/opt/build-amdgcn-gcc/./gcc/ -nostdinc

[Bug target/95023] New: Offloading AMD GCN wiki cannot be followed

2020-05-09 Thread xw111luoye at gmail dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- The wiki says Next insert a symbolic to the Newlib source's "newlib" directory into the directory containing the gcc sources. The Newlib version needs to be cont

[Bug c++/95474] New: class member array cannot be mapped

2020-06-02 Thread xw111luoye at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- https://github.com/ye-luo/openmp-target/blob/master/hands-on/tests/map/map_class_member.cpp $ g++ -fopenmp map_class_member.cpp map_class_member.cpp: In instantiation of ‘maptest

[Bug c++/95474] class member array cannot be mapped

2020-06-02 Thread xw111luoye at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95474 --- Comment #2 from Ye Luo --- @jakub could you mention which page and line in 4.5 spec this code violates? https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5.0.pdf

[Bug c++/95474] class member array cannot be mapped

2020-06-02 Thread xw111luoye at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95474 --- Comment #4 from Ye Luo --- Thanks. Hopefully this part of 5.0 feature will be implemented in the near future.

[Bug fortran/98476] New: OpenMP offload syntax restriction

2020-12-29 Thread xw111luoye at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- C version code works. The corresponding Fortran version is blocked by the compiler errror. C version: #include int main() { int a[1]; int* b = a; a[0] = 0; #pragma omp

[Bug fortran/98476] OpenMP offload syntax restriction

2020-12-30 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98476 --- Comment #2 from Ye Luo --- @jakub thanks for the quick reply. However, even if I add map(to: a) which is almost a no-op to satisfy the compiler for 4.5 spec. The printout result is still wrong. It should be 0 and 1 but the fortran case

[Bug fortran/98476] OpenMP offload syntax restriction

2020-12-30 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98476 --- Comment #3 from Ye Luo --- I verified that current master has removed the syntax restriction. However, the printout remains incorrect.

[Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr

2021-01-27 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98858 --- Comment #1 from Ye Luo --- GNU Fortran (GCC) 11.0.0 20210127 (experimental)

[Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr

2021-01-27 Thread xw111luoye at gmail dot com via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- Getting ICE yeluo@ryzen-box:~/opt/openmp-target/hands-on/tests/fortran_use_device_ptr$ gfortran -fopenmp test_use_device_ptr_target.f90 test_use_device_ptr_target.f90

[Bug c++/98862] New: Complex reduction support in offload region

2021-01-27 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- Using std::complex type in offload region is highly desired. $ g++ -fopenmp complex_reduction.cpp ptxas /tmp/cceLNaYr.o, line 484; error : Label expected for argument 0

[Bug c++/98869] New: Allowing mapping this in OpenMP target

2021-01-28 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- this restriction seems unnecessary. /home/yeluo/opt/qmcpack/src/Particle/SoaDistanceTableABOMPTarget.h:63:42: error: ‘this’ allowed in OpenMP only in ‘declare simd’ clauses 63

[Bug c++/98869] Allowing mapping this in OpenMP target

2021-01-28 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98869 --- Comment #1 from Ye Luo --- Full source code at https://github.com/QMCPACK/qmcpack/blob/a23584738485bb7c948d0ba1841c669fe76500b6/src/Particle/SoaDistanceTableABOMPTarget.h#L63

[Bug target/98862] Complex reduction support in offload region

2021-01-28 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98862 --- Comment #3 from Ye Luo --- Cool. -foffload=-latomic resolved my problem.

[Bug libgomp/66756] libgfortran: ThreadSanitizer: lock-order-inversion

2021-05-22 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66756 Ye Luo changed: What|Removed |Added CC||xw111luoye at gmail dot com --- Comment #18

[Bug c++/102204] OpenMP offload map type restriction

2021-09-13 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102204 --- Comment #2 from Ye Luo --- User code has been written in mostly 5.0 fashion as 4.5 has too many restrictions. For most users, they only need a subset of 5.0 feature with up-to-date compilers and fully implemented 5.0 is not expected. Back

[Bug c++/98869] Allowing mapping this in OpenMP target

2021-09-13 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98869 Ye Luo changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/98869] Allowing mapping this in OpenMP target

2021-09-04 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98869 --- Comment #3 from Ye Luo --- This doesn't work with gcc 11.2 but works on devel/omp/gcc-11 branch.

[Bug c++/102204] New: OpenMP offload map type restriction

2021-09-04 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- With branch devel/omp/gcc-11 I'm getting /home/yeluo/opt/qmcpack/build_rtx3060_gcc_offload_real/src/config.h:42:29: error: array section does not have mappable type in ‘map’ clause

[Bug target/104283] New: nvptx-none needs more user friendly architecture handling

2022-01-29 Thread xw111luoye at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- x86_64-pc-linux-gnu-accel-nvptx-none-gcc needs both -misa and -mptx to select a specific target. When I use OpenMP offload. -foffload

[Bug c++/104285] New: openmp offload linker issue

2022-01-29 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- miniQMC https://github.com/ye-luo/miniqmc ships a set of OpenMP offload tests. ``` cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_OFFLOAD=ON .. make -j32 ``` When those tests are compiled

[Bug c++/102204] OpenMP offload map type restriction

2022-01-28 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102204 --- Comment #3 from Ye Luo --- I tried today's main 3f0fcda37f58d4108feb67de08f181a32bcb6388. This issue persists. Any chance this will be resolved in 12 release?

[Bug middle-end/104285] openmp offload linker issue

2022-02-08 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104285 --- Comment #1 from Ye Luo --- Here is a minimal reproducer. https://github.com/ye-luo/openmp-target/tree/master/tests/linking/two_identical_templates $ g++ -fopenmp -foffload=nvptx-none -O3 -c test_a.cpp $ g++ -fopenmp -foffload=nvptx-none

[Bug c++/104493] New: OpenMP offload map cannot handle const

2022-02-10 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- See reproducer https://github.com/ye-luo/openmp-target/blob/master/tests/map/struct_with_const.cpp $ g++ -fopenmp -foffload=nvptx-none struct_with_const.cpp struct_with_const.cpp

[Bug c++/104493] OpenMP offload map cannot handle const

2022-05-23 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104493 Ye Luo changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment #1 from

[Bug c++/104493] OpenMP offload map cannot handle const

2022-05-25 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104493 --- Comment #3 from Ye Luo --- Thank you for the answer with well explained development procedure of gcc. I was intended to keep this bug report active. I just adopted OpenMP offload options adjusted in gcc 12 but OG11 doesn't have them due to

[Bug c++/104493] OpenMP offload map cannot handle const

2022-07-04 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104493 --- Comment #4 from Ye Luo --- When I tried master and devel/omp/gcc-12, the fix has not been applied. Just keep a note here. Probably this has been planned.

[Bug c++/105299] New: dereference null pointer

2022-04-17 Thread xw111luoye at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- My application runs in parallel on Power9 RHEL 8.2 using gcc 9.3. The failure doesn't show up in small scale runs. However, when running with 24576(4096*6) MPI processes, code: void* ArgMappers

[Bug c++/105299] dereference null pointer

2022-04-17 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105299 --- Comment #3 from Ye Luo --- Unfortunately there is no easy reproducer. Even without the printf. I got the same failure. Will try with a debugger.

[Bug c++/106829] [12/13 Regression] OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 since r12-5835

2022-09-07 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106829 Ye Luo changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/106829] New: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222

2022-09-04 Thread xw111luoye at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- Created attachment 53537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53537=edit reproducer source c

[Bug target/98862] Complex reduction support in offload region

2022-09-08 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98862 Ye Luo changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---