[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-vm-dev
Subject:    Re: [Vm-dev] Optimisation and ArmV8 64 bit systems
From:       Mariano Martinez Peck <marianopeck () gmail ! com>
Date:       2019-10-21 21:08:19
Message-ID: CAA+-=mULgXH=ZUX6F7fJAmEKV-P=ckcwsP3XPjWDdsoL4vTKUA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

 
[Attachment #3 (multipart/alternative)]


Hi Bruce,
It seems Levente did help you with your issue. I just wanted to add a link
to a blog post I wrote with my experiments with VASmalltalk, Jetson Nano
and TensorFlow.
Even if its another Smalltalk dialect, you may find interesting bits on it:
https://dev.to/martinezpeck/getting-started-with-nvidia-jetson-nano-tensorflow-and-smalltalk-23mk

Best regards,


On Mon, Oct 21, 2019 at 3:18 PM Bruce O'Neel <bruce.oneel@pckswarms.ch>
wrote:

>
> Hi,
>
> Yep, that seems to be the problem.
>
> So Gcc 7 (and I guess gcc 8) with -O2 and our code seems to optimise into
> a problem.
>
> Thanks.
>
> bruce
>
>
>
>
> *21 October 2019 01:46 Levente Uzonyi <leves@caesar.elte.hu
> <leves@caesar.elte.hu>> wrote:*
>
> Hi Bruce,
>
> You're probably seeing the issue described here:
> http://forum.world.st/Primitive-40-asFloat-fails-for-me-td5095689.html
>
> You may want to check if this part applies to your build as well:
>
> > Actually the returned float object is -100.0 (-100 asFloat < 0.0 returns
> > true), but the code used for printing doesn't work properly, because
> > #basicAt: returns 0 (when the argument is 1 or 2), and the method used to
> > print the number uses #signBit to print the negative sign, and #signBit
> > relies on #basicAt: returning a non-zero value when the number is
> > negative.
>
> > So, we're back to the original issue I found: #basicAt: (primitive 38)
> > doesn't work with newer gcc versions
>
> Levente
>
>
>

-- 
Mariano Martinez Peck
Email: marianopeck@gmail.com
Twitter: @MartinezPeck
LinkedIn: www.linkedin.com/in/mariano-martinez-peck
<https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/>
Blog: https://marianopeck.wordpress.com/

[Attachment #6 (text/html)]

<div dir="ltr">Hi Bruce,  <div>It seems Levente did help you with your issue. I just \
wanted to add a link to a blog post I wrote with my experiments with VASmalltalk, \
Jetson Nano and TensorFlow.  </div><div>Even if its another Smalltalk dialect, you \
may find interesting bits on it:  <a \
href="https://dev.to/martinezpeck/getting-started-with-nvidia-jetson-nano-tensorflow-a \
nd-smalltalk-23mk">https://dev.to/martinezpeck/getting-started-with-nvidia-jetson-nano-tensorflow-and-smalltalk-23mk</a></div><div><br></div><div>Best \
regards,</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Mon, Oct 21, 2019 at 3:18 PM Bruce O&#39;Neel &lt;<a \
href="mailto:bruce.oneel@pckswarms.ch">bruce.oneel@pckswarms.ch</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  \
<div>Hi,<br></div><div><br></div><div>Yep, that seems to be the \
problem.<br></div><div><br></div><div>So Gcc 7 (and I guess gcc 8) with -O2 and our \
code seems to optimise into a \
problem.<br></div><div><br></div><div>Thanks.<br></div><div><br></div><div>bruce</div><div><br></div><div \
id="gmail-m_8997072486422899992editorUserSignature" \
style="display:none"><br></div><div><br></div><div><br></div><div><i>21 October 2019 \
01:46 Levente Uzonyi &lt;<a href="mailto:leves@caesar.elte.hu" \
target="_blank">leves@caesar.elte.hu</a>&gt; wrote:</i><br></div><blockquote><div>Hi \
Bruce,<br></div><div> <br></div><div> You&#39;re probably seeing the issue described \
here:<br></div><div> <a \
href="http://forum.world.st/Primitive-40-asFloat-fails-for-me-td5095689.html" \
target="_blank">http://forum.world.st/Primitive-40-asFloat-fails-for-me-td5095689.html</a><br></div><div> \
<br></div><div> You may want to check if this part applies to your build as \
well:<br></div><div> <br></div><div> &gt; Actually the returned float object is \
-100.0 (-100 asFloat &lt; 0.0 returns<br></div><div> &gt; true), but the code used \
for printing doesn&#39;t work properly, because<br></div><div> &gt; #basicAt: returns \
0 (when the argument is 1 or 2), and the method used to<br></div><div> &gt; print the \
number uses #signBit to print the negative sign, and #signBit<br></div><div> &gt; \
relies on #basicAt: returning a non-zero value when the number is<br></div><div> &gt; \
negative.<br></div><div> <br></div><div> &gt; So, we&#39;re back to the original \
issue I found: #basicAt: (primitive 38)<br></div><div> &gt; doesn&#39;t work with \
newer gcc versions<br></div><div> <br></div><div> \
Levente<br></div></blockquote><div><br></div></blockquote></div><br \
clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font \
color="#666666">Mariano Martinez Peck</font></div><div><div dir="ltr"><div \
dir="ltr"><font color="#666666">Email: <a href="mailto:marianopeck@gmail.com" \
target="_blank">marianopeck@gmail.com</a></font></div><div dir="ltr"><font \
color="#666666">Twitter: @MartinezPeck</font></div><div dir="ltr"><font \
color="#666666">LinkedIn:  <a \
href="https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/" \
target="_blank">www.linkedin.com/in/mariano-martinez-peck</a></font></div><div \
dir="ltr"><div dir="ltr"><font color="#666666">Blog:  <a \
href="https://marianopeck.wordpress.com/" \
target="_blank">https://marianopeck.wordpress.com/</a></font></div></div></div></div></div></div></div></div></div></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic