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
217 stars 51 forks source link

Stuck at 93% #13

Closed Ranyang-Zhou closed 7 months ago

Ranyang-Zhou commented 11 months ago

Hi everyone, I followed the instruction and typed 'make -j', the system stucked at 93%

"[ 93%] Building CXX object _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/tag.cpp.o"

Then the system dumped and nothing was installed.

Does anyone can give me an idea? Thanks a lot.

Updated: I ran the program on virtual tools and the version of Ubuntu is 22.04. I extended the memory size and it stucked at 95%.

[ 93%] Building CXX object _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/tag.cpp.o In file included from /usr/include/c++/12/ios:40, from /usr/include/c++/12/istream:38, from /usr/include/c++/12/sstream:38, from /home/merlin/ramulator2/ext/yaml-cpp/src/singledocparser.cpp:3: In static member function ‘static constexpr std::char_traits::char_type std::char_traits::copy(char_type, const char_type, std::size_t)’, inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT, const _CharT, size_type) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ at /usr/include/c++/12/bits/basic_string.h:431:21, inlined from ‘constexpr std::cxx11::basic_string<_CharT, _Traits, _Allocator>& std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT, size_type) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22, inlined from ‘constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>& std::cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ at /usr/include/c++/12/bits/basic_string.h:1655:19, inlined from ‘constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>& std::cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ at /usr/include/c++/12/bits/basic_string.h:823:28, inlined from ‘void YAML::SingleDocParser::HandleNode(YAML::EventHandler&)’ at /home/merlin/ramulator2/ext/yaml-cpp/src/singledocparser.cpp:95:61: /usr/include/c++/12/bits/char_traits.h:435:56: warning: ‘void __builtin_memcpy(void, const void, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets [2, 9223372036854775807] and 1 may overlap up to 9223372036854775813 bytes at offset -3 [-Wrestrict] 435 | return static_cast<char_type>(__builtin_memcpy(s1, s2, __n)); | ~~~~^~~~~

[ 95%] Linking CXX static library libyaml-cpp.a [ 95%] Built target yaml-cpp

ankenman commented 11 months ago

It seems like you're stuck building the YAML library. Can you build it separately? Which CMake and compiler versions are you using?

RichardLuo79 commented 11 months ago

Hi Ranyang,

What compiler toolchain are you using? You could try removing everything under /ext and reconfigure & build the project.

zifeng-yang commented 9 months ago

Hi Ranyang,

I had a similar problem to yours, and I used “make -j2” then make ramulator successfully. Try to add an even number after make j, if your core number more than one.

RichardLuo79 commented 7 months ago

We are able to reproduce this issue on some computers.

It looks like make -j could cause very high CPU utilization during compilation, causing some systems to freeze. To avoid this, you can compile with less number of concurrent jobs (less than the number of cores of your CPU).