1) in assemble_loop:Is this correct and if not, what is the correct answer
?starting address of jitted region: looppos + rawstartsize of jitted region::
size_excluding_failure_stuff - looppos
2) in assemble_bridge, Is this correct and if not, what is the correct answer
?starting address of jitt
1) Is it a true statement to say that the looptoken.number between an original
loop and a bridge stays the same ? 2) Is it a true statement to say "loopname"
as passed into assemble_loop will apply to a bridge if indeed statement 1)above
is true - if a loop and bridge share the same original loo
op up in vmprof profile.py.
Any suggestions ?
Shubha
> On Jan 8, 2017, at 9:01 AM, Armin Rigo wrote:
>
> Hi Shubha,
>
> On 8 January 2017 at 16:41, Shubha Ramani via pypy-dev
> wrote:
>> I just downloaded the pypy code. Please inspect the following log and search
>&
I just downloaded the pypy code. Please inspect the following log and search
for 'code object'. This is the
exact data which vtune needs ! How did this happen ? Was it there all along ?
Did someone justadd this (perhaps Armin himself) ? The signature for
'assemble_loop' has not changed between
I'm thinking that jitlog.MARK_TRACE_OPT is the only marker I need to keep track
of
as I'm dumping pycode (overloading execute_frame as vmprof does).
When I see a MARK_TRACE_OPT, I just walk backward to find the closest pycode
dump.
This will give me the actual source code lines that was JITTED.
I see space.call_function() but how exactly do we end up in the rpython
directory of code ?___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Indeed.
Shubha
On Wednesday, January 4, 2017 2:00 PM, Armin Rigo
wrote:
Hi Shubha,
Standard Python answer: add this line in the function:
import pdb; pdb.set_trace()
Then run the tests (pytest.py rpython/jit/codewriter/).
A bientôt,
Armin.
_
I figured this out - thanks to something Manuel Jacob said -"You should be able
to fix the error by moving the line to the module toplevel."
You can add a global variable to a module top level easily and pass it along to
the backend.
Thank You Manuel !
Shubha
On Monday, January 2, 2017 6:48
at in his vtune
branch.
Shubha
On Monday, January 2, 2017 6:45 AM, Shubha Ramani via pypy-dev
wrote:
Thank you Manuel.
Sent from Shubha Ramani's iPhone 7
> On Jan 1, 2017, at 8:06 PM, Manuel Jacob wrote:
>
> Hi Shubha,
>
> I forgot to mention that the code line
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Not "all the way to the Background. Typo. Meant to say all the way to the
backend".
How do I pass pyframe pycode bits to the backend at runtime ?
Sent from Shubha Ramani's iPhone 7
> On Jan 2, 2017, at 6:47 AM, Shubha Ramani wrote:
>
> I've really been struggling with this. For instance pycod
I've really been struggling with this. For instance pycode from pyframe. I
would like to pass along a data structure containing pycode tidbits all the way
to the background but cannot figure out a way.
Any clues would be appreciated !
Shubha
___
pypy-
;> In RPython, you can convert a function to a low-level function pointer with
>>> llhelper() from rpython.rtyper.annlowlevel. You can call it like this:
>>> fptr_type = lltype.Ptr(lltype.FuncType([], lltype.Void))
>>> fptr = llhelper(fptr_type, func)
>>> Depe
Trying to pass a dummy variable called "shubha" to the X86 Assembler. Made the
following changes to code, am getting the following errors. Please
help:rpython/jit/backend/llsupport/llmodel.py
class AbstractLLCPU(AbstractCPU): def __init__(self, rtyper, stats, opts,
shubha, translate_support_cod
ype = lltype.Ptr(lltype.FuncType([], lltype.Void))
> fptr = llhelper(fptr_type, func)
>
> Depending on what you want to do with the function address exactly, you might
> need to cast the function pointer to a RPython "Address" with
> cast_ptr_to_adr() from rpython.rtyper.llt
actly, you might
> need to cast the function pointer to a RPython "Address" with
> cast_ptr_to_adr() from rpython.rtyper.lltypesystem.llmemory.
>
>> On 2016-12-30 14:42, Shubha Ramani via pypy-dev wrote:
>> It's not a bad idea for me. I'm hooking up to a tool ma
p://kirbyfan64.github.io/
>
>> On Dec 29, 2016 1:19 PM, "Shubha Ramani via pypy-dev"
>> wrote:
>>
>> What can I use then ? I need the address of the function ?
>>
>> [translation:ERROR] Exception: cannot use id() in RPython; see
>> objec
Though I'm still curious about how to get debug builds so far the core dumps
I've experienced are prettyeasy to root-cause. Attaching gdb seems overkill.
On Thursday, December 29, 2016 9:14 AM, Shubha Ramani
wrote:
How do I build with debug symbols (i.e. -g) so that I can inspect core
What can I use then ? I need the address of the function ?
[translation:ERROR] Exception: cannot use id() in RPython; see
objectmodel.compute_xxx()Processing block: block@19 is a in
(pypy.module._vtune.interp_vtune:28)_get_full_name containing the following
operations: buf_0 = simple_
How do I build with debug symbols (i.e. -g) so that I can inspect core dumps
when you get a traceback like this ?Do you always recompile with pypy
../../rpython/bin/rpython --opt=jit ?
RPython traceback: File "implement_11.c", line 5310, in fastfunc_enable_1
File "rpython_rlib_rvtune.c", line
Same error with this version :def open_vtune_file(self):
from rpython.rlib.streamio import
open_file_as_stream self.vtune_file =
open_file_as_stream('.\vtune.log', 'w')
On Thursday, December 2
Why ? I cannot seem to open a file anywhere within assembly.py. When I use
"NOT_RPYTHON"in method open_file then I cannot use it in functions like
assemble_loop because it's NOT_RPYTHON.
Happens when I call the following function in x86/assembly.py:
def open_file(self):
Sorry that code snippet came out screwed up:
_get_code = lambda frame, w_inputvalue, operr: frame.pycode
_decorator = rvmprof.vmprof_execute_code("pypy", _get_code, W_Root)
my_execute_frame = _decorator(PyFrame.execute_frame)
Is using /opt/pypy_latest/rpython/rlib/rvmprof/ traceback.py (with a callback
option, as shown in test/test_traceback.py)a good idea - to be called within
x86/assembler.py ? That's the direction I'm heading unless there are other
suggestions.
eating humble pie Shubha
On Tuesday, December 2
First of all let me say that all I've done for the past several days is read,
read read.I have read the rpython and pypy documentation. I've read
bolz-tracing-jit-final.pdf as well as antocuni-phd-thesis.pdf. I also feel that
I comprehended most of what I read.
In studying the vmprof implementat
6 at 20:32, Shubha Ramani via pypy-dev
wrote:
I have studied rpython/jit/backend/llsupport/src/codemap.c.
I am nt finding the API which returns the Python stack in codemap.c.
There is no such knowledge as the "Python stack" inside the JIT. Keep
in mind that the JIT is generic. Y
ml
Thanks Shubharamani
> On Dec 18, 2016, at 2:33 AM, Armin Rigo wrote:
>
> Hi Shubha,
>
> On 17 December 2016 at 20:32, Shubha Ramani via pypy-dev
> wrote:
>> I have studied rpython/jit/backend/llsupport/src/codemap.c.
>> I am nt finding the API which returns the Pyt
Never mind.
Easily solved by:pip install backports.ssl-match-hostname
AND pip install backports.shutil_which
On Saturday, December 17, 2016 3:52 PM, Shubha Ramani via pypy-dev
wrote:
shubha@shubha-Z170X-UD5:/opt/vtune_pypy$ pypy-v -m vmprof
fib.py/usr/bin/pypy-v: No module named
shubha@shubha-Z170X-UD5:/opt/vtune_pypy$ pypy-v -m vmprof
fib.py/usr/bin/pypy-v: No module named backports; 'vmprof' is a package and
cannot be directly executed
However when I do python -m vmprof fib.py it works.
Based on a quick Google search there doesn't seem to be a package called
'backpor
I have studied rpython/jit/backend/llsupport/src/codemap.c.I am nt finding the
API which returns the Python stack in codemap.c.
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Armin I don't blame you for being upset with me. I'm sorry...I will lay low and
dive deep into the pointers you've just nowmentioned in this email. I'm sorry,
I didn't know about the August Vtune thread.Please accept my apologies.
Shubha
On Monday, December 12, 2016 11:11 AM, Armin Rigo
w
To do this:
> On Dec 9, 2016, at 9:34 AM, Shubha Ramani via pypy-dev
> wrote:
>
> Armin you articulated exactly what I want. Please tell me the right place to
> look then ?
>
> Shubha
>
> Sent from Shubha Ramani's iPhone 7
>
>> On Dec 9, 2016,
A search on "debug_start" in the pypy source code base reveals many other log
options.So how do you include multiple in one file ?
On Sunday, December 11, 2016 7:33 PM, Shubha Ramani
wrote:
I can do export PYPYLOG=jit-backend-dump:shubha.log and I can do export
PYPYLOG=ji
I can do export PYPYLOG=jit-backend-dump:shubha.log and I can do export
PYPYLOG=jit-backend-addr:shubha.logwhile running the attached file which
computes Fibonacci numbers. I run the script just by pypy fib.py and I did
addthe requisite jitdriver and merge_point stuff.
My question is, is there
a Ramani
wrote:
I assume it's backend/x86? Why is what I'm doing a waste of time though ?
Sent from Shubha Ramani's iPhone 7
> On Dec 9, 2016, at 9:34 AM, Shubha Ramani via pypy-dev
> wrote:
>
> Armin you articulated exactly what I want. Please tell me the ri
I assume it's backend/x86? Why is what I'm doing a waste of time though ?
Sent from Shubha Ramani's iPhone 7
> On Dec 9, 2016, at 9:34 AM, Shubha Ramani via pypy-dev
> wrote:
>
> Armin you articulated exactly what I want. Please tell me the right place to
> look
Armin you articulated exactly what I want. Please tell me the right place to
look then ?
Shubha
Sent from Shubha Ramani's iPhone 7
> On Dec 9, 2016, at 8:29 AM, Armin Rigo wrote:
>
> Hi,
>
> On 9 December 2016 at 15:55, Shubha Ramani via pypy-dev
> wrote:
>>
IT compiler. Without a jitdriver, it
will not be able to JIT compile any code, thus you cannot obtain that
file. If you do not have a rpython program, you cannot really generate
the jitlog easily."
On Friday, December 9, 2016 6:50 AM, Yury V. Zaytsev
wrote:
On Fri, 9 Dec 201
Hi Yury. You're right that is close to what I want. Just reading that link, it
seems that no specialinstrumentation needs to be added to the Python code in
order for any old python code out in the wild tobe able to dump JIT compiler
logs. JIT Compiler Logs — vmprof 0.3 documentation
|
|
the following to get a log out of pypy for your program:
>>
>> (pypy-env) $ pip install vmprof
>> (pypy-env) $ pypy -m vmprof --jitlog yourpythonprogram.py
>>
>> Cheers,
>> Richard
>>
>>> On 12/09/2016 02:03 AM, Shubha Ramani via pypy-dev wrot
f pypy for your program:
>>
>> (pypy-env) $ pip install vmprof
>> (pypy-env) $ pypy -m vmprof --jitlog yourpythonprogram.py
>>
>> Cheers,
>> Richard
>>
>>> On 12/09/2016 02:03 AM, Shubha Ramani via pypy-dev wrote:
>>> I successfully created
the following to get a log out of pypy for your program:
>
> (pypy-env) $ pip install vmprof
> (pypy-env) $ pypy -m vmprof --jitlog yourpythonprogram.py
>
> Cheers,
> Richard
>
>> On 12/09/2016 02:03 AM, Shubha Ramani via pypy-dev wrote:
>> I successfully created a fil
Interesting. Thank You !
> On Dec 9, 2016, at 12:45 AM, Armin Rigo wrote:
>
> Hi,
>
> On 9 December 2016 at 02:00, Shubha Ramani via pypy-dev
> wrote:
>> Why am I getting this error ?
>> pidigits.py runs fine outside of the pytest environment.
I successfully created a file containing binary data, but don't know what to do
with it.I produced it using test
/opt/pypy/rpython/jit/backend/x86/test/test_jitlog.py___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/
Why am I getting this error ?pidigits.py runs fine outside of the pytest
environment.
Please see attached files
PIDIGITS_LEN = 1000
def pidigits(length):
i = k = ns = 0
k1 = 1
n,a,d,t,u = 1,0,1,0,0
while(True):
k += 1
t = n<<1
n *= k
a += t
Yes I finally figured it out (what you are saying David). I did get a binary
jit log dump intoa file finally. How do you parse it ?
On Thursday, December 8, 2016 2:12 PM, David Malcolm
wrote:
On Thu, 2016-12-08 at 21:49 +, Shubha Ramani via pypy-dev wrote:
> import
import py
import binary_trees
import os
Yes that worked.pytest.py rpython/jit/metainterp/test/test_ajit.py
Shubha
On Monday, December 5, 2016 12:31 PM, Armin Rigo
wrote:
Hi,
pytest.py rpython/jit/metainterp/test/test_ajit.py
Also, can you please send plain-text e-mails without these huge
signatures? Thanks!
A bientôt,
Even if Jit is invoked during rpython translation ? Why not Armin ?I do see an
assembler.py under rpython/jit/backend/x86
On Monday, December 5, 2016 12:35 PM, Armin Rigo
wrote:
Hi,
On 5 December 2016 at 21:33, Shubha Ramani wrote:
> But in the process of turning RPython code into C
But in the process of turning RPython code into C code, there is a byte-code
generationstep correct ?
Shubha
On Monday, December 5, 2016 12:32 PM, Armin Rigo
wrote:
Hi,
On 5 December 2016 at 20:40, Shubha Ramani wrote:
> What I want to do is debug the translation to byte code process
for instance,rpython/bin/rpython rpython/jit/metainterp/test/test_ajit.py
results in :
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Monday, December 5, 2016 11:57 AM, Shubha Ramani
wrote:
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
_
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
OK. Please kindly give me a helpful nudge here. I have read this
:https://morepypy.blogspot.com/2011/04/tutorial-part-2-adding-jit.html
What I want to do is debug the translation to byte code process. How best to do
that ? Use python print ?Since pdb is not going to work, I need some other way
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
wrote:
Should be --no-source, but I have to wonder...what exactly are you trying to
do?
On Mon, Dec 5, 2016 at 12:36 PM, Shubha Ramani via pypy-dev
wrote:
It takes a long time and I don't really care about the backend c implementation
at the moment.Do I just do a -s as shown below ?
Command I
It takes a long time and I don't really care about the backend c implementation
at the moment.Do I just do a -s as shown below ?
Command I'm running:
/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=auto
./translator/goal/targetsimpleread.py
--annotate, -a Do type inference--no-an
I give up on using SSL, pre-compiled or built from scratch [ IT JUST DOESN'T
WORK]. I'm going to try what Wim suggested - remove SSLfrom the list of modules.
With all due respect has anyone tried building with the latest SSL binaries
lately ?
I used pre-built binaries from
here:https://slproweb.
issue
>
> Openssl in windows issue
> While I try to create lib files for windows.The following error came. Please
> help on this issue. CODE Explanati...
>
>
> Shubha D. Ramani
> shubharam...@gmail.com
> shubharam...@yahoo.com
>
>
> On Thursday, Dece
. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Thursday, December 1, 2016 1:08 PM, Shubha Ramani via pypy-dev
wrote:
Thank you for pointing me to the instructions. Does anyone know how to
overcome this error ?
[translation:ERROR] CompilationError: CompilationError(err
On Thursday, December 1, 2016 11:48 AM, Yury V. Zaytsev
wrote:
On Thu, 1 Dec 2016, Shubha Ramani via pypy-dev wrote:
> The documentation doesn't say much about compiling from source using
> Visual Studio and NO Cygwin.
What piece of documentation you are looking at more speci
The documentation doesn't say much about compiling from source using Visual
Studio and NO Cygwin.
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-de
thanks WLavrijsen, your tips worked.
Shubha Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Tuesday, November 29, 2016 4:06 PM, "wlavrij...@lbl.gov"
wrote:
Shubha,
On Tuesday 2016-11-29 22:52, Shubha Ramani via pypy-dev wrote:
> When I change backend
When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc
./translator/goal/targetpushpop.py
I get...translation:ERROR] Exception: no jit_merge_point found![translation]
start debugger...>
/opt/pypy/rpython/jit/metainterp/warmspot.py(169)find_jit_merge_points()->
raise Exc
Why ?
When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86
./translator/goal/targettestdicts.py
[translation:info] Error: File
"/opt/pypy/rpython/translator/goal/translate.py", line 318, in main
drv.proceed(goals) File "/opt/pypy/rpython/translator/driver.py", lin
I found this website which has a lot of good benchmarks:pypy / benchmarks /
Downloads — Bitbucket
|
|
|
| ||
|
|
|
| |
pypy / benchmarks / Downloads — Bitbucket
| |
|
|
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Monday, Nove
Hello. I'm taking over development of the vtune branch. I do work for Intelbut
it's easier to use my personal account.
Question, as I develop this branch can someone recommend some good Python
benchmarks out there which have been tested with PyPy and have seen performance
improvements ?
pypy / p
Wow. Thanks for the tip Armin.
Shubha
> On Nov 27, 2016, at 12:44 AM, Armin Rigo wrote:
>
> Hi Shubha,
>
> On 26 November 2016 at 17:58, Shubha Ramani via pypy-dev
> wrote:
>> change assert=reinterp to assert=rewrite. It turns out in the latest version
>> o
(spell-check woes) Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev
wrote:
For instance this command :usage: py.test [options] [file_or_dir]
[file_or_dir] [...]py.test: error: argument --assert: invalid choice
pypy not puppy (spell-check woes) Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com
On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev
wrote:
For instance this command :usage: py.test [options] [file_or_dir]
[file_or_dir] [...]py.test: error: argument
For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir]
[...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from
'rewrite', 'plain') Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com___
pypy-dev
70 matches
Mail list logo