Invalid values on the 1st execution

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Invalid values on the 1st execution

Abimael

Hi
 
    I noticed some kind of situation that occurs when I "open" my notebook and start working with my code.
    At night , I just closed it and it went in "suspend mode"..
    in the morning , I open it, go to Eclipse and run application that I had worked in the previous day .
   I got a lot of invalid values.. Like a "memory with invalid values". .. And I suppose they are, as they are the results of the buffer ..but,
I really expect the results of the CL program that I had executed previous day , as I did not and do not change the code..
 
   I had noticed several days.. I just got and get proper values when I change the CL code.. it seems that the program or the code does not recompile and does not build the program after a "suspension"..
   Hope I had explained the situation properly to see if anybody else has the same issue..

  thank in advance
Reply | Threaded
Open this post in threaded view
|

Re: Invalid values on the 1st execution

notzed
It just means you're not initialising your data properly.

As with C, memory allocations aren't zero'd or anything like that, so you must have some code that is reading undefined values.  Those which haven't been written to first.

Reply | Threaded
Open this post in threaded view
|

Re: Invalid values on the 1st execution

Abimael
In reply to this post by Abimael

Hi
Let me try to explain better ...

I am working on the laptop ..
Then , I need to go out and I close the notebook , that it will go to suspend.
when I came back, I open it and it go out of suspension.
When  I try to run the code,  I got NAN on the results..
It just come back work properly when I change the code ..
it seems that "it"  (I do not know who is "it") does not rebuild the program ..

 I am using a CL file :
program = context.createProgram(TesteJocl1.class.getResourceAsStream(arquivo));
program = program.build();
....

What am I doing wrong ?
Reply | Threaded
Open this post in threaded view
|

Re: Invalid values on the 1st execution

Abimael
To notzed

Yes , I understand .. but the weird thing is that the code runs ! I mean, I do not see any error message ..
Reply | Threaded
Open this post in threaded view
|

Re: Invalid values on the 1st execution

Michael Bien
  nothing weird with this :) its C. It may run sometimes and be still
broken if not synchronized/initialized/(...) properly.

On 10/14/2011 11:06 PM, Abimael [via jogamp] wrote:

>
> To notzed
>
> Yes , I understand .. but the weird thing is that the code runs ! I mean, I
> do not see any error message ..
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Invalid-values-on-the-1st-execution-tp3418313p3422843.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit