From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14254 invoked by alias); 14 Sep 2009 20:00:02 -0000 Received: (qmail 14052 invoked by uid 48); 14 Sep 2009 19:59:45 -0000 Date: Mon, 14 Sep 2009 20:00:00 -0000 Message-ID: <20090914195945.14051.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime 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/msg01317.txt.bz2 ------- Comment #5 from geir at cray dot com 2009-09-14 19:59 ------- (In reply to comment #4) > Geir, have you run the testcase with other compilers? What is the result? > Changed test cast to use 2 threads ("omp_set_num_threads(2);") PGI 9.0-3 $ pgcc -mp bug2883.c $ ./a.out pi 3.1416 n_thread -7 Error: omp_set_num_threads value (-7) is invalid $ Pathscale 3.2.99: $ pathcc -mp bug2883.c $ ./a.out pi 3.1416 n_thread -7 actual_num_threads = 1 $ Intel/11.1.046: $ icc -openmp bug2883.c $ ./a.out pi 3.1416 n_thread -7 actual_num_threads = 2 $ Cray 7.1.3: $ cc -target=native bug2883.c $ ./a.out pi 3.1416 n_thread -7 actual_num_threads = 2 $ $ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720