[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-03-27 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #14 from Benjamin Schulz --- By the way, the numbers are for simple tests and are correct, as for that segfault in the last test, this may have been an error owned by me. But I don't know yet, I guess I must look at my old code agai

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-03-27 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #13 from Benjamin Schulz --- Hi many thanks for the effort. Sorry for the late reply. In desperation, by now I have tried to switch my code to openmp entirely and compile it with clang... But openacc has more parallelization levels (

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #8 from Benjamin Schulz --- with this here it is satisfied: // Normalize v T norm=0; // T norm=fabs(gpu_dot_product_w(v,v)); T normc= sqrt(norm); // const T normc=norm; #pragma omp parallel

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #7 from Benjamin Schulz --- with this here it is satisfied: // Normalize v T norm=0; // T norm=fabs(gpu_dot_product_w(v,v)); T normc= sqrt(norm); // const T normc=norm; #pragma omp parallel

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #6 from Benjamin Schulz --- Hi thanks for the fast reply. Unfortunately none of these works... (yes, putting in the -fno-math-errno option also raises this error, even if i put it into -offload... even if i try -foffload= -fno-math

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #3 from Benjamin Schulz --- gcc --version gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #2 from Benjamin Schulz --- Created attachment 60424 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60424&action=edit cmakelists.txt

[Bug target/118794] The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 --- Comment #1 from Benjamin Schulz --- Created attachment 60423 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60423&action=edit main.cpp

[Bug target/118794] New: The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos..

2025-02-07 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794 Bug ID: 118794 Summary: The attached c++ openmp offload code fails, because the c sqrt function makes nonlocal gotos.. Product: gcc Version: 14.2.1 Status: UNCONFIRMED

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #11 from Benjamin Schulz --- if i write something like this: SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenacc -foffload=nvptx-none -foffload=-malias -fcf-protection=none -fno-stack-protector -U_FORTIFY_SOURCE -std=c++23 -no-pie")

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #10 from Benjamin Schulz --- the newly attached files work with nvc++ from nvidia. but nvidia has difficulties compiling the openmp part. so it would be good if i could compile this with gcc. What must I do to enable aliasing when bu

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #9 from Benjamin Schulz --- Created attachment 60373 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60373&action=edit cmakelists.txt

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #8 from Benjamin Schulz --- Created attachment 60372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60372&action=edit main.cpp

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 Benjamin Schulz changed: What|Removed |Added Attachment #60176|0 |1 is obsolete|

[Bug target/118738] the following code compiles with nvc++ and even clang and raises an internal Compiler-error: in expand_UNIQUE, bei internal-fn.cc:3302

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118738 --- Comment #2 from Benjamin Schulz --- Created attachment 60370 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60370&action=edit cmakelists.txt

[Bug target/118738] the following code compiles with nvc++ and even clang and raises an internal Compiler-error: in expand_UNIQUE, bei internal-fn.cc:3302

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118738 --- Comment #1 from Benjamin Schulz --- Created attachment 60369 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60369&action=edit main.cpp

[Bug target/118738] New: the following code compiles with nvc++ and even clang and raises an internal Compiler-error: in expand_UNIQUE, bei internal-fn.cc:3302

2025-02-03 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118738 Bug ID: 118738 Summary: the following code compiles with nvc++ and even clang and raises an internal Compiler-error: in expand_UNIQUE, bei internal-fn.cc:3302 Product: gcc

[Bug target/118590] internal compiler error: in build_omp_array_section, bei cp/typeck.cc:4823

2025-01-21 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118590 --- Comment #3 from Benjamin Schulz --- gcc --version gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221

[Bug target/118590] internal compiler error: in build_omp_array_section, bei cp/typeck.cc:4823

2025-01-21 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118590 --- Comment #2 from Benjamin Schulz --- Created attachment 60226 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60226&action=edit cmakelists.txt

[Bug target/118590] internal compiler error: in build_omp_array_section, bei cp/typeck.cc:4823

2025-01-21 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118590 --- Comment #1 from Benjamin Schulz --- Created attachment 60225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60225&action=edit main_acc

[Bug target/118590] New: internal compiler error: in build_omp_array_section, bei cp/typeck.cc:4823

2025-01-21 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118590 Bug ID: 118590 Summary: internal compiler error: in build_omp_array_section, bei cp/typeck.cc:4823 Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: n

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-17 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #6 from Benjamin Schulz --- how do I do that? -malias this is not a compiler option that is listed. What is strange: When i make a simple test program in c, i.e. without classes, then I can define functions in a #pragma omp target

[Bug target/101544] [OpenMP][AMDGCN][nvptx] C++ offloading: unresolved _Znwm = "operator new(unsigned long)"

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544 --- Comment #18 from Benjamin Schulz --- Interesting. Similarly as in clang, after the printf issue was resolved, a simple test script shows: Number of available devices 1 but also, firsttest runs on target Well, I have a gpu, and a cpu. th

[Bug target/101544] [OpenMP][AMDGCN][nvptx] C++ offloading: unresolved _Znwm = "operator new(unsigned long)"

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544 --- Comment #17 from Benjamin Schulz --- -U_FORTIFY_SOURCE worked. Thanks Sam.

[Bug target/101544] [OpenMP][AMDGCN][nvptx] C++ offloading: unresolved _Znwm = "operator new(unsigned long)"

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544 --- Comment #16 from Benjamin Schulz --- "BTW, if you're calling "new" in the offload kernel then you're probably "doing it wrong"," I do not think so. For more complex mathematical algorithms, there are many situations, where we need temporary

[Bug target/101544] [OpenMP][AMDGCN][nvptx] C++ offloading: unresolved _Znwm = "operator new(unsigned long)"

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544 --- Comment #12 from Benjamin Schulz --- In my view, not only the new command is important, but also things like printf, which also does not exist on the target, apparently. The problem is that with openmp, you can only check whether you are re

[Bug target/118520] New: compiles with clang on openmp target, but gcc fails to compile with unresolved symbol __cxa_throw_bad_array_new_length

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118520 Bug ID: 118520 Summary: compiles with clang on openmp target, but gcc fails to compile with unresolved symbol __cxa_throw_bad_array_new_length Product: gcc Versi

[Bug c++/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 Benjamin Schulz changed: What|Removed |Added Target|nvptx | Component|target

[Bug c++/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 Benjamin Schulz changed: What|Removed |Added Target|nvptx | Component|target

[Bug c++/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #1 from Benjamin Schulz --- Created attachment 60177 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60177&action=edit main.cpp

[Bug c++/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #2 from Benjamin Schulz --- Created attachment 60178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60178&action=edit cmakelists.txt

[Bug c++/118518] New: gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 Bug ID: 118518 Summary: gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases Product: gcc Ver