Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-05 Thread flw
Thanks Barry and Sherry, it works like a charm :) Best regards, Felix Zitat von Barry Smith : Good. I have cleaned up the code and rebased the branch so if you use it in the future you need to do git fetch git checkout master git branch -D barry/2020-07-28/superlu_dist-single git

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-04 Thread Barry Smith
Good. I have cleaned up the code and rebased the branch so if you use it in the future you need to do git fetch git checkout master git branch -D barry/2020-07-28/superlu_dist-single git checkout barry/2020-07-28/superlu_dist-single Do not just do a git pull in

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-04 Thread flw
PS: I saw you committed a new version for the SUPERLU_DIST installer. There is a missing ")" at the end of line 42. Also I think one also has to add self.addToArgs(args,'-DCMAKE_CXX_FLAGS:STRING','-I'+self.blasLapack.include) as well (for me only adding the C flag raised the same error as

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-04 Thread flw
Yep, when I assign the mkl include directory to CPATH, it works :) Best regards, Felix Zitat von Barry Smith : On some systems, like my Mac, the environmental variable CPATH is set to the appropriate directory for mkl.h when MKL is initialized with source

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-03 Thread Barry Smith
On some systems, like my Mac, the environmental variable CPATH is set to the appropriate directory for mkl.h when MKL is initialized with source /opt/intel/compilers_and_libraries/mac/bin/compilervars.sh intel64 hence the compiler can magically find mkl.h but this doesn't seem to be

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-03 Thread Xiaoye S. Li
Regarding MKL, superlu only uses some BLAS routines in MKL. If you have alternative BLAS, you don't need to use MKL. But, in my experience, on an Intel system, the compiler can correctly include the path with mkl.h, that is, I don't need to do anything special. I think mpiicc should work.

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-03 Thread Barry Smith
For the first case do rm -rf arch-ci-linux-intel-mkl-single looks like there might be some outdated material in that directory causing the problem. For the second and third I see in superlu_defs.h #ifdef __INTEL_COMPILER #include "mkl.h" hence the use of Intel compiler

Re: [petsc-users] SUPERLU_DIST in single precision

2020-08-01 Thread Barry Smith
Felix, The branch is ready. Just use git checkout barry/2020-07-28/superlu_dist-single ./configure --download-superlu_dist --download-metis --download-parmetis --download-ptscotch --with-precision=single and whatever else you use Barry It will automatically get the needed

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-31 Thread Barry Smith
Felix, Sorry for the delay. Another issue came up with building SuperLU_DIST for this formulation that Sherry has to look at. We haven't forgotten you, Barry duplicate symbol '_FormFullA' in: CMakeFiles/superlu_dist.dir/sreadhb.c.o CMakeFiles/superlu_dist.dir/dreadhb.c.o

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-27 Thread flw
Hi Shery, Yes, ideally we would like to compile PETSc in single precision and simply run a single precision version of SUPERLU_DIST just like e.g. MUMPS. Best regards and thanks, Felix Zitat von "Xiaoye S. Li" : Barry, I have a branch 'Mixed-precision' working with single precision FP32.

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-26 Thread Xiaoye S. Li
Barry, I have a branch 'Mixed-precision' working with single precision FP32. I assume Felix wants to use superlu_dist from petsc. How do you want to incorporate it in petsc? https://github.com/xiaoyeli/superlu_dist PS1: in this version, FP32 only works on CPU. FP64 and complex-FP64 all work

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-23 Thread flw
Hi Sherry, thanks, that would be awesome! Best regards, Felix Quoting "Xiaoye S. Li" : I can package a CPU version over the weekend. Sherry On Wed, Jul 22, 2020 at 6:04 AM wrote: Hi Barry, for now I just want to run everything in single on CPUs only with SUPERLU_DIST. Maybe we will also

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-22 Thread Xiaoye S. Li
I can package a CPU version over the weekend. Sherry On Wed, Jul 22, 2020 at 6:04 AM wrote: > Hi Barry, > for now I just want to run everything in single on CPUs only with > SUPERLU_DIST. Maybe we will also incorporate GPUs in the future, but > there are no immediate plans yet. So if you could

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-22 Thread flw
Hi Barry, for now I just want to run everything in single on CPUs only with SUPERLU_DIST. Maybe we will also incorporate GPUs in the future, but there are no immediate plans yet. So if you could provide the support, that would be awesome. Best regards, Felix Zitat von Barry Smith :

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-21 Thread Xiaoye S. Li
Yes. We will wait for his reply. -Sherry On Tue, Jul 21, 2020 at 6:30 PM Barry Smith wrote: > > Thanks Sherry. But the CPU version runs correctly right so if Felix is > only interested in CPUs then I could give it to him now? > > Barry > > > On Jul 21, 2020, at 7:33 PM, Xiaoye S. Li

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-21 Thread Barry Smith
Thanks Sherry. But the CPU version runs correctly right so if Felix is only interested in CPUs then I could give it to him now? Barry > On Jul 21, 2020, at 7:33 PM, Xiaoye S. Li wrote: > > Barry, > > We have a macro-ized basefile to produced all 4 precisions for SuperLU_DIST. > In the

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-21 Thread Xiaoye S. Li
Barry, We have a macro-ized basefile to produced all 4 precisions for SuperLU_DIST. In the past, we didn't generate single precision code, since there was no request. Since now we started working on mixed precision algorithms. I generated single precision code a few weeks ago, and fixed some

Re: [petsc-users] SUPERLU_DIST in single precision

2020-07-21 Thread Barry Smith
Felix, What are your needs, do you want this for CPUs or for GPUs? Do you wish to run all your code in single precision or just the SuperLU_Dist solver while the rest of your code double? If you want to run everything on CPUs using single precision then adding the support is

[petsc-users] SUPERLU_DIST in single precision

2020-07-21 Thread flw
Dear PETSc support team, some time ago you told me that you are planning on releasing a version that supports SUPERLU_DIST in single-precision soon. Can you tell me roughly what time frame you had in mind? Best regards, Felix