Re: [petsc-users] Using PetscPartitioner on WINDOWS

2024-03-25 Thread




 Hi, Satish Thanks for your reply, I try your advise and I successfully configure and make petsc-3. 20. 5 with libmetis. lib and libparmetis. lib Configure Options: --with-debugging=0 --with-cc=/cygdrive/g/mypetsc/petsc-3. 20. 2/lib/petsc/bin/win32fe/win_cl




ZjQcmQRYFpfptBannerStart




  

  
	This Message Is From an External Sender
  
  
This message came from outside your organization.
  



 
  


ZjQcmQRYFpfptBannerEnd




Hi, Satish
Thanks for your reply, I try your advise and I successfully configure and make petsc-3.20.5 with libmetis.lib and libparmetis.lib
Configure Options: --with-debugging=0 
--with-cc=/cygdrive/g/mypetsc/petsc-3.20.2/lib/petsc/bin/win32fe/win_cl 
--with-fc=/cygdrive/g/mypetsc/petsc-3.20.2/lib/petsc/bin/win32fe/win_ifort 
--with-cxx=/cygdrive/g/mypetsc/petsc-3.20.2/lib/petsc/bin/win32fe/win_cl 
--with-blaslapack-lib=-L/cygdrive/g/Intel/oneAPI/mkl/2023.2.0/lib/intel64 mkl-intel-lp64-dll.lib mkl-sequential-dll.lib mkl-core-dll.lib 
--with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include 
--with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib/release/impi.lib 
--with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly 
--download-parmetis --download-metis --with-strict-petscerrorcode=0


but when I try to use --download-blaslapack=/cygdrive/g/mypetsc/petsc-pkg-fblaslapack-e8a03f57d64c.tar.gz
It seem not work 

*
   UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
-
  External package BlasLapack does not support --download-blaslapack
*
configure.log is attached.

