INFO: Sniper 7.4 has been released

496 views
Skip to first unread message

Trevor E. Carlson

unread,
Apr 17, 2021, 10:40:52 AM4/17/21
to snip...@googlegroups.com
All,

We have recently released Sniper 7.4 [1] with early support for ARM64, automatic Pin download support, and modern Ubuntu / GCC support. We now Require GCC-5 ore greater.

Thanks!
Trevor

Version 7.4 (April 15th, 2021)
  • Add initial ARM64 port
  • Automatically download Pin 3.18-98332
  • Require GCC >= 5, support modern compilers (GCC 9), Ubuntu 20.04

Harsh Vardhan Kumar

unread,
Apr 19, 2021, 8:32:57 AM4/19/21
to Sniper simulator
Hi,

Just wanted to ask by any chance it assumes python2.7 as the default python? I'm trying to make it on a machine running Ubuntu18.04, and keep getting errors like 

Building for x86 (intel64)
  File "./tools/checkdependencies.py", line 49
    print '*** Please install package %s' % package
                                        ^
SyntaxError: Missing parentheses in call to 'print'
Makefile:209: recipe for target 'package_deps' failed

However, I'm not sure whether editing the .tools/checkdependencies.py file to add parenthesis is the right approach here..

Thanks,
Harsh

Trevor E. Carlson

unread,
Apr 19, 2021, 8:42:09 AM4/19/21
to snip...@googlegroups.com, harshva...@gmail.com
Harsh,

Sniper, right now, assumes that the python command points to python2, not python3. As a stop-gap measure, we can convert all Python scripts to look for python2 until they are migrated.

I’m including a patch that should fix the most important scripts for now.

Trevor

sniper7.4-partial-python2.patch

Harsh Vardhan Kumar

unread,
Apr 19, 2021, 8:54:28 AM4/19/21
to Trevor E. Carlson, snip...@googlegroups.com
Thank you! This really helps a lot.

Harsh

-- 
-- 
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snipersim/c05c861c-fa87-4def-81ff-2fd88b7fd2b8n%40googlegroups.com.

ahmad sedigh

unread,
Apr 30, 2021, 1:26:20 PM4/30/21
to snip...@googlegroups.com
Thanks for tremendous support. Is it possible to install and run Sniper Simulator on an arm64 linux machine?

Trevor E. Carlson

unread,
Apr 30, 2021, 8:10:06 PM4/30/21
to snip...@googlegroups.com, ahmad...@gmail.com
Ahmad,

     Anything is possible. :)

     Right now, this isn’t working out of the box. There are a number of x86 specific assumptions that are being made in the simulator right now. As our use case is primarily to run Sniper on a cluster of x86 servers, we aren’t looking into this case in our group. That said, if you’d like to contribute patches to cleanup these x86 assumptions, we’ll be glad to accept them.

Trevor

On May 1, 2021, at 1:26 AM, ahmad sedigh <ahmad...@gmail.com> wrote:



ahmad sedigh

unread,
May 4, 2021, 2:48:05 PM5/4/21
to Sniper simulator
Thank for your immediate notice. Unfortunately i am not that experienced to make patch but your explanation is helpful. 
For the last question: Is it possible to install and run Sniper Simulator on a macOS machine without any patch?

Thanks in advance

Trevor E. Carlson

unread,
May 4, 2021, 8:15:17 PM5/4/21
to snip...@googlegroups.com, ahmad...@gmail.com
Ahmad,

The easiest way forward without patching would be to install a virtual machine and run Sniper in the VM (there are a number of free solutions available).

With respect to running Sniper natively on x86 MacOS, I have not tried that before. There are definitely some assumptions about running Linux that are in Sniper now, but it could be possible to run a Pinball with the MacOS version of Pin (or a SIFT trace) with Sniper, but this will probably require patches to the Sniper binary itself.

Trevor

Explorer

unread,
May 5, 2021, 7:54:55 PM5/5/21
to Sniper simulator
Hi Trevor,

First off, thank you very much for the recent update.

But I noticed how the sniper simulator always results in an 'malloc: corrupted top size' whenever I use the latest mbuild/xed version, and not the mbuild/xed commit version(back in 2018) specified in the makefile.

