cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

Access violation : new memory bug ?

I have a strange behaviour in my OpenCL kernel. I have the following code :

void Texture_Get(__global RGB* pixels, const unsigned int width, const unsigned int height, const int s, const int t, Spectrum* spectrum)

{

Spectrum p;

p.x = ((__global Spectrum*)pixels)->x;

p.y = ((__global Spectrum*)pixels)->y;

p.z = ((__global Spectrum*)pixels)->z;

printf(\"%f %f %f \", p.x, p.y, p.z);return;

}

 

__global RGB* pixels = (__global RGB*)&(scene->pixmapsBuffer[map->offset]);

 

Spectrum p;

p.x = ((__global Spectrum*)pixels)->x;

p.y = ((__global Spectrum*)pixels)->y;

p.z = ((__global Spectrum*)pixels)->z;

printf(\"%f %f %f \", p.x, p.y, p.z);return;

Texture_Get(pixels, width, height, s0, t0, &c0);



When I remove the code in the method Texture_Get... I have no crash ! But the code is exactly the same than before calling the method !!!

0 Likes
4 Replies
bubu
Adept II

Are you using Catalyst 10.10 APP? I've found several critical bugs with those drivers. Try with the 10.9 and see what happens.

0 Likes

No,

I use the SDK from :

http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx

Under Win7 64bits and CPU only mode.

0 Likes

I have send a test case to the stream developer email. I hope that  you will find some time to fix the problems.

Thanks

0 Likes

The bug is fixed, it was on my side finally. Sorry 😛

0 Likes