-
Notifications
You must be signed in to change notification settings - Fork 602
dplasma: new package + required updates to parsec package #502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
| # | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
| from spack_repo.builtin.build_systems.cuda import CudaPackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class Dplasma(CMakePackage, CudaPackage): | ||
| """DPLASMA is a highly optimized, accelerator-aware, implementation of a | ||
| dense linear algebra package for distributed heterogeneous systems. It is | ||
| designed to deliver sustained performance for distributed systems where each | ||
| node featuring multiple sockets of multicore processors, and if available, | ||
| accelerators, using the PaRSEC runtime as a backend.""" | ||
|
|
||
| homepage = "https://github.com/ICLDisco/dplasma" | ||
| git = "https://github.com/ICLDisco/dplasma.git" | ||
| maintainers("G-Ragghianti", "abouteiller", "bosilca", "herault") | ||
|
|
||
| license("BSD-3-Clause-Open-MPI") | ||
|
|
||
| version("develop", branch="master") | ||
|
|
||
| variant( | ||
| "build_type", | ||
| default="RelWithDebInfo", | ||
| description="CMake build type", | ||
| values=("Debug", "Release", "RelWithDebInfo"), | ||
| ) | ||
| variant("shared", default=True, description="Build a shared library") | ||
| variant("cuda", default=True, description="Build with CUDA") | ||
| variant("internal-parsec", default="False", description="Build with internal PaRSEC") | ||
|
|
||
| depends_on("c", type="build") | ||
| depends_on("cmake@3.18:", type="build") | ||
| depends_on("python", type="build") | ||
| depends_on("flex", type="build") | ||
| depends_on("bison", type="build") | ||
| depends_on("hwloc") | ||
| depends_on("mpi") | ||
| depends_on("blas") | ||
| depends_on("lapack") | ||
| depends_on("parsec+cuda", when="~internal-parsec+cuda") | ||
| depends_on("parsec~cuda", when="~internal-parsec~cuda") | ||
|
|
||
| def cmake_args(self): | ||
| args = [ | ||
| self.define_from_variant("CMAKE_BUILD_TYPE", "build_type"), | ||
| self.define_from_variant("BUILD_SHARED_LIBS", "shared"), | ||
| self.define_from_variant("DPLASMA_GPU_WITH_CUDA", "cuda"), | ||
| self.define("DPLASMA_GPU_WITH_HIP", "Off"), | ||
| ] | ||
| if "~internal-parsec" in self.spec: | ||
| args.append(self.define("PaRSEC_ROOT", self.spec["parsec"].prefix)) | ||
| return args |
14 changes: 14 additions & 0 deletions
14
repos/spack_repo/builtin/packages/parsec/apply-header.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/parsec/data_dist/matrix/CMakeLists.txt b/parsec/data_dist/matrix/CMakeLists.txt | ||
| index 51beffec2..597557c08 100644 | ||
| --- a/parsec/data_dist/matrix/CMakeLists.txt | ||
| +++ b/parsec/data_dist/matrix/CMakeLists.txt | ||
| @@ -32,7 +32,7 @@ if( TARGET parsec-ptgpp ) | ||
| target_ptg_sources(parsec PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/reduce_col.jdf;${CMAKE_CURRENT_SOURCE_DIR}/reduce_row.jdf;${CMAKE_CURRENT_SOURCE_DIR}/reduce.jdf;${CMAKE_CURRENT_SOURCE_DIR}/diag_band_to_rect.jdf;${CMAKE_CURRENT_SOURCE_DIR}/apply.jdf") | ||
| set_property(TARGET parsec | ||
| APPEND PROPERTY | ||
| - PRIVATE_HEADER_H data_dist/matrix/diag_band_to_rect.h) | ||
| + PRIVATE_HEADER_H data_dist/matrix/diag_band_to_rect.h data_dist/matrix/apply.h) | ||
| endif( TARGET parsec-ptgpp ) | ||
|
|
||
| target_sources(parsec PRIVATE ${sources}) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.