Add MKL variant to Julia (#12602)
This PR provides an option to build Julia with Intel MKL.
This commit is contained in:
parent
6ec5cf4bf0
commit
1a8ece4504
@ -39,6 +39,7 @@ class Julia(Package):
|
|||||||
variant("python", default=False,
|
variant("python", default=False,
|
||||||
description="Install Julia Python package")
|
description="Install Julia Python package")
|
||||||
variant("simd", default=False, description="Install Julia SIMD package")
|
variant("simd", default=False, description="Install Julia SIMD package")
|
||||||
|
variant("mkl", default=False, description="Use Intel MKL")
|
||||||
|
|
||||||
patch('gc.patch', when='@0.4:0.4.5')
|
patch('gc.patch', when='@0.4:0.4.5')
|
||||||
patch('openblas.patch', when='@0.4:0.4.5')
|
patch('openblas.patch', when='@0.4:0.4.5')
|
||||||
@ -61,6 +62,7 @@ class Julia(Package):
|
|||||||
depends_on("git", when='@release-0.4')
|
depends_on("git", when='@release-0.4')
|
||||||
depends_on("openssl")
|
depends_on("openssl")
|
||||||
depends_on("python@2.7:2.8")
|
depends_on("python@2.7:2.8")
|
||||||
|
depends_on("mkl", when='+mkl')
|
||||||
|
|
||||||
# Run-time dependencies:
|
# Run-time dependencies:
|
||||||
# depends_on("arpack")
|
# depends_on("arpack")
|
||||||
@ -135,6 +137,9 @@ def install(self, spec, prefix):
|
|||||||
options += [
|
options += [
|
||||||
'JULIA_CPU_TARGET=generic',
|
'JULIA_CPU_TARGET=generic',
|
||||||
'MARCH=armv8-a+crc']
|
'MARCH=armv8-a+crc']
|
||||||
|
if '+mkl' in spec:
|
||||||
|
options += [
|
||||||
|
'USE_INTEL_MKL=1']
|
||||||
with open('Make.user', 'w') as f:
|
with open('Make.user', 'w') as f:
|
||||||
f.write('\n'.join(options) + '\n')
|
f.write('\n'.join(options) + '\n')
|
||||||
make()
|
make()
|
||||||
|
Loading…
Reference in New Issue
Block a user