ScaLAPACK-2.1.0-gompi-2021b-fbo.eb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name = 'ScaLAPACK'
  2. version = '2.1.0'
  3. versionsuffix = '-fbo'
  4. homepage = 'https://www.netlib.org/scalapack/'
  5. description = """The ScaLAPACK (or Scalable LAPACK) library includes a subset of LAPACK routines
  6. redesigned for distributed memory MIMD parallel computers."""
  7. toolchain = {'name': 'gompi', 'version': '2021b'}
  8. toolchainopts = {'pic': True}
  9. source_urls = [homepage]
  10. sources = [SOURCELOWER_TGZ]
  11. patches = ['ScaLAPACK-%(version)s_fix-GCC-10.patch']
  12. checksums = [
  13. '61d9216cf81d246944720cfce96255878a3f85dec13b9351f1fa0fd6768220a6', # scalapack-2.1.0.tgz
  14. 'bbb713c9fcabac802811c7f2c3a957c2d5d19dfd118ed1f6578c1436b82c7c43', # ScaLAPACK-2.1.0_fix-GCC-10.patch
  15. ]
  16. builddependencies = [
  17. ('CMake', '3.21.1'),
  18. ]
  19. dependencies = [
  20. ('FlexiBLAS', '3.0.3'),
  21. ]
  22. # Config Opts based on AOCL User Guide:
  23. # https://developer.amd.com/wp-content/resources/AOCL_User%20Guide_2.2.pdf
  24. configopts = '-DBUILD_SHARED_LIBS=ON '
  25. configopts += '-DBLAS_LIBRARIES="$EBROOTFLEXIBLAS/lib/libflexiblas.%s" ' % SHLIB_EXT
  26. configopts += '-DLAPACK_LIBRARIES="$EBROOTFLEXIBLAS/lib/libflexiblas.%s" ' % SHLIB_EXT
  27. configopts += '-DCMAKE_C_COMPILER=mpicc '
  28. configopts += '-DCMAKE_Fortran_COMPILER=mpif90 '
  29. configopts += '-DCMAKE_Fortran_FLAGS="-lpthread -fopenmp $DCMAKE_Fortran_FLAGS" '
  30. sanity_check_paths = {
  31. 'files': ['lib/libscalapack.%s' % SHLIB_EXT, 'lib64/libscalapack.%s' % SHLIB_EXT],
  32. 'dirs': ["lib", "lib64"],
  33. }
  34. moduleclass = 'numlib'