1
0

test_fcompiler_intel.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. from __future__ import division, absolute_import, print_function
  2. import numpy.distutils.fcompiler
  3. from numpy.testing import assert_
  4. intel_32bit_version_strings = [
  5. ("Intel(R) Fortran Intel(R) 32-bit Compiler Professional for applications"
  6. "running on Intel(R) 32, Version 11.1", '11.1'),
  7. ]
  8. intel_64bit_version_strings = [
  9. ("Intel(R) Fortran IA-64 Compiler Professional for applications"
  10. "running on IA-64, Version 11.0", '11.0'),
  11. ("Intel(R) Fortran Intel(R) 64 Compiler Professional for applications"
  12. "running on Intel(R) 64, Version 11.1", '11.1')
  13. ]
  14. class TestIntelFCompilerVersions(object):
  15. def test_32bit_version(self):
  16. fc = numpy.distutils.fcompiler.new_fcompiler(compiler='intel')
  17. for vs, version in intel_32bit_version_strings:
  18. v = fc.version_match(vs)
  19. assert_(v == version)
  20. class TestIntelEM64TFCompilerVersions(object):
  21. def test_64bit_version(self):
  22. fc = numpy.distutils.fcompiler.new_fcompiler(compiler='intelem')
  23. for vs, version in intel_64bit_version_strings:
  24. v = fc.version_match(vs)
  25. assert_(v == version)