intel-oneapi-* conflicts for non linux, x86 (#34441)
This commit is contained in:
parent
d65b9c559a
commit
39f13853ba
17 changed files with 663 additions and 700 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
from llnl.util.filesystem import find_headers, find_libraries, join_path
|
from llnl.util.filesystem import find_headers, find_libraries, join_path
|
||||||
|
|
||||||
|
from spack.directives import conflicts
|
||||||
from spack.util.environment import EnvironmentModifications
|
from spack.util.environment import EnvironmentModifications
|
||||||
from spack.util.executable import Executable
|
from spack.util.executable import Executable
|
||||||
|
|
||||||
|
@ -25,6 +26,16 @@ class IntelOneApiPackage(Package):
|
||||||
# organization (e.g. University/Company).
|
# organization (e.g. University/Company).
|
||||||
redistribute_source = False
|
redistribute_source = False
|
||||||
|
|
||||||
|
for c in [
|
||||||
|
"target=ppc64:",
|
||||||
|
"target=ppc64le:",
|
||||||
|
"target=aarch64:",
|
||||||
|
"platform=darwin:",
|
||||||
|
"platform=cray:",
|
||||||
|
"platform=windows:",
|
||||||
|
]:
|
||||||
|
conflicts(c, msg="This package in only available for x86_64 and Linux")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def update_description(cls):
|
def update_description(cls):
|
||||||
"""Updates oneapi package descriptions with common text."""
|
"""Updates oneapi package descriptions with common text."""
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +24,6 @@ class IntelOneapiAdvisor(IntelOneApiPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/advisor.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/advisor.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.3.1",
|
"2022.3.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18985/l_oneapi_advisor_p_2022.3.1.15323_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18985/l_oneapi_advisor_p_2022.3.1.15323_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +27,6 @@ class IntelOneapiCcl(IntelOneApiLibraryPackage):
|
||||||
|
|
||||||
depends_on("intel-oneapi-mpi")
|
depends_on("intel-oneapi-mpi")
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.1",
|
"2021.7.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19029/l_oneapi_ccl_p_2021.7.1.16948_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19029/l_oneapi_ccl_p_2021.7.1.16948_offline.sh",
|
||||||
|
|
|
@ -3,13 +3,11 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
import spack.compilers
|
import spack.compilers
|
||||||
from spack.build_environment import dso_suffix
|
from spack.build_environment import dso_suffix
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
linux_versions = [
|
versions = [
|
||||||
{
|
{
|
||||||
"version": "2022.2.1",
|
"version": "2022.2.1",
|
||||||
"cpp": {
|
"cpp": {
|
||||||
|
@ -134,15 +132,14 @@ class IntelOneapiCompilers(IntelOneApiPackage):
|
||||||
"%{0}".format(__compiler), msg="intel-oneapi-compilers must be installed with %gcc"
|
"%{0}".format(__compiler), msg="intel-oneapi-compilers must be installed with %gcc"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
for v in versions:
|
||||||
for v in linux_versions:
|
|
||||||
version(v["version"], expand=False, **v["cpp"])
|
version(v["version"], expand=False, **v["cpp"])
|
||||||
resource(
|
resource(
|
||||||
name="fortran-installer",
|
name="fortran-installer",
|
||||||
placement="fortran-installer",
|
placement="fortran-installer",
|
||||||
when="@{0}".format(v["version"]),
|
when="@{0}".format(v["version"]),
|
||||||
expand=False,
|
expand=False,
|
||||||
**v["ftn"]
|
**v["ftn"],
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,7 +26,6 @@ class IntelOneapiDal(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.1",
|
"2021.7.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19032/l_daal_oneapi_p_2021.7.1.16996_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19032/l_daal_oneapi_p_2021.7.1.16996_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,7 +26,6 @@ class IntelOneapiDnn(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onednn.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onednn.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.2.1",
|
"2022.2.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19035/l_onednn_p_2022.2.1.16994_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19035/l_onednn_p_2022.2.1.16994_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +19,6 @@ class IntelOneapiDpct(IntelOneApiPackage):
|
||||||
|
|
||||||
homepage = "https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compatibility-tool.html#gs.2p8km6"
|
homepage = "https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compatibility-tool.html#gs.2p8km6"
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.2.1",
|
"2022.2.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18991/l_dpcpp-ct_p_2022.2.1.14994_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18991/l_dpcpp-ct_p_2022.2.1.14994_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +22,6 @@ class IntelOneapiDpl(IntelOneApiLibraryPackage):
|
||||||
|
|
||||||
homepage = "https://github.com/oneapi-src/oneDPL"
|
homepage = "https://github.com/oneapi-src/oneDPL"
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.2",
|
"2021.7.2",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19046/l_oneDPL_p_2021.7.2.15007_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19046/l_oneDPL_p_2021.7.2.15007_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +24,6 @@ class IntelOneapiInspector(IntelOneApiPackage):
|
||||||
|
|
||||||
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/inspector.html"
|
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/inspector.html"
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.3.1",
|
"2022.3.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19005/l_inspector_oneapi_p_2022.3.1.15318_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19005/l_inspector_oneapi_p_2022.3.1.15318_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +27,6 @@ class IntelOneapiIpp(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/ipp.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/ipp.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.6.2",
|
"2021.6.2",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19007/l_ipp_oneapi_p_2021.6.2.16995_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19007/l_ipp_oneapi_p_2021.6.2.16995_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +28,6 @@ class IntelOneapiIppcp(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/ipp.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/ipp.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.6.2",
|
"2021.6.2",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18999/l_ippcp_oneapi_p_2021.6.2.15006_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18999/l_ippcp_oneapi_p_2021.6.2.15006_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +27,6 @@ class IntelOneapiItac(IntelOneApiPackage):
|
||||||
|
|
||||||
maintainers = ["rscohn2"]
|
maintainers = ["rscohn2"]
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.1",
|
"2021.7.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19024/l_itac_oneapi_p_2021.7.1.15324_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19024/l_itac_oneapi_p_2021.7.1.15324_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +24,6 @@ class IntelOneapiMkl(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.2.1",
|
"2022.2.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19038/l_onemkl_p_2022.2.1.16993_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19038/l_onemkl_p_2022.2.1.16993_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +23,6 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage):
|
||||||
|
|
||||||
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/mpi-library.html"
|
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/mpi-library.html"
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.1",
|
"2021.7.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19010/l_mpi_oneapi_p_2021.7.1.16815_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19010/l_mpi_oneapi_p_2021.7.1.16815_offline.sh",
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +22,6 @@ class IntelOneapiTbb(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onetbb.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onetbb.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2021.7.1",
|
"2021.7.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19041/l_tbb_oneapi_p_2021.7.1.15005_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19041/l_tbb_oneapi_p_2021.7.1.15005_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +25,6 @@ class IntelOneapiVpl(IntelOneApiLibraryPackage):
|
||||||
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onevpl.html"
|
"https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onevpl.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.2.0",
|
"2022.2.0",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18903/l_oneVPL_p_2022.2.0.8703_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/18903/l_oneVPL_p_2022.2.0.8703_offline.sh",
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +25,6 @@ class IntelOneapiVtune(IntelOneApiPackage):
|
||||||
|
|
||||||
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/vtune-profiler.html"
|
homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/vtune-profiler.html"
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
|
||||||
version(
|
version(
|
||||||
"2022.4.1",
|
"2022.4.1",
|
||||||
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19027/l_oneapi_vtune_p_2022.4.1.16919_offline.sh",
|
url="https://registrationcenter-download.intel.com/akdlm/irc_nas/19027/l_oneapi_vtune_p_2022.4.1.16919_offline.sh",
|
||||||
|
|
Loading…
Reference in a new issue