so If it mean we must use Intel MKL of blaslapack that for download metis and parmetis ( In this case we don't have libblaslapack.lib ) 
and When I try to use PETSc on windows with Visual studio I should use mkl-intel-lp64-dll.lib mkl-sequential-dll.lib mkl-core-dll.lib 


sinserely,
Ben.




> -原始邮件-
> 发件人: "Satish Balay" 
> 发送时间:2024-03-21 22:49:28 (星期四)
> 收件人: "Satish Balay via petsc-users" 
> 抄送: 程奔 
> 主题: Re: [petsc-users] Using PetscPartitioner on WINDOWS
> 
> Checking for program /usr/bin/git...not found
> Checking for program /cygdrive/c/Users/Akun/AppData/Local/Programs/Git/bin/git...found
> 
> Also you appear to not use 'cygwin git' I'm not sure if this alternative git would work or break - so either install/use cygwin git - or use tarballs.
> 
> Satish
> 
> On Thu, 21 Mar 2024, Satish Balay via petsc-users wrote:
> 
> > Delete your old build files - and retry. i.e
> > 
> > rm -rf /cygdrive/g/mypetsc/petsc-3.20.5/arch-mswin-c-opt
> > 
> > ./configure 
> > 
> > Satish
> > 
> > 
> > On Thu, 21 Mar 2024, 程奔 wrote:
> > 
> > > Hi, Satish Thanks for your reply, I try both way your said in petsc-3. 20. 5 but it encounter same question, * UNABLE to CONFIGURE with GIVEN OPTIONS
> > > ZjQcmQRYFpfptBannerStart
> > > This Message Is From an External Sender
> > > This message came from outside your organization.
> > >  
> > > ZjQcmQRYFpfptBannerEnd
> > > 
> > > Hi, Satish
> > > Thanks for your reply, I try both way your said in petsc-3.20.5 
> > > but it encounter same question,
> > > 
> > > *
> > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
> > >  -
> > >   Error running make on  METIS
> > >  *****
> > > 
> > > I send configure.log with "--download-parmetis --download-metis" to you and ask for you help.
> > > 
> > > sinserely,
> > > Ben.
> > > 
> > > > -原始邮件-
> > > > 发件人: "Satish Balay" 
> > > > 发送时间:2024-03-20 21:29:56 (星期三)
> > > > 收件人: 程奔 
> > > > 抄送: petsc-users 
> > > > 主题: Re: [petsc-users] Using PetscPartitioner on WINDOWS
> > > > 
> > > > >>>>
> > > > Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --with-debugging=0 --with-cc=/cygdrive/g/mypetsc/petsc-3.20.2/lib/petsc/b

Re: [petsc-users] Compile Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2024-03-12 Thread




 Hi Satish Sorry for replying to your email so late, I follow your suggestion and it have been installed successfully. Thank you so much. best wishes, Ben > -原始邮件- > 发件人: "Satish Balay"  > 发送时间: 2024-03-06




ZjQcmQRYFpfptBannerStart




  

  
	This Message Is From an External Sender
  
  
This message came from outside your organization.
  



 
  


ZjQcmQRYFpfptBannerEnd




Hi Satish
  Sorry for replying to your email so late, I follow your suggestion and it have been installed successfully.
  Thank you so much.

best
wishes,
Ben


> -原始邮件-
> 发件人: "Satish Balay" 
> 发送时间:2024-03-06 18:21:45 (星期三)
> 收件人: 程奔 
> 抄送: petsc-users@mcs.anl.gov
> 主题: Re: [petsc-users] Compile Error in configuring PETSc with Cygwin on Windows by using Intel MPI
> 
> > make[3]: *** No rule to make target 'w'.  Stop.
> 
> Try the following to overcome the above error:
> 
> make OMAKE_PRINTDIR=make all
> 
> However 3.13.6 is a bit old - so don't know if it will work with these versions of compilers.
> 
> Satish
> 
> On Wed, 6 Mar 2024, 程奔 wrote:
> 
> > Hello,
> > 
> > 
> > Last time I  installed PETSc 3.19.2 with Cygwin in Windows10 successfully.
> > 
> > Recently I try to install PETSc 3.13.6 with Cygwin since I'd like to use PETSc with Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list the softwares/packages used below:
> > 
> > 1. PETSc: version 3.13.6
> > 2. VS: version 2022 
> > 3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit
> > 
> > 
> > 4. Cygwin
> > 
> > 5. External package: petsc-pkg-fblaslapack-e8a03f57d64c.tar.gz
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > And the compiler option in configuration is:
> > 
> > ./configure  --with-debugging=0  --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl'  
> > 
> > --download-fblaslapack=/cygdrive/g/mypetsc/petsc-pkg-fblaslapack-e8a03f57d64c.tar.gz  --with-shared-libraries=0 
> > 
> > --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib/release/impi.lib 
> > 
> > --with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec 
> > 
> > 
> > 
> > 
> > Then I build PETSc libraries with:
> > 
> > make PETSC_DIR=/cygdrive/g/mypetsc/petsc-3.13.6 PETSC_ARCH=arch-mswin-c-opt all
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > but there return an error:
> > 
> > **ERROR*
> >   Error during compile, check arch-mswin-c-opt/lib/petsc/conf/make.log
> >   Send it and arch-mswin-c-opt/lib/petsc/conf/configure.log to petsc-ma...@mcs.anl.gov
> > 
> > 
> > 
> > 
> > 
> > 
> > So I wrrit this email to report my problem and ask for your help.  
> > 
> > 
> > Looking forward your reply!
> > 
> > 
> > sinserely,
> > Cheng.
> > 
> > 
> > 
> > 



Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-08 Thread
Sorry, the configure is 
./configure --prefix=/cygdrive/g/mypetsc/petsc2023  --with-cc='win32fe cl' 
--with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 
--with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include 
--with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib/release/impi.lib 
--with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly

-原始邮件-
发件人:程奔 
发送时间:2023-11-08 13:20:21 (星期三)
收件人: petsc-users@mcs.anl.gov
主题: Error in configuring PETSc with Cygwin on Windows by using Intel MPI


Hello,
Recently I try to install PETSc with Cygwin since I'd like to use PETSc with 
Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list 
the softwares/packages used below:
1. PETSc: version 3.19.2
2. VS: version 2022 
3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit
4. Cygwin: see the picture attatched (see picture cygwin)


And the compiler option in configuration is:
 ./configure --prefix=/cygdrive/g/mypetsc/petsc2023  --with-cc='win32fe cl' 
--with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 
--with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include 
--with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/libTherefore, I write 
this e-mail to look for your help.
/release/impi.lib 
--with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly




but there return an error:
*
  OSError while running ./configure
-
  Cannot run executables created with FC. If this machine uses a batch system
  to submit jobs you will need to configure using ./configure with the 
additional option
  --with-batch.
  Otherwise there is problem with the compilers. Can you compile and run code 
with your
  compiler '/cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win32fe 
ifort'?
  See https://petsc.org/release/faq/#error-libimf
*






Then I try to open configure.log in petsc, but there turnout an error that I 
can't open it.(see picture 1)

And then I right click on properties and click safety,it just turnout "The 
permissions on test directory are incorrectly ordered.which may cause some 
entries to be ineffective." (see picture 2)

And it also likely seen “NULL SID” as the top entry in permission lists.(see 
picture 3)

Then i follow this 
blog(https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows)
 to edit /etc/fstab in Cygwin, and add “noacl” to the mount options for 
/cygdrive.

But it's not working.

So I can't sent configure.log to you guys, it seems cygwin that installed in my 
computer happened to some problem.


Mayebe the error happened in the configure on petsc just because of this reason.




So I wrrit this email to report my problem and ask for your help.  


Looking forward your reply!


sinserely,
Cheng.