RE: [RFC] Enabling SVE with offloading to nvptx

2025-01-08 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Gcc On Behalf > Of Prathamesh Kulkarni via Gcc > Sent: 27 December 2024 18:00 > To: Jakub Jelinek > Cc: Andrew Stubbs ; Richard Biener > ; Richard Biener ; > gcc@gcc.gnu.org; Thomas Schwinge > Subject: RE: [RFC] Enabling S

RE: [RFC] Enabling SVE with offloading to nvptx

2025-01-05 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Andrew Stubbs > Sent: 02 January 2025 17:21 > To: Prathamesh Kulkarni ; Jakub Jelinek > > Cc: Richard Biener ; Richard Biener > ; gcc@gcc.gnu.org; Thomas Schwinge > > Subject: Re: [RFC] Enabling SVE with offloading to nvptx >

Re: [RFC] Enabling SVE with offloading to nvptx

2025-01-02 Thread Andrew Stubbs
On 27/12/2024 12:29, Prathamesh Kulkarni wrote: -Original Message- From: Jakub Jelinek Sent: 17 December 2024 19:09 To: Prathamesh Kulkarni Cc: Andrew Stubbs ; Richard Biener ; Richard Biener ; gcc@gcc.gnu.org; Thomas Schwinge Subject: Re: [RFC] Enabling SVE with offloading to

RE: [RFC] Enabling SVE with offloading to nvptx

2024-12-27 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Jakub Jelinek > Sent: 17 December 2024 19:09 > To: Prathamesh Kulkarni > Cc: Andrew Stubbs ; Richard Biener > ; Richard Biener ; > gcc@gcc.gnu.org; Thomas Schwinge > Subject: Re: [RFC] Enabling SVE with offloading to nvptx > &g

Re: [RFC] Enabling SVE with offloading to nvptx

