summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/dramsim2/package.py
blob: 301a58569a47241f3a86598100c138d42a28eacb (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
27
28
29
30
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Dramsim2(MakefilePackage):
    """
    DRAMsim is a hardware-validated, cycle-accurate
    C based simulator for DRAM devices such as DDR3
    """

    homepage = "https://github.com/umd-memsys/DRAMSim2"
    git = "https://github.com/umd-memsys/DRAMSim2"
    url = "https://github.com/dramninjasUMD/DRAMSim2/archive/v2.2.2.tar.gz"

    maintainers("jjwilke")

    version("2.2.2", sha256="96d0257eafb41e38ffa4f13e3ef3759567bdde7fa3329403f324abd0ddf8d015")

    def build(self, spec, prefix):
        if spec.satisfies("platform=darwin"):
            make("libdramsim.dylib")
        else:
            make("libdramsim.so")

    def install(self, spec, prefix):
        install_tree(".", prefix)