<div dir="ltr"><div>Hi,</div><div><br>On Friday, 13 September 2013 17:15:48 UTC+9:30, Alfio Lazzaro  wrote:</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr">Hi,<div>is the tiny1 phase generating the correct output files:</div><div><br></div><div>tiny_gen_optimal_dnn_linux.<wbr>gnu.out</div><div><br></div><div>? You should see a list of entries like:</div><div><br></div><div><div>1 1 1    5   1   1   1    2.490000       0.080</div><div>1 1 2    4   1   1   1    3.210003       0.125</div></div></div></blockquote><div> </div><div>Yes, the entries look fine.</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div>Then, the tiny1 phase doesn't link to BLAS, while small1 does.</div><div>I wonder if you are linking to the correct mkl libraries.</div><div>Could you take a look inside the directory</div><div><br></div><div>run_small_*</div><div><br></div><div>and see if the source files are produced? </div></div></blockquote><div> </div><div>Yes, the source files are produced.</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div>Then you can compile by hand one of this file and see if it works when executed.</div><div>For instance, you can do something like:</div><div><br></div><div>cd <small directory></div><div>gfortran -O2 -funroll-loops -ffast-math -ftree-vectorize -march=native -fno-inline-functions small_find_1_1_1.f90 -o output_linux.gnu/small_find_1_<wbr>1_1.x -L/mkl/lib/intel64 -Wl,--start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group <br></div><div>cd <output_linux.gnu></div><div>./small_find_1_1_1.x</div></div></blockquote><div> </div><div> </div><div>To avoid the question of gfortran/MKL compatibility (though Intel 11.0 is said to be suitable for gnu 4.4.0 and later), I have switched to Intel/MKL for tiny1, small1 and the test described further below. The small1 output is:</div><div>./output_linux.intel/small_find_9_32_23.x > output_linux.intel/small_find_9_32_23.out<br>./output_linux.intel/small_find_9_32_24.x > output_linux.intel/small_find_9_32_24.out<br>./output_linux.intel/small_find_9_32_26.x > output_linux.intel/small_find_9_32_26.out<br>./output_linux.intel/small_find_9_32_32.x > output_linux.intel/small_find_9_32_32.out<br>/bin/sh: line 1: 16024 Segmentation fault      (core dumped) ./output_linux.intel/small_find_9_32_32.x > output_linux.intel/small_find_9_32_32.out<br>make: *** [output_linux.intel/small_find_9_32_32.out] Error 139<br>make: *** Waiting for unfinished jobs....<br></div><div> </div><div>Compiling manually using:</div><div>ifort -O2 -funroll-loops -vec-report2 -warn -xHost -fno-inline-functions -nogen-interfaces -openmp -nolib-inline -static-intel -mkl=<br>sequential small_find_9_32_32.f90 -o output_linux.intel/small_find_9_32_32.x</div><div>gives no error message (just messages suggesting that more vectorization opportunities exist).</div><div>cd output_linux.intel</div><div>./small_find_9_32_32.x</div><div>gives a segmentation fault without other output.</div><div> </div><div>Do you still have Intel v11 there?</div><div> </div><div>Thanking you for your help.</div><div> </div><div> </div><div> </div><div> </div><div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div> </div></div></blockquote></div>