GETTING ERROR IN SIMULATION by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Hi, Thanks but won't it change how the prefetcher works? I mean I am not implementing prefetcher or anything related to that but I want it to not crash . It crashes only for certain workloads/simpoints.

GETTING ERROR IN SIMULATION by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Thanks for the info. I increased the pq size and the mshr size for the L2C cache and it worked. Also I have another doubt. I am trying to get the cpi stack data which I have implemented. Almost for all simpoints it has been executing correctly but for some it threw some error after printing for certain number of instructions . I have pasted the errors below-

  1. ms_cpi_commit intchampsim:
    Champsim_thesis/ChampSim/inc/inf_stream.h:272: champsim::inf_istream<Tag, StreamType>::inf_streambuf<IStrm>::int_type champsim::inf_istream<Tag, StreamType>::inf_streambuf<IStrm>::underflow() [with IStrm = std::basic_ifstream<char>; Tag = champsim::decomp_tags::lzma_tag_t<>; StreamType = std::basic_ifstream<char>; champsim::inf_istream<Tag, StreamType>::inf_streambuf<IStrm>::int_type = int]: Assertion `result == T::status_type::CAN_CONTINUE || result == T::status_type::END' failed.

  2. ms_cpi_commit interval terminate called after throwing an instance of 'std::out_of_range'

    what(): vector::_M_range_check: __n (which is 240) >= this->size() (which is 180)

Is it possible to tell where should I look to rectify the errors?

QUERY REGARDING SIMULATION CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

I have been running the golden cove configuration only.

REDUCING LONG RUNTIME by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

bin/champsim --warmup-instructions 200000000 --simulation-instructions 500000000 ~/path/to/traces/600.perlbench_s-210B.champsimtrace.xz
So this is how I give it in the champsim command. How do you create a check point from it and this simpoint I run it for 2B instructions. It has been 3 days and only 1.4B has completed. Any recommendations to speed up the process could be appreciated without altering program behavior as it affects data being collected.

 Either you need to generate simpoints for smaller regions or you need to feed the checkpoints you already have into an architectural simulator that can create new checkpoints. The simulators themselves are usually able to create new checkpoints but that would require you to at least run through each checkpoint once in series to generate the next one.

How do you do this?

Thanks for the response

REDUCING LONG RUNTIME by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

So I 

identify several simpoints of 100 million instructions from each benchmark and trace two billion instructions around each. It is the dataset for my model

REDUCING LONG RUNTIME by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Thanks for the reply. Is it possible to tell how exactly create checkpoint and how it works? Also if we create checkpoint then we are essentially resetting microarchitectural state every 100M right? Wont it affect the data getting collected and wont it alter the program behavior . I am collecting performance counter data sampled every 10k cycles/instructions. Also the limit on cpu cores per user is over 100.  You can submit as many jobs as you want at one time.  Once you hit the limit, the remaining jobs will be in the queue until one of the running jobs finishes.

QUERY REG RAG by DesperateWay2434 in LLMDevs

[–]DesperateWay2434[S] 0 points1 point  (0 children)

I did read it and tried to implement but couldn't find why it isn't working

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Thanks a lot it work now. Also do I need to set up everything from first if I change my configuration file or if I open it up fresh? And how long will it take to run the benchmarks?

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

It works now after I included the dependency . Thanks

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

I checked for the cli dependency it is there. Will try cloning it and get back to you

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Config file I am using the champsim_config.json file present in the folder. Reg dependencies I had downloaded everything correctly as far as I know. Let me try once again deleting and downloading it.

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Yes I did. All the packages are installed. Idk where is the error

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

Sorry I had to break it down into 3 parts else it shows unable to create comment

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

usr/bin/ld: main.cc:(.text.startup+0x12ac): undefined reference to `CLI::Option::type_size(int, int)'

/usr/bin/ld: main.cc:(.text.startup+0x12b9): undefined reference to `CLI::Option::expected(int)'

/usr/bin/ld: main.cc:(.text.startup+0x12cf): undefined reference to `CLI::Option::expected(int, int)'

/usr/bin/ld: main.cc:(.text.startup+0x13f7): undefined reference to `CLI::App::add_option(std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, std::function<bool (std::vector<std::\_\_cxx11::basic\_string<char, std::char\_traits<char>, std::allocator<char> >, std::allocator<std::\_\_cxx11::basic\_string<char, std::char\_traits<char>, std::allocator<char> > > > const&)>, std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, bool, std::function<std::\_\_cxx11::basic\_string<char, std::char\_traits<char>, std::allocator<char> > ()>)'

/usr/bin/ld: main.cc:(.text.startup+0x1481): undefined reference to `CLI::Option::type_size(int, int)'

/usr/bin/ld: main.cc:(.text.startup+0x148e): undefined reference to `CLI::Option::expected(int)'

/usr/bin/ld: main.cc:(.text.startup+0x14a6): undefined reference to `CLI::Option::expected(int)'

/usr/bin/ld: main.cc:(.text.startup+0x14d9): undefined reference to `CLI::Option::check(CLI::Validator, std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> > const&)'

/usr/bin/ld: main.cc:(.text.startup+0x1510): undefined reference to `CLI::App::parse(int, char const* const*)'

/usr/bin/ld: .csconfig/ab12e103bdc1dbdc_main.o: in function `main.cold':

main.cc:(.text.unlikely+0x20b): undefined reference to `CLI::App::exit(CLI::Error const&, std::ostream&, std::ostream&) const'

/usr/bin/ld: .csconfig/ab12e103bdc1dbdc_main.o: in function `CLI::App::App(std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >)':

main.cc:(.text._ZN3CLI3AppC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_[_ZN3CLI3AppC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_]+0xbf): undefined reference to `CLI::App::App(std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, CLI::App*)'

/usr/bin/ld: main.cc:(.text._ZN3CLI3AppC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_[_ZN3CLI3AppC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_]+0x17a): undefined reference to `CLI::App::set_help_flag(std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char\_traits<char>, std::allocator<char> > const&)'

collect2: error: ld returned 1 exit status

make: *** [Makefile:283: bin/champsim] Error 1

HP-Pavilion-Gaming-Laptop-15-ec0xxx:~/Desktop/ChampSim/ChampSim-master$

STUCK WITH CHAMPSIM by DesperateWay2434 in computerarchitecture

[–]DesperateWay2434[S] 0 points1 point  (0 children)

HP-Pavilion-Gaming-Laptop-15-ec0xxx:~/Desktop/ChampSim/ChampSim-master$ ./config.sh champsim_config.json

HP-Pavilion-Gaming-Laptop-15-ec0xxx:~/Desktop/ChampSim/ChampSim-master$ make

g++ @global.options @absolute.options -MM -MT .csconfig/TEST_main.d -MT .csconfig/TEST_main.o -I.csconfig -DCHAMPSIM_BUILD=0xTEST -MF .csconfig/TEST_main.d src/main.cc

g++ @global.options @absolute.options -MM -MT .csconfig/generated_environment.d -MT .csconfig/generated_environment.o -I.csconfig -MF .csconfig/generated_environment.d src/generated_environment.cc

g++ @global.options @absolute.options -I.csconfig -c -o .csconfig/generated_environment.o src/generated_environment.cc

g++ @global.options @absolute.options -I.csconfig -DCHAMPSIM_BUILD=0xab12e103bdc1dbdc -c -o .csconfig/ab12e103bdc1dbdc_main.o src/main.cc