![]() For programs that come packaged with a default Makefile, check compiler options before using. For Intel, the compile flag -xHost is used to optimize based on the compilation node.To compile without optimizing for architecture, please refer to the latest PGI compiler documentation. If a PGI program is compiled on a login node it may not run on an older node, resulting in an error of illegal instruction. By default, the PGI compiler will perform optimizations based on the node it was compiled on.If module load intel was used to compile the code, use module load intel to set the environment in a submit script before launching the executable. Use the same environment variables used for compilation when running the code.Do not compile a library dependency with PGI and then compile the executable with Intel. Use the same compiler for all parts of a program. ![]() Compiler tips and recommendations Warnings
0 Comments
Leave a Reply. |