Home > Cannot Run > Cannot Run Executables Created With C Petsc

Cannot Run Executables Created With C Petsc

Just copy/paste make command printed by configure including PETSC_DIR and PETSC_ARCH options Do not have fortran compiler? If this machine uses a batch > > > > system > > > > to submit jobs you will need to configure using ./configure with the > > > > Return to Installation Instructions Installing PETSc to use GPUs and accelerators via OpenCL (NVIDIA, AMD, Intel MIC) Requires ViennaCL and the OpenCL shared library, which is shipped in the vendor graphics If I have to specify the lib names (using > > > --with-mpi-lib?), which libs should I specify? http://haywirerobotics.com/cannot-run/cannot-run-executables-created-with-fc-petsc.html

On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack? Configure will automatically look for MPI compilers mpicc/mpif77 etc and use them if found [in default PATH] One can use the following options to download/install One can use the following options Return to Installation Instructions MPI This software provides the parallel functionality for PETSc. Cuda build of PETSc curently works on Apple OSX, Linux [Ubuntu 10.04], Microsoft Windows [Server 2003].

These variables can be set as envirnment variables or specified on the command line [to both configure and make] specify enviornment variable for csh/tcsh [can be specified in ~/.cshrc] setenv PETSC_DIR They are different things; you should test by trying to execute, not by checking the file mode. 2015-02-27T14:55:08+00:00 Matthew Knepley Why even have filesystem metadata if it means nothing? This needs to be invoked with the correct information for the installed TAU and PDT packages. URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110908/643541b1/attachment-0001.htm [petsc-users] PETSc config error 2011-09-08 Thread amrit poudel This is what I have in /lib, and by looking at libmpi.so, I believe I have a shared library.

Can you compile and run code with your C/C++ (and maybe Fortran) compilers? *** I am sure that fortran and C/C++ compilers are okay on this computer. Configure will automatically look for blas/lapack in certain standard locations, on most systems you should not need to provide any information about BLAS/LAPACK in the ./configure command. You can also run anything you want from that filesystem using /bin/ld-linux.so , making this kind of "protection" useless. 2015-02-27T15:41:01+00:00 eriatarka reporter > cd /tmp > echo '#!/bin/sh' > script.sh > Satish Balay Re: [petsc-users] Building PETSc with Intel ...

You can determine whether it is shared by examining the libraries. Thanks! Due to this OpenMPI restriction one has to set LD_LIBRARY_PATH correctly [per OpenMPI installation instructions], before running PETSc configure. Return to Installation Instructions Installing PETSc in /usr/local or /opt where sudo or root privileges are required: If one wants to install PETSc [with sources] in a common system location like

One can use 'c' build of PETSc from both C and C++. Why is the reduction of sugars more efficient in basic solutions than in acidic ones? However, > later it got another error (see the attached configure.log for details): >   > ******************************************************************************* >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for > details): > If you then compile and run that code standalone outside > of .configure does it not run? > > > Barry > > On Apr 29, 2010, at 9:20 PM, Satish

  1. It is compiling the trivial program int main() { ;   return 0; }                         Pushing language C    
  2. If this machine uses a batch system to submit jobs you will need to configure using/configure.py with the additional option --with-batch.
  3. Vendor provided MPI might already be installed.
  4. Do /home/amrit/MPI/bin/mpicc -show and send us the results.

Make sure the OpenCL headers are available on your system by e.g. Can you compile and run > > > >code with your C/C++ (and maybe Fortran) compilers? > > > > See http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf > > > > ******************************************************************************* > > > >  We recommend using linux if possible [and minimize troubleshooting windows related issues]. There has to be a query for this. 2015-02-27T14:42:19+00:00 Jed Brown Matthew Knepley Do you think the access mode should be overwritten when you mount read-only?

URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110908/4ade388c/attachment.htm [petsc-users] PETSc config error 2011-09-08 Thread Jed Brown On Thu, Sep 8, 2011 at 02:01, amrit poudel amrit_pou at hotmail.com wrote: ./config/configure.py --prefix=/home/amrit/PETSc --with-scalar-type=complex --with-batch --with-cc=/home/amrit/MPI/bin/mpicc --with-fc=/home/amrit/MPI/bin/mpif77 === Configuring OpenCL/ViennaCL builds of PETSc currently work on Apple OSX, Linux, and Microsoft Windows. When I'm trying to install PetSc its failing during configuration. I used --with-mpi-dir > to specify the MPI directory, can configure get the correct Intel MPI lib > names?

