Git Product home page Git Product logo

axle-zsim-nvmain's People

Contributors

miconof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axle-zsim-nvmain's Issues

How to debug?

I have compiled axle-zsim-nvmain using
scons -j4 --d
But it seems I cannot set breakpoint for nvmain in gdb. Why is that?

Fail with accessing address 0x00

I tried to run spec06 on zsim and they works just fine. But when I turn to use axle-zsim-nvmain. After running for a while the program output is as follows:

defaultMemory.channel0.FRFCFS-WQF capacity is 4096 MB.
Creating 4 command queues.
max system bytes = 1073740799
system bytes = 1073740799
in use bytes = 23325440
[H] Attached to global heap
spec_init
Loading Input Data
Duplicating 51763200 bytes
Duplicating 103526400 bytes
Duplicating 2662400 bytes
Input data 209715200 bytes in length
Compressing Input Data, level 5
[S 0] [1] Internal exception detected:
[S 0] [1] Code: 1
[S 0] [1] Address: 0x7ffff682ff81
[S 0] [1] Description: Exception Code: ACCESS_INVALID_ADDRESS. Exception Address = 0x7ffff682ff81. Access Type: UNKNOWN. Access Address = 0x000000000
[S 0] [1] Caused by invalid access to address 0x0
[S 0] [1] Backtrace (25/40 max frames)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/zsim.cpp:1402 / InternalExceptionHandler
[S 0] [1] dwarf_form.c:0 / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO_, LEVEL_VM::CONTEXT_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x3077f3b2]
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x30785040]
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x3082696a]
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x30851d7c]
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/timing_event.h:173 / TimingEvent::release()
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain_mem_ctrl.cpp:439 / NVMainMemory::RequestComplete(NVM::NVMainRequest
)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/NVMObject.cpp:206 / NVM::NVMObject_hook::RequestComplete(NVM::NVMainRequest
)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/NVM/nvmain.cpp:495 / NVM::NVMain::RequestComplete(NVM::NVMainRequest
)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/NVMObject.cpp:206 / NVM::NVMObject_hook::RequestComplete(NVM::NVMainRequest_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/MemoryController.cpp:351 / NVM::MemoryController::RequestComplete(NVM::NVMainRequest_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/MemControl/FRFCFS-WQF/FRFCFS-WQF.cpp:331 / NVM::FRFCFS_WQF::RequestComplete(NVM::NVMainRequest_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/NVMObject.cpp:206 / NVM::NVMObject_hook::RequestComplete(NVM::NVMainRequest_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/EventQueue.cpp:384 / NVM::EventQueue::Process()
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/EventQueue.cpp:338 / NVM::EventQueue::Loop(unsigned long)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain/src/EventQueue.cpp:525 / NVM::GlobalEventQueue::Cycle(unsigned long)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain_mem_ctrl.cpp:280 / NVMainMemory::tick(unsigned long)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/nvmain_mem_ctrl.cpp:96 / SchedEventNVMain::simulate(unsigned long)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/timing_event.h:163 / TimingEvent::run(unsigned long)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/contention_sim.cpp:309 / ContentionSim::simulatePhaseThread(unsigned int)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/contention_sim.cpp:282 / ContentionSim::simThreadLoop(unsigned int)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/build/debug/contention_sim.cpp:59 / ContentionSim::SimThreadTrampoline(void_)
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(_ZN8LEVEL_VM17VM_THREAD_DB_UNIX13THREAD_RUNNER9RunThreadEPN11OS_SERVICES7ITHREADE+0x291) [0x30790671]
[S 0] [1] /home/zhuguoliang/project/git_proj/axle-zsim-nvmain/pin_kit/intel64/bin/pinbin(_ZN11OS_SERVICES6THREAD12RootFunctionEPv+0x26) [0x30851376]
C:Tool (or Pin) caused signal 11 at PC 0x7ffff682ff81
[H] Child 4475 done
[H] Panic on build/debug/zsim_harness.cpp:123: Child 4475 (idx 0) exit was anomalous, killing simulation

It seems that our simulator has accessed some address with null pointer. How can I find where it is?
Can anybody give me a heads up?

Update ZSim version?

This project does not use the latest version of ZSim.

For example, ZSim has officially supported Pin 2.14, while this project does not.

Therefore, I wonder if NVMain is compatible with the latest ZSim.

How to debug ZSIM-NVMAIN?

I tried two methods. Set attachDebugger to true. However no gdb window was launched in this case. Then I compiled zsim-nvmain as scons -d. Launched gdb debugger. However, it is allowing to put breakpoints in only very few files.

Cfg file manual needed

Hi, github community!

I have been working on axle-zsim-nvmain project and I found that some of my scripts works fine with original cfg file from zsim such as het.cfg.
But the sad thing is when I use my scripts in AXLE-XXXX.cfg file. It always returns child panic with exit code 112.

Can anybody fix this?

Any documentation?

Can you provide any documentation to learn this simulator (zSim)? It would be very helpful... Thank you

Compile error when using zsim-nvmain

when I compile zsim-nvmain , error listed below appearanced:

/usr/bin/ld: /usr/lib/librt.a(clock_gettime.o): relocation R_X86_64_32 against `__pthread_clock_gettime' can not be used when making a shared object; recompile with -fPIC

I tried many methods to solve this problem , but failed finally. Can anyone tell me what happend ? The environment was not ready ? Or librt.a had something wrong?

How to use mcpat.py?

Dear everyone,
I noticed a file named "mcpat.py" in the misc file. Has anybody used it? If yes could you please show me how to use that?
Thank you very much!

run SPEC CPU2k6 failed with AXLE-sandy-pcm.cfg

Hi all,

I run with SPEC CPU2k6 to evalute my PCM relead proposal. When AXLE-sandy-pcm.cfg is fed to zsim, the simulation crashed with the following backtrace dump,

[S 0] [1] Internal exception detected:
[S 0] [1] Code: 1
[S 0] [1] Address: 0x7ffff6862451
[S 0] [1] Description: Exception Code: ACCESS_INVALID_ADDRESS. Exception Address = 0x7ffff6862451. Access Type: UNKNOWN. Access Address = 0x000000000
[S 0] [1] Caused by invalid access to address 0x0
[S 0] [1] Backtrace (18/40 max frames)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/zsim.cpp:1417 / InternalExceptionHandler
[S 0] [1] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO_, LEVEL_VM::CONTEXT_)
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x462) [0x3077e002]
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x200) [0x30783c90]
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0x9a) [0x308245ca]
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x3084fa3c]
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/timing_event.h:173 / TimingEvent::release()
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain-src/NVM/nvmain.cpp:495 / NVM::NVMain::RequestComplete(NVM::NVMainRequest*)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain-src/src/EventQueue.cpp:383 / NVM::EventQueue::Process()
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain-src/src/EventQueue.cpp:338 / NVM::EventQueue::Loop(unsigned long)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain-src/src/EventQueue.cpp:528 / NVM::GlobalEventQueue::Cycle(unsigned long)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain_mem_ctrl.cpp:288 / NVMainMemory::tick(unsigned long)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/nvmain_mem_ctrl.cpp:98 / SchedEventNVMain::simulate(unsigned long)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/timing_event.h:163 / TimingEvent::run(unsigned long)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/contention_sim.cpp:309 / ContentionSim::simulatePhaseThread(unsigned int)
[S 0] [1] /home/hanfeng/Workspace/ZSIM/zsim-src/build/opt/contention_sim.cpp:282 / ContentionSim::simThreadLoop(unsigned int)
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(_ZN8LEVEL_VM17VM_THREAD_DB_UNIX13THREAD_RUNNER9RunThreadEPN11OS_SERVICES7ITHREADE+0x291) [0x3078d8b1]
[S 0] [1] /home/hanfeng/Workspace/tools/pin/intel64/bin/pinbin(_ZN11OS_SERVICES6THREAD12RootFunctionEPv+0x26) [0x3084f036]
C:Tool (or Pin) caused signal 11 at PC 0x7ffff6862451
[H] Child 30249 done
[H] Panic on build/opt/zsim_harness.cpp:123: Child 30249 (idx 0) exit was anomalous, killing simulation

The zsim log also reports the failure as follows.

[S 0] Failed assertion on build/opt/timing_event.h:173: state should be 3, 15988976 instead

However, when AXLE-sandy-dram.cfg is fed to zsim, the simulation can pass without any errors.

May I have any suggestions to handle this problem?

Benchmark input/output redirection issues

Hello github community!
I have configured axle-zsim-nvmain to work on my laptop.
And when I run command:
./build/opt/zsim tests/AXLE-sandy-nvm.cfg
Everything seems to be working smoothly.
After I change the command in AXLE-sandy-nvm.cfg to
command = “sh /path/to/my/benchmark/script.sh”
The problem shows up saying :Child issued a panic, killing simulation.

Is it because the sh has forked another thread ?
How should I solve this?
BTW: in the script.sh, I only cd to the benchmark dir and then execute the benchmark.

Enabling Prefetcher on NVMAIN resulting in error

When I enable the inbuilt prefetcher of NVMAIN, my simulation fails with the following error.

[S 0] [1] Internal exception detected:
[S 0] [1] Code: 1
[S 0] [1] Address: 0x7ffff63d2179
[S 0] [1] Description: Exception Code: ACCESS_INVALID_ADDRESS. Exception Address = 0x7ffff63d2179. Access Type: UNKNOWN. Access Address = 0x000000008
[S 0] [1] Caused by invalid access to address 0x8
[S 0] [1] Backtrace (15/40 max frames)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/zsim.cpp:1403 / InternalExceptionHandler
[S 0] [1] :? / LEVEL_PINCLIENT::IEH_CALLBACKS::NotifyInternalException(unsigned int, LEVEL_BASE::EXCEPTION_INFO*, LEVEL_VM::CONTEXT*)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL19InternalHandlerSyncEiPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTEPPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPj+0x444) [0x3043a9454]
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(_ZN8LEVEL_VM12SIGNALS_IMPL20HandlePhysicalSignalEPN7BARECRT8SIGXINFOEPN5PINVM11ISIGCONTEXTE+0x124) [0x3043aa1f4]
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(_ZN5PINVM28SIGNAL_DETAILS_LINUX_INTEL6415InternalHandlerEiPN7BARECRT8SIGXINFOEPv+0xe8) [0x304438c88]
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(BARECRT_SigReturnRt+0) [0x30446603c]
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/nvmain/src/NVMObject.cpp:60 / NVM::NVMObject_hook::IssueCommand(NVM::NVMainRequest*)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/nvmain/NVM/nvmain.cpp:274 / NVM::NVMain::GeneratePrefetches(NVM::NVMainRequest*, std::vector<NVM::NVMAddress, std::allocatorNVM::NVMAddress >&)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/nvmain/NVM/nvmain.cpp:310 / NVM::NVMain::IssuePrefetch(NVM::NVMainRequest*)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/nvmain/NVM/nvmain.cpp:402 / NVM::NVMain::IssueCommand(NVM::NVMainRequest*)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/nvmain_mem_ctrl.cpp:379 / NVMainMemory::enqueue(NVMainAccEvent*, unsigned long)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/timing_event.h:163 / TimingEvent::run(unsigned long)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/build/opt/contention_sim.cpp:282 / ContentionSim::simThreadLoop(unsigned int)
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(_ZN8LEVEL_VM17VM_THREAD_DB_UNIX13THREAD_RUNNER9RunThreadEPN11OS_SERVICES7ITHREADE+0x289) [0x3043b3239]
[S 0] [1] /home/subisha.v/Simulator/axle-zsim-nvmain-master/dependencies/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin(_ZN11OS_SERVICES6THREAD12RootFunctionEPv+0x26) [0x304465636]
[S 0] [1] Internal exception detected:
[S 0] [1] Code: 6
[S 0] [1] Address: 0x7ffff6e40dfa
[S 0] [1] Description: Exception Code: PRIVILEGED_INS. Exception Address = 0x7ffff6e40dfa
A: dependencies/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin/gen/exception.PH: GetFaultyAccessAddress: 242: assertion failed: IsAccessFault()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.