summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ipp/package.py
blob: 2bd931d5bd8ba67703012e74febfbc206ab19b2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from spack import *
import os

from spack.pkg.builtin.intel import IntelInstaller


class Ipp(IntelInstaller):
    """Intel Integrated Performance Primitives.

    Note: You will have to add the download file to a
    mirror so that Spack can find it. For instructions on how to set up a
    mirror, see http://software.llnl.gov/spack/mirrors.html"""

    homepage = "https://software.intel.com/en-us/intel-ipp"

    version('9.0.3.210', '0e1520dd3de7f811a6ef6ebc7aa429a3',
            url="file://%s/l_ipp_9.0.3.210.tgz" % os.getcwd())

    def install(self, spec, prefix):

        self.intel_prefix = os.path.join(prefix, "pkg")
        IntelInstaller.install(self, spec, prefix)

        ipp_dir = os.path.join(self.intel_prefix, "ipp")
        for f in os.listdir(ipp_dir):
            os.symlink(os.path.join(ipp_dir, f), os.path.join(self.prefix, f))