On Sun, Jul 19, 2020 at 8:02 AM Hongyi Zhao <[email protected]> wrote: > > On Sun, Jul 19, 2020 at 7:34 AM Hongyi Zhao <[email protected]> wrote: > > > > On Sat, Jul 18, 2020 at 10:50 AM Hongyi Zhao <[email protected]> wrote: > > > > > > Hi, > > > > > > When compiling the q-e git master version with intel > > > parallel_studio_xe/2020.1.102, I want to set the OFLAG to xHOST for > > > obtaining the optimized perfromance according to my CPU architecture. > > > > > > For achieving this aim, I tried the following but failed. See the > > > output for more information: > > > > > > $ ./configure --with-scalapack=intel MPIF90=mpiifort OFLAG+=xHOST > > > configure: error: invalid variable name: `OFLAG+' > > > > Based on the user_guide here: > > https://github.com/QEF/q-e/blob/master/Doc/user_guide.tex. I finally > > figure out the following method via revising the compilation flags in > > the make.inc file as following after running the configure command: > > > > CFLAGS = -O3 -xHost ... > > [...] > > FFLAGS = -O3 -xHost ... > > Or do the trick with GNU sed like the following: > > $ sed -Ei 's|^(CFLAGS[ ]*=.*)-O[0-9]+(.*)$|\1-O3 > -xHost\2|p;s|^(FFLAGS[ ]*=.*)-O[0-9]+(.*)$|\1-O3 -xHost\2|g' make.inc
Sorry, it should be the following: $ sed -Ei 's|^([CF]FLAGS[ ]*=.* )-O[0-9]+( .*)$|\1-O3 -xHost\2|g' make.inc Regards, -- Hongyi Zhao <[email protected]> _______________________________________________ Quantum ESPRESSO is supported by MaX (www.max-centre.eu/quantum-espresso) users mailing list [email protected] https://lists.quantum-espresso.org/mailman/listinfo/users
