<pre>SyntaxError: invalid syntax </pre> for run_hw_trace.py

13 views
Skip to first unread message

Alavani Gargi Kabirdas

<p20160008@goa.bits-pilani.ac.in>
unread,
Nov 26, 2022, 11:20:29 PM11/26/22
to accel-sim
Hi,

I am facing a syntax error while executing the following command :

$ACCELSIM_ROOT/../util/tracer_nvbit/run_hw_trace.py -B rodinia-3.1_validation,parboil_validation,cuda_samples_11.0_validation -D 0
  File "/home/gargi/Downloads/accel-sim-framework-release-accelwattch(1)/accel-sim-framework-release-accelwattch/gpu-simulator/../util/tracer_nvbit/run_hw_trace.py", line 101
    print "Running {0}".format(exe)
          ^
SyntaxError: invalid syntax


Rodrigo Huerta Gañan

<rodrigo.huerta.ganan@upc.edu>
unread,
Nov 29, 2022, 4:16:32 AM11/29/22
to accel-sim
Try to run with python2. Add #!/usr/bin/env python2 in the top of the file. However, I think the latest commits changed that code to python3.
Reply all
Reply to author
Forward
0 new messages