<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Try adding a backslash at the end of line 24.<div><br></div><div>Cheers,</div><div><br></div><div>Erik</div><div><br><div><div>On 01 Aug 2014, at 11:09, Theodore Si &lt;<a href="mailto:sjyzhxw@gmail.com">sjyzhxw@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<div text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
Does anyone know the instrumentation tool Vampir Trace? I am using it, and I want to instrument the gromacs code.<br>
So my cmake options are:<br>
<br>
cmake .. -DCMAKE_BUILD_OWN_FFTW=ON -DCMAKE_C_COMPILER=vtcc -DCMAKE_CXX_COMPILER=vtcxx -DGMX_MPI=on -DCMAKE_INSTALL_PREFIX=/home/theo/gmx -CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-5.5<br>
<br>
Vampir Trace includes some binaries, like vtcc and vtcxx above. They behave like compiler but are actually compiler wrapper.<br>
For example, you can write main.c and <font color="#330099">vtcc main.c -o main</font>, and the binary main will be built and you can run it like a normal binary file, but during the run, some files will be generated and can be analysed latter.<br>
<br>
However, error occurs:<br>
<br>
[&nbsp; 2%] Building C object src/gromacs/CMakeFiles/libgromacs.dir/__/external/tng_io/src/compression/tng_compress.c.o<br>
/home/theo/gromacs-5.0/src/external/tng_io/src/compression/tng_compress.c:25: <font color="#ff0000">
error: expected ¡®=¡¯, ¡®,¡¯, ¡®;¡¯, ¡®asm¡¯ or ¡®__attribute__¡¯ before ¡®speed¡¯</font><br>
/home/theo/gromacs-5.0/src/external/tng_io/src/compression/tng_compress.c: In function ¡®quantize¡¯:<br>
/home/theo/gromacs-5.0/src/external/tng_io/src/compression/tng_compress.c:80: warning: implicit declaration of function ¡®verify_input_data¡¯<br>
At top level:<br>
cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"<br>
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/__/external/tng_io/src/compression/tng_compress.c.o] Error 1<br>
make[1]: *** [src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
When I open the tng_compress.c, I find that line 25 is just a comment.<br>
<br>
24 #define SPEED_DEFAULT 2 /* Default to relatively fast compression. For very&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; good compression it makes sense to<br>
25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; choose speed=4 or speed=5 */<br>
26<br>
<br>
Could you tell me what's going on?<br>
<br>
I'd appreciate you kind help.
</div>

-- <br>Gromacs Developers mailing list<br><br>* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br><br>* Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists">http://www.gromacs.org/Support/Mailing_Lists</a><br><br>* For (un)subscribe requests visit<br><a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.</blockquote></div><br></div></body></html>