comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » GPULib 1.0.6: GPU arrays getting zeroed once again
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
GPULib 1.0.6: GPU arrays getting zeroed once again [message #64412] Sun, 21 December 2008 13:10 Go to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Well, things were going OK with my program GPUKPCA_RUN under 1.0.6 until
I tried to use my own function (gpukernel_matrix) to centralize some of
the operations:

while i lt num_rows do begin
gpuView,GG_gpu,i*num_cols*num_bands,num_bands*num_cols,GGi_g pu
gpuReform,GGi_gpu,num_bands,num_cols
KK_gpu = gpukernel_matrix(G_gpu,GGi_gpu,gma=gma)
gpuView,image_gpu,i*num_cols*num_pcs,num_cols*num_pcs,row_gp u
gpuReform,row_gpu,num_cols,num_pcs
row_gpu = gpuMatrix_multiply(KK_gpu,alpha1_gpu,lhs=row_gpu)
gpufree,KK_gpu
print,i,max(gpugetarr(image_gpu))
i++
endwhile

As was happening before, gpu_image gets zeroed part way through. I
noticed that, just as this occurs, the display flashes as if there was
some kind of hardware reset. Here is part of the printout from the above
loop:

37 0.749977
38 0.749977
39 0.749977
40 0.749977
41 0.749977
42 0.749977
43 0.749977
44 0.749977
45 0.749977 <=== display flashes
46 0.000000
47 0.000000
48 0.000000
49 0.000000

Don't know if that behavior is a clue, but I thought it worth mentioning.

- Mort
Re: GPULib 1.0.6: GPU arrays getting zeroed once again [message #64413 is a reply to message #64412] Sun, 21 December 2008 13:13 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Mort Canty schrieb:
> Well, things were going OK with my program GPUKPCA_RUN under 1.0.6 until
> I tried to use my own function (gpukernel_matrix) to centralize some of
> the operations:
>
>

Sorry, I wanted to post this to the gpulib newslist. Hit the wrong damn
button.

Mort
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem reading data from stdin using EOF(0) in version 6.0 and 7.0
Next Topic: Re: WIDGET_TABLE: How to set first column width?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:10:19 PDT 2025

Total time taken to generate the page: 0.00634 seconds