For eg: --with-superlu-include=/home/petsc/software/suerplu/include --with-superlu-lib=/home/petsc/software/superlu/lib/libsuperlu.a --with-parmetis-include=/sandbox/balay/parmetis/include --with-parmetis-lib="-L/sandbox/balay/parmetis/lib -lparmetis -lmetis" --with-parmetis-include=/sandbox/balay/parmetis/include --with-parmetis-lib=[/sandbox/balay/parmetis/lib/libparmetis.a,libmetis.a] Notes: Run ./configure --help to get the list of external packages - and corresponding additional options [for example --with-mpiexec for mpich] I saw a lot of libs under the directory, such as libmpi.a, > libmpi_ipl64.a, libmpi_mt.a, etc. >   > Thanks a lot, > Qin >  > > ________________________________ >  From: Barry One can specify it to PETSc configure with for eg: --with-blas-lapack-dir=/soft/com/packages/intel/13/079/mkl If the above option does not work - one could determine the correct library list for your compilers using Intel However, the binaries generated by MPI wrappers mpicc/mpif77 etc require LD_LIBRARY_PATH to be set to the location of these libraries.

URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110908/d17be810/attachment.htm [petsc-users] PETSc config error 2011-09-08 Thread Sean Farley I tried configuring it with --with-batch , but I still cannot get past the error (see below) ./config/configure.py --prefix=/home/amrit/PETSc --with-scalar-type=complex --with-batch Query for highest version At delivery time, client criticises the lack of some features that weren't written on my quote. If you really want to use ESSL, see http://www.pdc.kth.se/resources/computers/bluegene/LAPACK-CBLAS/LAPACK-CBLAS-build.

Just add --known-mpi-shared=1 to the configure line you ran before. -- next part -- An HTML attachment was scrubbed...

If it works on your machine, of course that is how the entire world works. Using MPI Compilers: It's best to install PETSc with MPI compiler wrappers (often called mpicc, mpicxx, mpif90) - this way, the SAME compilers used to build MPI are used to build Configure will automatically look for MPI compilers mpicc/mpif77 etc and use them if found in your PATH. Thus one can install multiple variants of PETSc libraries - by providing different PETSC_ARCH values to each configure build.

They currently default to "noautodetect mode. Would you recommend building a static library for open mpi or is shared library okay? It took me a lot of deep diving to finally figure out that the problem was that my sysadmin had set the /tmp filesystem to be non-executable. Can you compile and run code with your C/C++ (and maybe Fortran) compilers? *** I am sure that fortran and C/C++ compilers are okay on this computer.

Why isn't it > >> suggesting --with-batch??? > >> > >> Well, look what happens ----- > >> > >> In checkCCompiler() it builds an executable and seems to run without Additionally one can specify more suitable optimization flags with the options COPTFLAGS, FOPTFLAGS, CXXOPTFLAGS. Thanks! > > > However, later it got another error (see the attached configure.log for > > > details): > > >  > > > ******************************************************************************* > > >      create an empty project file with one of the examples say src/ksp/ksp/examples/tutorials/ex2.c try compiling the example from cygwin bash shell - using makefile - for eg: cd src/ksp/ksp/examples/tutorials make ex2 if

This should start a 'dos cmd' shell. Due to this Open MPI restriction one has to set LD_LIBRARY_PATH correctly [per Open MPI installation instructions], before running PETSc configure. Also the default MS/Intel/Compaq compilers behave differently than other unix compilers. Can you compile and run > >code with your C/C++ (and maybe Fortran) compilers? > > See http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf > > ******************************************************************************* > >  > > Thanks a lot for any suggestions

You should install different configurations using different --prefix names. Otherwise there is problem with the compilers. The configure.log is attached. > >  > > ******************************************************************************* > >                     UNABLE to EXECUTE BINARIES for ./configure > > ------------------------------------------------------------------------------- > > PETSc configure has the ability to download and install these external packages.

However one can choose a different location where these packages are unpacked. The same issue might exist with LAM as well. If configure doesn't find a PETSC_ARCH value [either in env variable or command line option], it automatically generates a default value and uses it. One can specify mpiexec or mpiexec with the options --with-mpiexec Return to Installation Instructions Microsoft Windows Installation: Are you sure you want to use MS/Windows?

i.e. Otherwise there is problem with the compilers. Thanks, Matt 2015-02-24T17:56:38+00:00 Matthew Knepley This fix is pushed to master. Blas/Lapack and MPI are generally required packages - but one can optionally use external solvers like Hypre, MUMPS etc..

Configure uses this value to stores the generated config makefiles in ${PETSC_DIR}/${PETSC_ARCH}/conf. However one can choose a different location where these packages are installed.