<div dir="ltr">Hi,<div><br></div><div>I am trying to compile GROMACS along with SCALASCA. I compile </div><div>C programs with scalasca using the command:</div><div><br></div><div> /software/bin/scalasca -instrument /software/intel/icc program.c</div><div><br></div><div>Following that idea, I tried to use the CC/C++ environmental variables as follows:</div><div> -DCMAKE_C_COMPILER=/software/bin/scalasca -instrument /software/intel/icc </div><div>-DCMAKE_CXX_COMPILER=/software/bin/scalasca -instrument /software/intel/icpc </div><div><br></div><div>However, it seems that cmake interprets that the compiler is just /software/bin/scalasca and not the entire line: </div><div>/software/bin/scalasca -instrument /software/intel/icc  (the same happens with c++)<br></div><div><br></div><div>or maybe the line is too long. </div><div><br></div><div>Do you know if this is the proper way to install GROMACS with SCALASCA</div><div>enabled? Or maybe there is something better?</div><div><br></div><div>Any suggestion on how to include SCALASCA path into the compiler path?</div><div><br></div><div>Here is the complete instruction I am using together with the output. </div><div>The GROMACS version I am trying is 5.0. </div><div><br></div><div>Note:  without the SCALASCA path, both icc and icpc compilers are well </div><div>recognized by cmake and I am able to install GROMACS.</div><div><br></div><div>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><div>cmake -D CMAKE_INSTALL_PREFIX=${INSTALL_PATH} -DCMAKE_C_COMPILER=/software/bin/scalasca -instrument /software/intel/icc \</div><div>-DCMAKE_CXX_COMPILER=/software/bin/scalasca -instrument /software/intel/icpc  \</div><div>-D Boost_INCLUDE_DIR=/software/build03/include -D GMX_FFT_LIBRARY=mkl -D MKL_INCLUDE_DIR=${MKL}/include \</div><div> -D MKL_LIBRARIES=${MKL}/lib/intel64/libmkl_rt.so -D REGRESSIONTEST_PATH=${REGTS} \</div><div> -D REGRESSIONTEST_DOWNLOAD=OFF ${GMX}</div><div>-- The C compiler identification is unknown</div><div>-- The CXX compiler identification is unknown</div><div>-- Check for working C compiler: /software/bin/scalasca</div><div>-- Check for working C compiler: /software/bin/scalasca -- broken</div><div>CMake Error at /software/CMakeTestCCompiler.cmake:61 (message):</div><div>  The C compiler</div><div>  &quot;/software/bin/scalasca&quot; is not able</div><div>  to compile a simple test program.</div><div><br></div><div>  It fails with the following output:</div><div><br></div><div>   Change Dir: /home/jliang/BUILD_TEST/CMakeFiles/CMakeTmp</div><div><br></div><div>  </div><div><br></div><div>  Run Build Command:/usr/bin/gmake &quot;cmTryCompileExec1997940207/fast&quot;</div><div><br></div><div>  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1997940207.dir/build.make</div><div>  CMakeFiles/cmTryCompileExec1997940207.dir/build</div><div><br></div><div>  gmake[1]: Entering directory</div><div>  `/home/jliang/BUILD_TEST/CMakeFiles/CMakeTmp&#39;</div><div><br></div><div>  /software/bin/cmake -E cmake_progress_report</div><div>  /home/jliang/BUILD_TEST/CMakeFiles/CMakeTmp/CMakeFiles 1</div><div><br></div><div>  Building C object</div><div>  CMakeFiles/cmTryCompileExec1997940207.dir/testCCompiler.c.o</div><div><br></div><div>  /software/bin/scalasca -o</div><div>  CMakeFiles/cmTryCompileExec1997940207.dir/testCCompiler.c.o -c</div><div>  /home/jliang/BUILD_TEST/CMakeFiles/CMakeTmp/testCCompiler.c</div><div><br></div><div>  Unexpected argument: -o</div><div><br></div><div>  Scalasca 2.1</div><div><br></div><div>  Toolset for scalable performance analysis of large-scale parallel</div><div>  applications</div><div><br></div><div>  usage: scalasca [OPTION]...  ACTION &lt;argument&gt;...</div><div><br></div><div>      1. prepare application objects and executable for measurement:</div><div>         scalasca -instrument &lt;compile-or-link-command&gt; # skin (using scorep)</div><div>      2. run application under control of measurement system:</div><div>         scalasca -analyze &lt;application-launch-command&gt; # scan</div><div>      3. interactively explore measurement analysis report:</div><div>         scalasca -examine &lt;experiment-archive|report&gt;  # square</div><div><br></div><div>  </div><div><br></div><div>  Options:</div><div><br></div><div>     -c, --show-config  show configuration summary and exit</div><div>     -h, --help         show this help and exit</div><div>     -n, --dry-run      show actions without taking them</div><div>         --quickref     show quick reference guide and exit</div><div>     -v, --verbose      enable verbose commentary</div><div>     -V, --version      show version information and exit</div><div><br></div><div>  </div><div><br></div><div>  gmake[1]: *** [CMakeFiles/cmTryCompileExec1997940207.dir/testCCompiler.c.o]</div><div>  Error 1</div><div><br></div><div>  gmake[1]: Leaving directory</div><div>  `/home/jliang/BUILD_TEST/CMakeFiles/CMakeTmp&#39;</div><div><br></div><div>  gmake: *** [cmTryCompileExec1997940207/fast] Error 2</div><div><br></div><div>  </div><div><br></div><div>  </div><div><br></div><div>  CMake will not be able to correctly generate this project.</div><div>Call Stack (most recent call first):</div><div>  CMakeLists.txt:45 (project)</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div>