julia: New variant +simd (#3458)

This commit is contained in:
Erik Schnetter 2017-03-16 12:49:37 -04:00 committed by Adam J. Stewart
parent 83fe65e121
commit 2eda08f192

View file

@ -54,6 +54,7 @@ class Julia(Package):
description="Install Julia plotting packages") description="Install Julia plotting packages")
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")
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')
@ -234,4 +235,8 @@ def install(self, spec, prefix):
plot(x->sin(x)*cos(x), linspace(0, 2pi)) plot(x->sin(x)*cos(x), linspace(0, 2pi))
""") """)
# Install SIMD
if "+simd" in spec:
julia("-e", 'Pkg.add("SIMD"); using SIMD')
julia("-e", 'Pkg.status()') julia("-e", 'Pkg.status()')