Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ if (DRAMPOWER_USE_FETCH_CONTENT)
if (DRAMPOWER_USE_FETCH_CONTENT_INTERNAL)
FetchContent_Declare(
DRAMUtils
URL "https://github.com/tukl-msd/DRAMUtils/archive/refs/tags/v1.10.0.tar.gz"
URL "https://github.com/tukl-msd/DRAMUtils/archive/refs/tags/v1.12.1.tar.gz"
OVERRIDE_FIND_PACKAGE
)

Expand Down
37 changes: 37 additions & 0 deletions src/DRAMPower/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,41 @@ add_library(DRAMPower
DRAMPower/util/ImplicitCommandHandler.cpp
)

target_sources(DRAMPower
PUBLIC
FILE_SET api
TYPE HEADERS
FILES
DRAMPower/Types.h
DRAMPower/Exceptions.h

DRAMPower/dram/dram_base.h

DRAMPower/command/Command.h
DRAMPower/data/energy.h
DRAMPower/data/stats.h

DRAMPower/util/extension_manager.h
DRAMPower/util/extensions.h

DRAMPower/memspec/MemSpec.h

DRAMPower/memspec/MemSpecDDR4.h
DRAMPower/standards/ddr4/DDR4.h

DRAMPower/memspec/MemSpecDDR5.h
DRAMPower/standards/ddr5/DDR5.h

DRAMPower/memspec/MemSpecLPDDR4.h
DRAMPower/standards/lpddr4/LPDDR4.h

DRAMPower/memspec/MemSpecLPDDR5.h
DRAMPower/standards/lpddr5/LPDDR5.h

DRAMPower/util/Serialize.h
DRAMPower/util/Deserialize.h
)

target_include_directories(DRAMPower PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

target_compile_features(DRAMPower PUBLIC cxx_std_17)
Expand All @@ -58,3 +93,5 @@ if(DRAMPOWER_BUILD_TESTS)
endif()

add_library(DRAMPower::DRAMPower ALIAS DRAMPower)

install(TARGETS DRAMPower FILE_SET api)
3 changes: 0 additions & 3 deletions src/DRAMPower/DRAMPower/dram/dram_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define DRAMPOWER_DRAM_DRAM_BASE_H

#include <DRAMPower/command/Command.h>
#include <DRAMPower/command/Pattern.h>

#include <DRAMPower/data/energy.h>
#include <DRAMPower/data/stats.h>
Expand Down Expand Up @@ -38,8 +37,6 @@ class dram_base : public util::Serialize, public util::Deserialize
using commandEnum_t = CommandEnum;
using commandCount_t = std::vector<std::size_t>;
using commandRouter_t = Router<commandEnum_t>;
// PatternHandler
using patternHandler_t = PatternHandler<commandEnum_t>;
// ImplicitCommandHandler
using ImplicitCommandHandler_t = ImplicitCommandHandler;
using implicitCommandInserter_t = typename ImplicitCommandHandler::Inserter_t;
Expand Down