Skip to content

Commit

Permalink
Merge pull request #12262 from boegel/20210224143001_new_pr_PyOpenCL2…
Browse files Browse the repository at this point in the history
…02112

{lib,vis}[intel/2020b] PyOpenCL v2021.1.2, pocl v1.6 w/ Python 3.8.6
  • Loading branch information
branfosj authored Feb 26, 2021
2 parents 76ee1d5 + b8b2c7e commit 0f4f8a2
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
35 changes: 35 additions & 0 deletions easybuild/easyconfigs/p/PyOpenCL/PyOpenCL-2021.1.2-intel-2020b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
easyblock = 'PythonBundle'

name = 'PyOpenCL'
version = '2021.1.2'

homepage = "https://mathema.tician.de/software/pyopencl/"
description = """PyOpenCL lets you access GPUs and other massively parallel compute devices from Python."""

toolchain = {'name': 'intel', 'version': '2020b'}

dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'),
('pocl', '1.6'),
]

use_pip = True
sanity_pip_check = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('appdirs', '1.4.4', {
'checksums': ['7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41'],
}),
('pytools', '2021.1', {
'checksums': ['073ae22a0ae946e2db97164f2eb24a599cd3a51430384aa40859dffd73056c40'],
}),
('pyopencl', version, {
'checksums': ['18871bc80c5a94869521189cf2c04d72c88367a441a9a033f72f66792ac33d29'],
'preinstallopts': "./configure.py --cl-pretend-version=1.2 && ",
}),
]

moduleclass = 'vis'
40 changes: 40 additions & 0 deletions easybuild/easyconfigs/p/pocl/pocl-1.6-iccifort-2020.4.304.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
easyblock = 'CMakeNinja'

name = 'pocl'
version = '1.6'

homepage = 'https://portablecl.org'
description = "Pocl is a portable open source (MIT-licensed) implementation of the OpenCL standard"

toolchain = {'name': 'iccifort', 'version': '2020.4.304'}

source_urls = ['https://github.com/pocl/pocl/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['b0a4c0c056371b6f0db726b88fbb76bbee94948fb2abd4dbc8d958f7c42f766c']

builddependencies = [
('CMake', '3.18.4'),
('Ninja', '1.10.1'),
('pkg-config', '0.29.2'),
]

dependencies = [
('Clang', '11.0.1'),
('hwloc', '2.2.0'),
('libtool', '2.4.6'),
('libxml2', '2.9.10'),
]

separate_build_dir = True

# disable attempt to find an ICD loader, always build libOpenCL.so
configopts = "-DENABLE_ICD=0 -DINSTALL_OPENCL_HEADERS=1 "
# make sure we use the easybuild Clang
configopts += "-DWITH_LLVM_CONFIG=$EBROOTCLANG/bin/llvm-config -DSTATIC_LLVM=ON"

sanity_check_paths = {
'files': ['bin/poclcc', 'lib64/libOpenCL.%s' % SHLIB_EXT],
'dirs': ['include/CL', 'lib64/pkgconfig'],
}

moduleclass = 'lib'

0 comments on commit 0f4f8a2

Please sign in to comment.