Package Details: trilinos 16.0.0-1

Git Clone URL: https://aur.archlinux.org/trilinos.git (read-only, click to copy)
Package Base: trilinos
Description: algorithms for the solution of large-scale scientific problems
Upstream URL: http://trilinos.org
Keywords: computing scientific
Licenses: LGPL3
Provides: kokkos, trilinos-ml, trilinos-sacado, zoltan
Submitter: Alad
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 5
Popularity: 0.002471
First Submitted: 2019-03-18 02:48 (UTC)
Last Updated: 2024-09-16 09:40 (UTC)

Required by (14)

Sources (1)

Pinned Comments

MartinDiehl commented on 2020-06-05 12:05 (UTC)

@hacksd: I had a look at the gtest issue, and I assume the following is happening: Trilinos brings its own version of gtest, hence the conflict with gtest. However, during build an existing gtest installation is required (in my case, the already installed trilinos package provides it). I'll figure out if this can be solved, but since disabling gtest works it's not on my list of priorities

I have disabled pyTrilinos in this package to have no dependency on python or python2. From https://trilinos.github.io/pytrilinos_faq.html, it seems that python3 is not supported. I also remember vaguely that even python2 (SWIG) caused problems. Also note that current gtest depends on python2.

Once gtest 1.10 (currently in testing) is available, I will see if trilinos works with a system-wide gtest.

Latest Comments

1 2 3 Next › Last »

saxonbeta commented on 2024-09-08 04:14 (UTC) (edited on 2024-09-08 04:44 (UTC) by saxonbeta)

Hi @MartinDiehl Could you please add the option -D Zoltan_ENABLE_F90INTERFACE=ON to generate the module interface file?

I need it to link the Zoltan library in the package elmerfem-git. You will probably also need to add -D CMAKE_C_FLAGS="$CFLAGS -Wno-error=incompatible-pointer-types" to allow compilation. Many thanks for considering my request.

lahwaacz commented on 2023-12-24 11:24 (UTC)

Please don't hardcode the amount of build parallelism with --parallel 4. If you want to enforce parallelism, it is best to add ninja to makedepends and -G Ninja to CMake's configure flags, otherwise just leave it up to users to define their MAKEFLAGS environment variable as they like.

carlosal1015 commented on 2023-06-25 18:36 (UTC) (edited on 2023-07-10 23:24 (UTC) by carlosal1015)

For me, seems strange the following output

$ldd /usr/lib/libkokkosalgorithms.so
        statically linked

Also is possible to add provides=(kokkos).

Edited 2023-07-10: This patch allow bump version to 14.2.0. And works with deal.II 9.5.0 or later. 14.0.0 does not work with 9.4.2 due libkokkos shared/static object issue.

carlosal1015 commented on 2022-09-23 19:46 (UTC) (edited on 2022-09-23 19:47 (UTC) by carlosal1015)

Hi, could you add

provides=(zoltan)

gpettinello commented on 2022-07-23 06:45 (UTC)

@petronny Same for me

petronny commented on 2022-07-05 14:31 (UTC)

Getting the following error:

[ 25%] Building C object packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_update.c.o
cd /build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus && /usr/bin/mpicc -Dexodus_EXPORTS -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_update.c.o -MF CMakeFiles/exodus.dir/src/ex_update.c.o.d -o CMakeFiles/exodus.dir/src/ex_update.c.o -c /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_update.c
[ 25%] Building C object packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o
cd /build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus && /usr/bin/mpicc -Dexodus_EXPORTS -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o -MF CMakeFiles/exodus.dir/src/ex_utils.c.o.d -o CMakeFiles/exodus.dir/src/ex_utils.c.o -c /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c
In file included from /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include/exodusII.h:20,
                 from /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c:20:
