From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18776 invoked by alias); 18 Sep 2009 18:41:43 -0000 Received: (qmail 18639 invoked by uid 48); 18 Sep 2009 18:41:24 -0000 Date: Fri, 18 Sep 2009 18:41:00 -0000 Message-ID: <20090918184124.18638.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33439] OpenMP: Incorrect error message for chunksize variable In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "geir at cray dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg01722.txt.bz2 ------- Comment #8 from geir at cray dot com 2009-09-18 18:41 ------- Here is how other compilers process this code: PGI: $ pgf90 -mp test.f90 $ ./a.out Warning: omp_set_num_threads (4) greater than available cpus (2) tmp, fsize 3.141592653589793 -7 s = 0.000000000000000 $ pgf90 test.f90 $ ./a.out tmp, fsize 3.141592653589793 -7 s = 100.0000000000000 $ Intel: $ ifort -openmp test.f90 $ ./a.out tmp, fsize 3.14159265358979 -7 s = 100.000000000000 $ ifort test.f90 /tmp/pbs.1871075.sdb/ifortE1EQWX.o: In function `MAIN__': test.f90:(.text+0x3e): undefined reference to `omp_set_num_threads_' $ Cray: $ ftn -target=native -Oomp test.f90 /opt/cray/xt-asyncpe/3.3/bin/ftn: INFO: native target is being used $ ./a.out tmp, fsize 3.1415926535897931, -7 s = 0. $ ftn -target=native -Onoomp test.f90 /opt/cray/xt-asyncpe/3.3/bin/ftn: INFO: native target is being used $ ./a.out tmp, fsize 3.1415926535897931, -7 s = 100. $ I would say that none of the above are desired behavior, but rather a runtime error message should be printed out. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33439