[CppAD] CppAD with OpenMP

Kipp Martin kipp.martin at chicagogsb.edu
Sun Mar 11 17:04:24 EDT 2007


Hi:

> If you have a compiler that supports OpenMP, would you please try 
> running this test and reporting back the results.

This afternoon I installed gcc 4.3 on my Mac dual Power PC processor. 
This version of gcc support OpenMP.

I then installed cppad-20070311.cpl.tgz

I ran

kmartin-g5:~/temp/cppad-20070311 kmartin$ ./openmp/run.sh multi_newton 
false true
g++ -I.. multi_newton.cpp -o multi_newton  -DNDEBUG -O2
./multi_newton
_OPENMP is not defined, running in single tread mode
n_grid           = { 20, 40 }
Execution Speed  = { 2194, 1311 }
Correctness Test Passed
rm multi_newton

So no problem.

Then

kmartin-g5:~/temp/cppad-20070311 kmartin$ ./openmp/run.sh multi_newton 
true true
g++ -I.. multi_newton.cpp -o multi_newton -fopenmp -DNDEBUG -O2
In file included from ../cppad/local/ad.hpp:258,
                  from ../cppad/cppad.hpp:62,
                  from multi_newton.cpp:39:
../cppad/local/tape_link.hpp: In static member function 'static size_t* 
CppAD::AD<Base>::id_handle()':
../cppad/local/tape_link.hpp:151: sorry, unimplemented: threadprivate 
variables not supported in this target
../cppad/local/tape_link.hpp: In static member function 'static 
CppAD::ADTape<Base>** CppAD::AD<Base>::tape_handle()':
../cppad/local/tape_link.hpp:159: sorry, unimplemented: threadprivate 
variables not supported in this target
./multi_newton
./openmp/run.sh: line 134: ./multi_newton: No such file or directory

Any suggestion on what I might try?  I am running

g++ --version
g++ (GCC) 4.3.0 20061223 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Thanks

-- 
Kipp Martin
Professor of Operations Research
and Computing Technology
Graduate School of Business
University of Chicago
5807 South Woodlawn Avenue
Chicago, IL 60637

773-702-7456


More information about the CppAD mailing list