Skip to content

Commit

Permalink
Add threading variants to scotch package.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmononian committed May 18, 2023
1 parent c838e90 commit a473eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions var/spack/repos/builtin/packages/scotch/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class Scotch(CMakePackage, MakefilePackage):
version("5.1.10b", sha256="54c9e7fafefd49d8b2017d179d4f11a655abe10365961583baaddc4eeb6a9add")

build_system(conditional("cmake", when="@7:"), "makefile", default="cmake")
variant("threads", default=True, description="use POSIX Pthreads within Scotch and PT-Scotch")
variant("mpi_thread", default=True, description="use multi-threaded algorithms in conjunction with MPI")
variant("mpi", default=True, description="Compile parallel libraries")
variant("compression", default=True, description="May use compressed files")
variant("esmumps", default=False, description="Compile esmumps (needed by mumps)")
Expand Down Expand Up @@ -115,6 +117,8 @@ def cmake_args(self):
self.define_from_variant("BUILD_LIBESMUMPS", "esmumps"),
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
self.define_from_variant("BUILD_PTSCOTCH", "mpi"),
self.define_from_variant("THREADS", "threads"),
self.define_from_variant("MPI_THREAD_MULTIPLE", "mpi_thread")
]

# TODO should we enable/disable THREADS?
Expand Down

0 comments on commit a473eb9

Please sign in to comment.