Skip to content
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

NCEPLIBS oneAPI support #474

Open
wants to merge 4 commits into
base: spack-stack-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions var/spack/repos/builtin/packages/gfsio/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ class Gfsio(CMakePackage):
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")

version("develop", branch="develop")
version("1.4.2", sha256="1e92ba60c603a8d3019b2aa8134fb3a69e078b2d9398990638576d6c5aea4beb")
version("1.4.1", sha256="eab106302f520600decc4f9665d7c6a55e7b4901fab6d9ef40f29702b89b69b1")

depends_on("pfunit", type="test")

conflicts("%oneapi", when="@:1.4.1", msg="Requires @1.4.2: for Intel oneAPI")

def cmake_args(self):
args = [self.define("ENABLE_TESTS", self.run_tests)]
return args

def setup_run_environment(self, env):
lib = find_libraries("libgfsio", root=self.prefix, shared=False, recursive=True)
# Only one library version, but still need to set _4 to make NCO happy
Expand Down
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/landsfcutil/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ class Landsfcutil(CMakePackage):
maintainers("edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA")

version("develop", branch="develop")
version("2.4.2", sha256="ac0ee4edaab3d273d9a6acffea8aa8a5b363366c3ade3e32539c057e84e4fa73")
version("2.4.1", sha256="831c5005a480eabe9a8542b4deec838c2650f6966863ea2711cc0cc5db51ca14")

variant("pfunit", default=False, description="Enable pFunit testing")

depends_on("pfunit", when="+pfunit")

conflicts("%oneapi", when="@:2.4.1", msg="Requires @2.4.2: for Intel oneAPI")

def cmake_args(self):
args = [self.define("ENABLE_TESTS", self.run_tests)]
return args
Expand Down
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/sfcio/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ class Sfcio(CMakePackage):
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")

version("develop", branch="develop")
version("1.4.2", sha256="bfde52320b836886a766ff8d0d6707b8a533c903b947f8b49250c544aaccaaac")
version("1.4.1", sha256="d9f900cf18ec1a839b4128c069b1336317ffc682086283443354896746b89c59")

variant("pfunit", default=False, description="Add pfunit dependency to enable testing")

depends_on("pfunit", when="+pfunit")

conflicts("%oneapi", when="@:1.4.1", msg="Requires @1.4.2: for Intel oneAPI")

def cmake_args(self):
args = [self.define("ENABLE_TESTS", self.run_tests)]
return args
Expand Down
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/sigio/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ class Sigio(CMakePackage):
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")

version("develop", branch="develop")
version("2.3.3", sha256="2b4a04be3be10f222d0ff47f973f65a03b8b5521dcad8e8866f3bfe4e8dfafab")
version("2.3.2", sha256="333f3cf3a97f97103cbafcafc2ad89b24faa55b1332a98adc1637855e8a5b613")

variant("pfunit", default=False, description="Use pFunit to enable unit testing")

depends_on("pfunit", when="+pfunit")

conflicts("%oneapi", when="@:2.3.2", msg="Requires @2.3.3: for Intel OneAPI")

def cmake_args(self):
args = [self.define("ENABLE_TESTS", self.run_tests)]
return args
Expand Down
Loading