testing 0.10 with ifort on Mac OS X 10.6

25 views
Skip to first unread message

QS

unread,
Aug 8, 2010, 12:57:42 PM8/8/10
to Fwrap Users
All tests with gfortran passed. Very impressive!

However I had trouble getting it to work with ifort. 13 of the tests
will fail. Since in the release document it is said that fwrap has
been successfully tested with ifort (>=11.1), I would like to know
what settings we need to make so that we can have fwrap working with
ifort.

Here is the command I used:
F90=/opt/intel/Compiler/11.1/088/bin/intel64/ifort LDFLAGS='/opt/intel/
Compiler/11.1/088/lib -lifcore' python runtests.py --fcompiler=intelem
-vv --no-cleanup

And here are the outputs:
Python 2.6.5 |EPD 6.2-1 (64-bit)| (r265:79063, May 28 2010, 15:24:16)
[GCC 4.0.1 (Apple Inc. build 5488)]

wrapping all_char.f90 ... ERROR
wrapping char_args.f90 ... ERROR
wrapping cmplx_array.f90 ... ok
wrapping default_types.f90 ... ok
wrapping int_args.f90 ... ok
wrapping many_args.f90 ... ok
wrapping old_decl.f90 ... ok
wrapping py_kw_arg.f90 ... ok
wrapping simple_array.f90 ... ERROR
compiling and running all_char.f90 ... ERROR
compiling and running all_char_arrays.f90 ... ERROR
compiling and running all_complex.f90 ... Doctest:
all_complex_fwrap_doctest ... ok
compiling and running all_complex_arrays.f90 ... ERROR
compiling and running all_integer_arrays.f90 ... ERROR
compiling and running all_ints.f90 ... Doctest:
all_ints_fwrap_doctest ... ok
compiling and running all_logical_arrays.f90 ... ERROR
compiling and running all_logicals.f90 ... ERROR
compiling and running all_real_arrays.f90 ... ERROR
compiling and running all_reals.f90 ... Doctest:
all_reals_fwrap_doctest ... ok
compiling and running array_intents.f90 ... Doctest:
array_intents_fwrap_doctest ... ok
compiling and running array_types.f90 ... Doctest:
array_types_fwrap_doctest ... ok
compiling and running char_array.f90 ... ERROR
compiling and running default_types.f90 ... Doctest:
default_types_fwrap_doctest ... ok
compiling and running dim_expr.f90 ... Doctest:
dim_expr_fwrap_doctest.test_arg_expr ... ok
Doctest: dim_expr_fwrap_doctest.test_assumed_size ... ok
Doctest: dim_expr_fwrap_doctest.test_const_expr ... ok
Doctest: dim_expr_fwrap_doctest.test_param_expr ... ok
compiling and running func_returns.f90 ... ERROR
compiling and running int_args.f90 ... Doctest:
int_args_fwrap_doctest ... ok
compiling and running ndims.f90 ... Doctest:
ndims_fwrap_doctest.test_D3 ... FAIL
compiling and running old_decl.f90 ... Doctest:
old_decl_fwrap_doctest ... ok

======================================================================
ERROR: wrapping all_char.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
all_char_fwrap/all_char_fwrap.so, 2): Symbol not found: _for_concat
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
all_char_fwrap/all_char_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/all_char_fwrap/
all_char_fwrap.so

======================================================================
ERROR: wrapping char_args.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
char_args_fwrap/char_args_fwrap.so, 2): Symbol not found: _for_cpystr
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
char_args_fwrap/char_args_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/char_args_fwrap/
char_args_fwrap.so

======================================================================
ERROR: wrapping simple_array.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
simple_array_fwrap/simple_array_fwrap.so, 2): Symbol not found:
_for_write_seq_lis
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
simple_array_fwrap/simple_array_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/compile/
simple_array_fwrap/simple_array_fwrap.so

======================================================================
ERROR: compiling and running all_char.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_char_fwrap/all_char_fwrap.so, 2): Symbol not found: _for_concat
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_char_fwrap/all_char_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/all_char_fwrap/
all_char_fwrap.so

======================================================================
ERROR: compiling and running all_char_arrays.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_char_arrays_fwrap/all_char_arrays_fwrap.so, 2): Symbol not found:
__intel_fast_memcpy
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_char_arrays_fwrap/all_char_arrays_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/all_char_arrays_fwrap/
all_char_arrays_fwrap.so

======================================================================
ERROR: compiling and running all_complex_arrays.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_complex_arrays_fwrap/all_complex_arrays_fwrap.so, 2): Symbol not
found: __intel_fast_memcpy
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_complex_arrays_fwrap/all_complex_arrays_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_complex_arrays_fwrap/all_complex_arrays_fwrap.so

======================================================================
ERROR: compiling and running all_integer_arrays.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_integer_arrays_fwrap/all_integer_arrays_fwrap.so, 2): Symbol not
found: __intel_fast_memcpy
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_integer_arrays_fwrap/all_integer_arrays_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_integer_arrays_fwrap/all_integer_arrays_fwrap.so

======================================================================
ERROR: compiling and running all_logical_arrays.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_logical_arrays_fwrap/all_logical_arrays_fwrap.so, 2): Symbol not
found: __intel_fast_memcpy
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_logical_arrays_fwrap/all_logical_arrays_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_logical_arrays_fwrap/all_logical_arrays_fwrap.so