2024-12-17 Thread Jakub Jelinek via Gcc
On Mon, Dec 02, 2024 at 11:17:08AM +, Prathamesh Kulkarni wrote: > --- a/gcc/cfgloop.h > +++ b/gcc/cfgloop.h > @@ -233,6 +233,12 @@ public: > flag_finite_loops or similar pragmas state. */ >unsigned finite_p : 1; > > + /* True if SIMD loop needs delayed lowering of artefacts like

RE: [RFC] Enabling SVE with offloading to nvptx

2024-12-17 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Gcc On Behalf > Of Prathamesh Kulkarni via Gcc > Sent: 02 December 2024 16:47 > To: Jakub Jelinek > Cc: Andrew Stubbs ; Richard Biener > ; Richard Biener ; > gcc@gcc.gnu.org; Thomas Schwinge > Subject: RE: [RFC] Enabling S

RE: [RFC] Enabling SVE with offloading to nvptx

2024-12-02 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Jakub Jelinek > Sent: 28 November 2024 17:39 > To: Prathamesh Kulkarni > Cc: Andrew Stubbs ; Richard Biener > ; Richard Biener ; > gcc@gcc.gnu.org; Thomas Schwinge > Subject: Re: [RFC] Enabling SVE with offloading to nvptx > &g

Re: [RFC] Enabling SVE with offloading to nvptx

2024-11-28 Thread Jakub Jelinek via Gcc
On Thu, Nov 14, 2024 at 08:29:26AM +, Prathamesh Kulkarni wrote: > + /* True if SIMD loop needs delayed lowering of artefacts like > + safelen and length of omp simd arrays that depend on target's > + max_vf. This is true for offloading, when max_vf is computed after 2 spaces after .,

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-28 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Prathamesh Kulkarni > Sent: 21 November 2024 10:31 > To: Prathamesh Kulkarni ; Andrew Stubbs > ; Jakub Jelinek > Cc: Richard Biener ; Richard Biener > ; gcc@gcc.gnu.org; Thomas Schwinge > > Subject: RE: [RFC] Enabling S

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-20 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Gcc On Behalf > Of Prathamesh Kulkarni via Gcc > Sent: 14 November 2024 13:59 > To: Andrew Stubbs ; Jakub Jelinek > Cc: Richard Biener ; Richard Biener > ; gcc@gcc.gnu.org; Thomas Schwinge > > Subject: RE: [RFC] Enabling S

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-14 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Andrew Stubbs > Sent: 12 November 2024 20:23 > To: Prathamesh Kulkarni ; Jakub Jelinek > > Cc: Richard Biener ; Richard Biener > ; gcc@gcc.gnu.org; Thomas Schwinge > > Subject: Re: [RFC] Enabling SVE with offloading to nvp

Re: [RFC] Enabling SVE with offloading to nvptx

2024-11-12 Thread Andrew Stubbs
On 12/11/2024 06:01, Prathamesh Kulkarni via Gcc wrote: -Original Message- From: Jakub Jelinek Sent: 04 November 2024 21:44 To: Prathamesh Kulkarni Cc: Richard Biener ; Richard Biener ; gcc@gcc.gnu.org; Thomas Schwinge Subject: Re: [RFC] Enabling SVE with offloading to nvptx

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-11 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Jakub Jelinek > Sent: 04 November 2024 21:44 > To: Prathamesh Kulkarni > Cc: Richard Biener ; Richard Biener > ; gcc@gcc.gnu.org; Thomas Schwinge > > Subject: Re: [RFC] Enabling SVE with offloading to nvptx > > External email

Re: [RFC] Enabling SVE with offloading to nvptx

2024-11-05 Thread Jakub Jelinek via Gcc
On Mon, Nov 04, 2024 at 10:21:58AM +, Andrew Stubbs wrote: > @@ -999,6 +1000,18 @@ omp_max_vf (void) > && OPTION_SET_P (flag_tree_loop_vectorize))) > return 1; > > + if (ENABLE_OFFLOADING && offload) > +{ > + for (const char *c = getenv ("OFFLOAD_TARGET_NAMES"); c;) > +

Re: [RFC] Enabling SVE with offloading to nvptx

2024-11-04 Thread Jakub Jelinek via Gcc
On Sat, Nov 02, 2024 at 03:53:34PM +, Prathamesh Kulkarni wrote: > The attached patch adds a new bitfield needs_max_vf_lowering to loop, and > sets that in expand_omp_simd for loops that need delayed lowering of > safelen and omp simd arrays. The patch defines a new macro > OMP_COMMON_MAX_VF (

Re: [RFC] Enabling SVE with offloading to nvptx

2024-11-04 Thread Andrew Stubbs
[...skip literally unreadable deeply nested conversation...] A couple of years ago I posted a patch to this same code solving a performance problem with x86_64/amdgcn offloading: https://patchwork.sourceware.org/project/gcc/patch/0e1a740e-46d5-ebfa-36f4-9a069ddf8...@codesourcery.com/ At that t

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-04 Thread Richard Biener via Gcc
nal Message- > > > > From: Richard Biener > > > > Sent: 21 October 2024 12:45 > > > > To: Prathamesh Kulkarni > > > > Cc: gcc@gcc.gnu.org; Thomas Schwinge ; > > Jakub > > > > Jelinek > > > > Subject: RE: [RFC

RE: [RFC] Enabling SVE with offloading to nvptx

2024-11-02 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Richard Biener > Sent: 29 October 2024 16:46 > To: Prathamesh Kulkarni > Cc: Richard Biener ; gcc@gcc.gnu.org; Thomas > Schwinge ; Jakub Jelinek > Subject: Re: [RFC] Enabling SVE with offloading to nvptx > > External email: U

Re: [RFC] Enabling SVE with offloading to nvptx

2024-10-29 Thread Richard Biener via Gcc
- > > > > From: Richard Biener > > > > Sent: 17 October 2024 19:18 > > > > To: Prathamesh Kulkarni > > > > Cc: gcc@gcc.gnu.org; Thomas Schwinge > > > > Subject: RE: [RFC] Enabling SVE with offloading to nvptx > > >

RE: [RFC] Enabling SVE with offloading to nvptx

2024-10-28 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Richard Biener > Sent: 21 October 2024 12:45 > To: Prathamesh Kulkarni > Cc: gcc@gcc.gnu.org; Thomas Schwinge ; Jakub > Jelinek > Subject: RE: [RFC] Enabling SVE with offloading to nvptx > > External email: Use caution o

RE: [RFC] Enabling SVE with offloading to nvptx

2024-10-21 Thread Richard Biener via Gcc
On Fri, 18 Oct 2024, Prathamesh Kulkarni wrote: > > > > -Original Message- > > From: Richard Biener > > Sent: 17 October 2024 19:18 > > To: Prathamesh Kulkarni > > Cc: gcc@gcc.gnu.org; Thomas Schwinge > > Subject: RE: [RFC] Enabling SVE

RE: [RFC] Enabling SVE with offloading to nvptx

2024-10-18 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Richard Biener > Sent: 17 October 2024 19:18 > To: Prathamesh Kulkarni > Cc: gcc@gcc.gnu.org; Thomas Schwinge > Subject: RE: [RFC] Enabling SVE with offloading to nvptx > > External email: Use caution opening links or attachment

RE: [RFC] Enabling SVE with offloading to nvptx

2024-10-17 Thread Richard Biener via Gcc
On Thu, 17 Oct 2024, Prathamesh Kulkarni wrote: > > -Original Message- > > From: Richard Biener > > Sent: 16 October 2024 13:05 > > To: Prathamesh Kulkarni > > Cc: gcc@gcc.gnu.org; Thomas Schwinge > > Subject: Re: [RFC] Enabling SVE with offloading t

RE: [RFC] Enabling SVE with offloading to nvptx

2024-10-17 Thread Prathamesh Kulkarni via Gcc
> -Original Message- > From: Richard Biener > Sent: 16 October 2024 13:05 > To: Prathamesh Kulkarni > Cc: gcc@gcc.gnu.org; Thomas Schwinge > Subject: Re: [RFC] Enabling SVE with offloading to nvptx > > External email: Use caution opening links or attachments >

Re: [RFC] Enabling SVE with offloading to nvptx

2024-10-16 Thread Richard Biener via Gcc
On Tue, 15 Oct 2024, Prathamesh Kulkarni wrote: > Hi, > Testing libgomp with SVE enabled (-mcpu=generic+sve2), results in ~60 > UNRESOLVED errors with following error message: > > lto1: fatal error: degree of 'poly_int' exceeds 'NUM_POLY_INT_COEFFS' > compilation terminated. > nvptx mkoffload: f

[RFC] Enabling SVE with offloading to nvptx

2024-10-15 Thread Prathamesh Kulkarni via Gcc
Hi, Testing libgomp with SVE enabled (-mcpu=generic+sve2), results in ~60 UNRESOLVED errors with following error message: lto1: fatal error: degree of 'poly_int' exceeds 'NUM_POLY_INT_COEFFS' compilation terminated. nvptx mkoffload: fatal error: ../../install/bin/aarch64-unknown-linux-gnu-accel-