Capabilities of Sniper

7 views
Skip to first unread message

Sébastien Rumley

unread,
Aug 7, 2025, 3:15:30 PMAug 7
to Sniper simulator
Dear list,

I am looking for a tool able to simulate a CPU (+RAM) executing the following (synthetic) application: a master thread spawns worker thread at random times. Worker threads execute a sequential, deterministic function like a matrix multiplication or a hash function calculation.

The experiment would be designed such that if there are N cores, at some times there would be more than N workers.

I am interested in observing how physical resources are being shared across threads, how Simultaneous multithreading issues instructions across threads, etc.

I would also be interested in obtaining a "trace" of a single worker thread, as reference.

Would Sniper be adequate for running such experiments ?

Regards,

Sébastien

Abhishek kumar

unread,
Aug 7, 2025, 5:03:12 PMAug 7
to Sniper simulator
I have tried multithreeading execution such as the one you explained. To be precise I tried running LLM binary where are different operations multiple threads are spawned and they do work distributing among each other. I haven't been successful. It works but it gets stuck in deadlock multiple times and some times if the output finishes it has different no of instructions executed which varies a lot. Small variation of total instructions executed by all threads would have been fine however the large variations doesn't seem correct. I did probe and I realised the code of pin script isn't quite thread safe. Although they have made thread safe but I did find some issues. Overall i couldn't get what I was trying to. You could simply write a basic matrix multiplication using OpenMP and try running that binary and see the results for multiple iteration varies significantly not by small margin and sometimes the deadlock situation coming where program gets stuck n it never finished because some threads unsafe code gets in deadlock in pin script file inder SIFT/ folder . 
Reply all
Reply to author
Forward
0 new messages