/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c: In function ‘ex__compress_variable’:
/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c:1739:19: error: expected identifier or ‘(’ before numeric constant
 1739 |         const int NC_SZIP_NN = 32;      /* Selects nearest neighbor coding method for szip. */
      |                   ^~~~~~~~~~
make[2]: *** [packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/build.make:2526: packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o] Error 1
make[2]: Leaving directory '/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build'
make[1]: *** [CMakeFiles/Makefile2:11323: packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/all] Error 2
make[1]: Leaving directory '/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build'
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Full build log: https://github.com/arch4edu/cactus/runs/7185560156?check_suite_focus=true

mane.andrea commented on 2021-12-02 01:45 (UTC)

Hi, I have a small request: I made an AUR package called trilinos-sacado which only compiles sacado because I needed it for something else (I mostly took inspiration from yours).

Could you perhaps add a provides=('trilinos-sacado') to your PKGBUILD? Many thanks in advance!

gpettinello commented on 2021-11-07 07:35 (UTC) (edited on 2021-11-07 07:35 (UTC) by gpettinello)

Hello Martin, Trilinos is now at version 13.2.0 I just updated the PKGBUILD

# Maintainer: Martin Diehl <aur@martin-diehl.net>
# Contributor: Gianluca Pettinello <g_pet@hotmail.com>
# Contributor: Alad Wenter <alad@archlinux.org>
# Contributor: Jingbei Li <i@jingbei.li>
# Contributor: Simon Pintarelli <simon.pintarelli@gmail.com>
# Contributor: Feng Wang <wanng.fenng@gmail.com>
pkgname=trilinos
pkgver=13.2.0
_pkgver=${pkgver//./-}
pkgrel=3
pkgdesc="algorithms for the solution of large-scale scientific problems"
arch=('x86_64')
url="http://trilinos.org"
license=('LGPL3')
depends=('python' 'lapack' 'boost' 'netcdf' 'libmatio' 'libx11' 'hdf5-openmpi')
makedepends=('gcc-fortran' 'perl' 'blas' 'cmake' 'bc' 'python-numpy')
checkdepends=('cmake')
source=("https://github.com/trilinos/Trilinos/archive/refs/tags/trilinos-release-$_pkgver.tar.gz"
        'python-mpi-version.patch')
sha256sums=('0ddb47784ba7b8a6b9a07a4822b33be508feb4ccd54301b2a5d10c9e54524b90'
            '9920ddf718ff04a14d1263623dfd98791404b1db0a73d95ba48d87215e8409eb')

prepare() {
  patch -d  Trilinos-trilinos-release-"$_pkgver" -p1 -i ../python-mpi-version.patch
}

build() {
    cd Trilinos-trilinos-release-"$_pkgver"
    mkdir -p build
    cd build

    cmake .. -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
             -DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
             -DTrilinos_ENABLE_PyTrilinos:BOOL=OFF \
             -DTrilinos_ENABLE_Gtest:BOOL=OFF \
             -DTrilinos_ENABLE_TESTS=OFF \
             -DTPL_ENABLE_gtest:BOOL=OFF \
             -DTPL_ENABLE_MPI:BOOL=ON \
             -DTPL_ENABLE_HDF5:BOOL=ON \
             -DCMAKE_INSTALL_PREFIX:PATH=/usr \
             -DBUILD_SHARED_LIBS:BOOL=ON
    make VERBOSE=1
}

check() {
    cd Trilinos-trilinos-release-"$_pkgver"/build
    ctest
}

package() {
    cd Trilinos-trilinos-release-"$_pkgver"/build
    make DESTDIR="$pkgdir" install
}

Please could you update? Thanks Regards Gianluca

lahwaacz commented on 2020-12-20 22:04 (UTC) (edited on 2020-12-21 10:15 (UTC) by lahwaacz)

python-numpy and swig should be added to dependencies, the package does not build otherwise.

But even when I added the packages, the build failed in the end:

[ 99%] Generating Teuchos.RCP.i
cd /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src && /usr/bin/python /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/gen_teuchos_rcp.py > /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/Teuchos.RCP.i
Traceback (most recent call last):
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/gen_teuchos_rcp.py", line 659, in <module>
    main()
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/gen_teuchos_rcp.py", line 557, in main
    print("#define MPI_VERSION %s" % get_mpi_version())
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/gen_teuchos_rcp.py", line 58, in get_mpi_version
    for line in open(header, 'r').readlines():
FileNotFoundError: [Errno 2] No such file or directory: '/include/mpi.h'

Edit: this patch fixed the build for me:

diff --unified --recursive --text --color Trilinos-trilinos-release-13-0-1.old/packages/PyTrilinos/src/gen_teuchos_rcp.py.in Trilinos-trilinos-release-13-0-1.new/packages/PyTrilinos/src/gen_teuchos_rcp.py.in
--- Trilinos-trilinos-release-13-0-1.old/packages/PyTrilinos/src/gen_teuchos_rcp.py.in  2020-11-14 01:13:13.000000000 +0100
+++ Trilinos-trilinos-release-13-0-1.new/packages/PyTrilinos/src/gen_teuchos_rcp.py.in  2020-12-21 09:48:13.021304841 +0100
@@ -53,7 +53,7 @@
 ################################################################################

 def get_mpi_version():
-    header = "${MPI_BASE_DIR}/include/mpi.h"
+    header = os.path.join(MPI_BASE_DIR, "include/mpi.h")
     version = ""
     for line in open(header, 'r').readlines():
         if "MPI_VERSION" in line:

Bollos00 commented on 2020-12-02 01:15 (UTC) (edited on 2020-12-02 02:09 (UTC) by Bollos00)

Good morning/afternoon/night,

trilinos can be updated to version 13.0.1 https://github.com/trilinos/Trilinos/releases/tag/trilinos-release-13-0-1

I have uptated the PKGBUILD file to apply those changes.

EDIT: not everything is working.

So, the line 25 should be changed:

    cd Trilinos-trilinos-release-12-18-1

to

    cd Trilinos-trilinos-release-"$_pkgver"

The new sha256sums:

sha256sums=('0bce7066c27e83085bc189bf524e535e5225636c9ee4b16291a38849d6c2216d'
                '64130011dd70f3be1133c0943be458a7d4f6fa799e6bd47a6294300ced6d827a'
                '0e2f10b7ba4f7349eaef6bff111cda6de6d216ab417e24bf0b342711117a7374')

But it is failing on prepare(), in one of those lines:

    patch --forward --strip=1 --input="${srcdir}/Makefile.kokkos.patch"
    patch --forward --strip=1 --input="${srcdir}/Seacas.patch"

If i comment those it seems to work.