Tests fail due to stack overflow

Post here if you have problem using the CMAKE build process

Tests fail due to stack overflow

Postby claashk » Mon Nov 21, 2011 7:47 am

Hi everybody!

I tried to compile lapack 3.4.0 from sources using gfortran-4.6 and cmake on Suse Linux 12.1. Since I intend to use lapack in a threaded environment, I pass -frecursive as additional compiler flag, in order to make all static arrays threadsafe. This is basically the same problem described by an earlier post ( viewtopic.php?f=2&t=1930 ), and as far as I know its the only suitable way to ensure that concurrent invocation of fortran routines using static arrays can be made safe.

However, this seemingly causes the test cases to be compiled with the same compiler option, which in turn causes stack overflows: The test cases 78-93 fail with segmentation faults, probably due to stackoverflows. This problem does not occur, when omitting the -frecursive flag.

I would like to assert my assumption, that this is a problem concerning the test cases only. Is there a way to specify different compiler flags for the test cases than for the library?

Regards
Claas
claashk
 
Posts: 2
Joined: Mon Nov 21, 2011 7:35 am

Re: Tests fail due to stack overflow

Postby admin » Tue Nov 29, 2011 12:17 am

Hi Claas,
You should be able to use LAPACK in a threaded environment.
But a way to specify different compiler flags for the test cases is to:
- first do a "make lapacklib" with your threadsafe flags.
- edit your make.inc to remove the flags you do not want to use for the tests.
- then "make tmglib lapack_testing"
Julie
admin
Site Admin
 
Posts: 499
Joined: Wed Dec 08, 2004 7:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 1 guest

cron