CMU-SAFARI / ramulator2

Ramulator 2.0 is a modern, modular, extensible, and fast cycle-accurate DRAM simulator. It provides support for agile implementation and evaluation of new memory system designs (e.g., new DRAM standards, emerging RowHammer mitigation techniques). Described in our paper https://people.inf.ethz.ch/omutlu/pub/Ramulator2_arxiv23.pdf
https://arxiv.org/abs/2308.11030
MIT License
251 stars 62 forks source link

uint not a type #24

Closed jarrett-m closed 10 months ago

jarrett-m commented 1 year ago

Expected Behavior

Compile using cmake and g++13

Current Behavior

Failed to compile; error given:

ramulator2/src/frontend/frontend.h:21:5: error: 'uint' does not name a type; did you mean 'int'?
   21 |     uint m_clock_ratio = 1;
ramulator2/src/memory_system/memory_system.h:22:5: error: 'uint' does not name a type; did you mean 'int'?
   22 |     uint m_clock_ratio = 1;

Possible Solution

Replacing 'uint' with unsigned int fixed the issue.

Steps to Reproduce

Clone and run... $ mkdir build $ cd build $ cmake .. $ make -j

Environment

M2 Macbook Air macOS Sonoma 14.1.1 gcc 13.2.0 Target: aarch64-apple-darwin22

RichardLuo79 commented 10 months ago

Hi,

I have added the definition for uint to base/base.h

#ifndef uint
#define uint unsigned int
#endif