======================================================================
ERROR: compiling and running all_logicals.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_logicals_fwrap/all_logicals_fwrap.so, 2): Symbol not found:
_iso_c_binding_mp_c_f_pointer_scalar_
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_logicals_fwrap/all_logicals_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/all_logicals_fwrap/
all_logicals_fwrap.so

======================================================================
ERROR: compiling and running all_real_arrays.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_real_arrays_fwrap/all_real_arrays_fwrap.so, 2): Symbol not found:
__intel_fast_memcpy
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
all_real_arrays_fwrap/all_real_arrays_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/all_real_arrays_fwrap/
all_real_arrays_fwrap.so

======================================================================
ERROR: compiling and running char_array.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
char_array_fwrap/char_array_fwrap.so, 2): Symbol not found:
_for_cpystr
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
char_array_fwrap/char_array_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/char_array_fwrap/
char_array_fwrap.so

======================================================================
ERROR: compiling and running func_returns.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: dlopen(/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
func_returns_fwrap/func_returns_fwrap.so, 2): Symbol not found:
_iso_c_binding_mp_c_f_pointer_scalar_
Referenced from: /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
func_returns_fwrap/func_returns_fwrap.so
Expected in: flat namespace
in /Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/func_returns_fwrap/
func_returns_fwrap.so

======================================================================
FAIL: Doctest: ndims_fwrap_doctest.test_D3
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/
doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for ndims_fwrap_doctest.test_D3
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/ndims_fwrap/
ndims_fwrap_doctest.py", line 22, in test_D3

----------------------------------------------------------------------
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/ndims_fwrap/
ndims_fwrap_doctest.py", line 24, in ndims_fwrap_doctest.test_D3
Failed example:
test_D3()
Expected:
True
Got:
False


----------------------------------------------------------------------
Ran 41 tests in 99.151s

FAILED (failures=1, errors=12)

Kurt Smith

unread,
Aug 8, 2010, 2:50:00 PM8/8/10
to fwrap...@googlegroups.com
On Sun, Aug 8, 2010 at 11:57 AM, QS <qingsh...@gmail.com> wrote:
> All tests with gfortran passed. Very impressive!

Good! What version of gfortran are you using? I'd like to know so I
can include it in the documentation.

>
> However I had trouble getting it to work with ifort. 13 of the tests
> will fail. Since in the release document it is said that fwrap has
> been successfully tested with ifort (>=11.1), I would like to know
> what settings we need to make so that we can have fwrap working with
> ifort.
>
> Here is the command I used:
> F90=/opt/intel/Compiler/11.1/088/bin/intel64/ifort LDFLAGS='/opt/intel/
> Compiler/11.1/088/lib -lifcore' python runtests.py --fcompiler=intelem
> -vv --no-cleanup

Looks like a typo in your LDFLAGS setting: change it to
'-L/path/to/ifort/libs -lifcore' (note the '-L' at the beginning). If
that still doesn't work please let me know; there are a few other
possibilities to troubleshoot.

Thanks for testing it out!

Kurt

> --
> You received this message because you are subscribed to the Google Groups "Fwrap Users" group.
> To post to this group, send email to fwrap...@googlegroups.com.
> To unsubscribe from this group, send email to fwrap-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fwrap-users?hl=en.
>
>

QS

unread,
Aug 8, 2010, 6:05:47 PM8/8/10
to Fwrap Users
Hi Kurt,
Thanks for catching my typo. With '-L' included, all but two of the
tests will pass.
Here are the output from the two failed tests:
======================================================================
FAIL: Doctest: func_returns_fwrap_doctest.test_rets
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/
doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
func_returns_fwrap_doctest.test_rets
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/
func_returns_fwrap/func_returns_fwrap_doctest.py", line 3, in
test_rets

----------------------------------------------------------------------
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/func_returns_fwrap/
func_returns_fwrap_doctest.py", line 5, in
func_returns_fwrap_doctest.test_rets
Failed example:
test_rets()
Expected:
True
Got:
False


======================================================================
FAIL: Doctest: ndims_fwrap_doctest.test_D3
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/
doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for ndims_fwrap_doctest.test_D3
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/ndims_fwrap/
ndims_fwrap_doctest.py", line 22, in test_D3

----------------------------------------------------------------------
File "/Users/qchen/Downloads/fwrap-0.1.0/BUILD/run/ndims_fwrap/
ndims_fwrap_doctest.py", line 24, in ndims_fwrap_doctest.test_D3
Failed example:
test_D3()
Expected:
True
Got:
False


----------------------------------------------------------------------
Ran 50 tests in 132.511s

FAILED (failures=2)


Are these failures significant?

The version of Gfortran that I successfully tested with is 4.4. My
system information: Mac OS X 10.6, Python 2.6.5, Numpy 1.4.1 (From the
EPD package).

With best regards,
Qingshan



On Aug 8, 2:50 pm, Kurt Smith <kwmsm...@gmail.com> wrote:

Kurt Smith

unread,
Aug 8, 2010, 6:41:56 PM8/8/10
to fwrap...@googlegroups.com

Everything works as it should -- I made an assumption about ifort's
'true' value which turned out to be incorrect (ifort happens to use
'-1' to signify true internally rather than '1', so I cast the arrays
to bool before testing their value in the tests). I patched it in
trunk; you can get it here (requires mercurial):

http://bitbucket.org/kwmsmith/fwrap-dev

Thanks for trying it out!

Kurt

Reply all
Reply to author
Forward
0 new messages