[Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime
geir at cray dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 14 20:00:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list