Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-27 Thread Jed Brown via petsc-dev
"Balay, Satish via petsc-dev" writes: > Hm for CXXFLAGS - I think you have to do: > > self.pushLanguage('Cxx') > CXXFLAGS = self.getCompilerFlags() > self.popLanguage() These days, it's better to write this using the context manager: with self.Language('Cxx'): CXXFLAGS = self.getCompilerF

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-26 Thread Balay, Satish via petsc-dev
On Mon, 25 Mar 2019, Mills, Richard Tran via petsc-dev wrote: > Folks, > > I've spent a while looking at the BuildSystem code, and I think this is going > to take me more time than I have available right now to figure it out on my > own. Someone more familiar with BuildSystem needs to give me s

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-26 Thread Balay, Satish via petsc-dev
On Mon, 25 Mar 2019, Mills, Richard Tran via petsc-dev wrote: > Folks, > > I've spent a while looking at the BuildSystem code, and I think this is going > to take me more time than I have available right now to figure it out on my > own. Someone more familiar with BuildSystem needs to give me s

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-25 Thread Mills, Richard Tran via petsc-dev
Folks, I've spent a while looking at the BuildSystem code, and I think this is going to take me more time than I have available right now to figure it out on my own. Someone more familiar with BuildSystem needs to give me some hints -- soon, if possible, as I really think that building with non

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-22 Thread Mills, Richard Tran via petsc-dev
On 3/22/19 3:28 PM, Mills, Richard Tran wrote: On 3/22/19 12:13 PM, Balay, Satish wrote: Is there currently an existing check like this somewhere? Or will things just fail when running 'make' right now? Most likely no. Its probably best to attempt the error case - and figure-out how to add a

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-22 Thread Mills, Richard Tran via petsc-dev
On 3/22/19 12:13 PM, Balay, Satish wrote: Is there currently an existing check like this somewhere? Or will things just fail when running 'make' right now? Most likely no. Its probably best to attempt the error case - and figure-out how to add a check. I gave things a try and verified that t

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-22 Thread Balay, Satish via petsc-dev
> Is there currently an existing check like this somewhere? Or will things just > fail when running 'make' right now? > Most likely no. Its probably best to attempt the error case - and figure-out how to add a check. Satish On Fri, 22 Mar 2019, Mills, Richard Tran via petsc-dev wrote: > On 3/1

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-22 Thread Mills, Richard Tran via petsc-dev
On 3/18/19 7:29 PM, Balay, Satish wrote: On Tue, 19 Mar 2019, Mills, Richard Tran via petsc-dev wrote: Colleagues, It took me a while to get PETSc to build at all with anything on Summit other than the GNU compilers, but, once this was accomplished, editing out the isGNU() test and then pass

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-18 Thread Balay, Satish via petsc-dev
On Tue, 19 Mar 2019, Mills, Richard Tran via petsc-dev wrote: > Colleagues, > > It took me a while to get PETSc to build at all with anything on Summit other > than the GNU compilers, but, once this was accomplished, editing out the > isGNU() test and then passing something like > > '--wit

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-18 Thread Mills, Richard Tran via petsc-dev
Colleagues, It took me a while to get PETSc to build at all with anything on Summit other than the GNU compilers, but, once this was accomplished, editing out the isGNU() test and then passing something like '--with-cuda=1', '--with-cudac=nvcc -ccbin pgc++', to configure works fine. So

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-14 Thread Karl Rupp via petsc-dev
Hi Richard, the check for the GNU compilers is mostly a historic relic. We haven't done any systematic tests with other compilers, so that test has just remained in place. It would certainly be good if you could update the check to also work well with the default environment on Summit. Tha

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Mills, Richard Tran via petsc-dev
On 3/12/19 8:49 PM, Balay, Satish wrote: 1. You might want to check 'Feature-request: Must use GNU compilers with CUDA' thread on petsc-maint. Yes, I see this thread now. Thanks. 2. what does nvcc use internally on summit? It defaults to the GCC suite but it is supposed to also support the

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Mills, Richard Tran via petsc-dev
Jed, yes, I'm on petsc-maint and I see this thread now. Thanks; I'll take a look. (I've had a crazy day and have been more behind than usual on email.) --Richard On 3/12/19 8:48 PM, Jed Brown wrote: Richard, are you not on petsc-maint? There was a thread about this today. PGI "community editi

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Balay, Satish via petsc-dev
1. You might want to check 'Feature-request: Must use GNU compilers with CUDA' thread on petsc-maint. 2. what does nvcc use internally on summit? 3. On linux - nvcc defaults to using g++ internally (as far as I know) - so we added that check. But you might want to remove that check - if things wo

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Jed Brown via petsc-dev
Richard, are you not on petsc-maint? There was a thread about this today. PGI "community edition" is free now. We could add it to our test suite. https://www.pgroup.com/products/community.htm "Smith, Barry F. via petsc-dev" writes: > Richard, > > You need to remove the isGNU() test a

Re: [petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Smith, Barry F. via petsc-dev
Richard, You need to remove the isGNU() test and then experiment with getting the Nvidia tools to use the compiler you want it to use. No one has made a serious effort to use any other compilers but Gnu (at least not publicly). Barry > On Mar 12, 2019, at 10:40 PM, Mills, Ri

[petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

2019-03-12 Thread Mills, Richard Tran via petsc-dev
Fellow PETSc developers, If I try to configure PETSc with CUDA support on the ORNL Summit system using non-GNU compilers, I run into an error due to the following code in packages/cuda.py: def configureTypes(self): import config.setCompilers if not config.setCompilers.Configure.isGNU(