If using modules - using 'module load gcc icc' [or equivalent] should normally work - but if the modules are setup such that loading icc unloads gcc - then I think that's a bug in this module setup..
[as icc has an (internal) dependency on gcc - so ignoring this dependency to remove a gcc module doesn't look correct to me] Satish On Tue, 8 Aug 2023, Victor Eijkhout wrote: > * Its easier to just add the newer version of gcc/g++ compilers to PATH > > Except that I do my path loading through environment modules (lmod version) > and they do not allow multiple compilers to be loaded at the same time. > > But yes, that would work. > > V. > > From: Satish Balay <ba...@mcs.anl.gov> > Date: Tuesday, August 8, 2023 at 11:20 > To: Victor Eijkhout <eijkh...@tacc.utexas.edu> > Cc: Barry Smith <bsm...@petsc.dev>, Khaled Nabil Shar Abdelaziz > <kabde...@purdue.edu>, petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov> > Subject: Re: [petsc-users] IMPI with Hypre > Its easier to just add the newer version of gcc/g++ compilers to PATH - and > icc will pick it up [without requiring -gcc-toolchain option] > > export PATH=/location/of/newer/g++/bin:$PATH > ./configure ... > make ... > > Satish > > On Tue, 8 Aug 2023, Victor Eijkhout wrote: > > > Maybe an option for specifying the explicit location of gcc version? The > > intel compiler has a “-gcc-toolchain” option for that. > > > > https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/gcc-toolchain.html<https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/gcc-toolchain.html> > > > > Victor. > > > > > > > > > >> This message is from an external sender. Learn more about why this << > >> matters at https://links.utexas.edu/rtyclf. << >