This recent chat seems to be the same issue

Is it something minor that you can fix?

Thank you in advance.


2021년 5월 5일 수요일 오전 9시 15분 17초 UTC+9에 Trevor E. Carlson님이 작성:

Trevor E. Carlson

unread,
May 5, 2021, 8:48:07 PM5/5/21
to snip...@googlegroups.com, whats4...@gmail.com
Dear Explorer / Whats4Coffee,

Can you try to run Sniper with the --valgrind option to allow for debugging Sniper itself, or maybe look into using a debugging malloc libraries? If there is a memory corruption issue, these methods could help to find it.

Also, do you see this issue with Sniper 7.3 and recent mbuild/xed versions?

Trevor

Explorer

unread,
May 6, 2021, 12:22:27 AM5/6/21
to Sniper simulator
Valgrind suggests invalid write of size 8 in

clear() of line 58 at
common/performance_model/performance_models/micro_op/register_dependencies.cc

It seems that the 
uint64_t producers[280]

Is somehow insufficient when i use the latest xed/mbuild with sniper 7.4

Can you briefly explain what this producers array is for and why it is initially set to 280?

Relaxing the array element count to 1000 seems to work.

2021년 5월 6일 목요일 오전 9시 48분 7초 UTC+9에 Trevor E. Carlson님이 작성:

Trevor E. Carlson

unread,
May 6, 2021, 2:26:32 AM5/6/21
to snip...@googlegroups.com, whats4...@gmail.com
Dear Explorer / Whats4Coffee,

Yep, that makes sense. The newer version of xed might now use more registers, which will cause an overflow in the length of producers by the clear() function. The value was statically set because the array itself was originally defined statically. Instead, I’ve created a patch to dynamically allocate the array based on the size of the number of registers used in the implementation. Can you apply the attached patch and let us know if it works for you for the latest version of xed?

Thanks,
Trevor

sniper7.4-xed-regdep-fix.patch

Harsh Vardhan Kumar

unread,
May 8, 2021, 4:39:40 AM5/8/21
to Sniper simulator
Hi everyone,

This is the error I'm getting during sniper 7.4 install.. Is something wrong with the mbuild/mbuild/arar.py file?

[harsh@airmont sniper]$ make
Building for x86 (intel64)
[DOWNLO] mbuild
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
make: *** [/stor/harsh/sniper/mbuild/mbuild/arar.py] Error 129

I've installed sniper7.4 earlier on a different machine, but this time I'm not sure what's wrong with the sniper/mbuild/mbuild/arar.py file. Can you please let me know what this file does/any solutions to this problem.

Thanks,
Harsh

Harsh Vardhan Kumar

unread,
May 8, 2021, 4:40:43 AM5/8/21
to Sniper simulator
Forgot to add the system configuration:

CentOs 7.0, gcc (user build): 7.3.0
Intel KNL architecture.

Harsh Vardhan Kumar

unread,
May 8, 2021, 4:46:50 AM5/8/21
to snip...@googlegroups.com
I guess the problem may be with the git version of the machine? Let me update git, and see what happens.

--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/Jl1UnnukhDk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snipersim/95947e51-6b30-4b2a-b6c4-226f616e52a5n%40googlegroups.com.

Harsh Vardhan Kumar

unread,
May 8, 2021, 5:04:11 AM5/8/21
to snip...@googlegroups.com
Update:
I did update the git and solved the earlier problem, but now the make is stuck at this error:

[DOWNLO] Python intel64

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make: *** [python_kit/intel64/lib/python2.7/lib-dynload/_sqlite3.so] Error 2


How do I solve this? Seems to a problem with the python packed with sniper?

Trevor E. Carlson

unread,
May 8, 2021, 6:05:21 AM5/8/21
to snip...@googlegroups.com, harshva...@gmail.com
Harsh,

     Unfortunately, we haven’t tested running Sniper on KNL.

Trevor

On May 8, 2021, at 5:04 PM, Harsh Vardhan Kumar <harshva...@gmail.com> wrote:


You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snipersim/CACi6a9fsN_3cJMEqGZ9hgjjiyS8%2BoOVovx2TJEJz74RCLOVkYA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages