https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
Thomas Schwinge changed:
What|Removed |Added
Target Milestone|--- |15.0
Target|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
Thomas Schwinge changed:
What|Removed |Added
CC||ams at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #9 from GCC Commits ---
The trunk branch has been updated by Thomas Schwinge :
https://gcc.gnu.org/g:332a08173a7cbec43a8fdd2b5b29e086dd7e6ffd
commit r15-8721-g332a08173a7cbec43a8fdd2b5b29e086dd7e6ffd
Author: Thomas Schwinge
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
Thomas Schwinge changed:
What|Removed |Added
Ever confirmed|0 |1
Assignee|unassigned at gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #7 from Tobias Weinzierl ---
Adding a default constructor to the vector class still does not allow us to
create the object on the target:
#include
#define mydt double
#pragma omp declare target
struct vector {
vector() {};
v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #6 from Tobias Weinzierl ---
We've found some more stuff. This works:
#include
#define mydt double
#pragma omp declare target
struct vector {
vector(mydt x, mydt y);
mydt dot(vector o);
mydt v[2];
};
vector::vector(mydt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #5 from Tobias Burnus ---
(In reply to Tobias Weinzierl from comment #4)
> Created attachment 49339 [details]
> Reproducer
Compiles here with mainline (11.0.0 20201104) and nvptx offloading (-O0).
I wonder whether that was fixed by:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |UNCONFIRMED
Ever confirmed|1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #4 from Tobias Weinzierl ---
Created attachment 49339
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49339&action=edit
Reproducer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #3 from Tobias Weinzierl ---
The full compilation error is
+ g++-10 -fopenmp -foffload=nvptx-none bug.cpp -o bug
ptxas /tmp/cc1XobxJ.o, line 253; error : Illegal operand type to instruction
'ld'
ptxas /tmp/cc1XobxJ.o, line 266; er
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
--- Comment #2 from Tobias Weinzierl ---
#include
#pragma omp declare target
template
struct vector {
int values_[sz];
vector();
vector(int const& init_val);
int dot(vector o) {
int res = 0;
for (int i = 0; i < sz; ++ i)
r
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
Last reconfir
12 matches
Mail list logo