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
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 2013-2021 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 import *
# Uses Cmake but does not follow a sane convention
class Dramsim3(Package):
"""DRAMsim3 models the timing paramaters and memory controller behavior
for several DRAM protocols such as DDR3, DDR4, LPDDR3, LPDDR4, GDDR5,
GDDR6, HBM, HMC, STT-MRAM. It is implemented in C++ as an objected
oriented model that includes a parameterized DRAM bank model, DRAM
controllers, command queues and system-level interfaces to interact with
a CPU simulator (GEM5, ZSim) or trace workloads. It is designed to be
accurate, portable and parallel."""
homepage = "https://github.com/umd-memsys/DRAMsim3"
url = "https://github.com/umd-memsys/DRAMsim3/archive/refs/tags/1.0.0.tar.gz"
git = "https://github.com/umd-memsys/DRAMsim3.git"
version('master', branch='master')
version('1.0.0', sha256='064b732256f3bec9b553e00bcbc9a1d82172ec194f2b69c8797f585200b12566')
depends_on('cmake', type='build')
def install(self, spec, prefix):
cmake = which('cmake')
cmake('.')
make()
include_path = prefix + '/include'
mkdir(prefix.bin)
mkdir(prefix.lib)
mkdir(include_path)
install('dramsim3main', prefix.bin)
install('libdramsim3.so', prefix.lib)
install('src/*.h', include_path)
|