cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

osaad
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

Correct code not working on windows even though samples do

Hi, i've been writing some OpenCL code lately on linux (ubuntu 10.4, ati catalyst 10.4 and ati sdk v2.1) and its working great on linux.

 

When i wanted to run my code on windows, i got program build errors complaining about

"this declaration has no storage class or type specifier"

and then "global variable must be declared in addrSapce constant"

even having a void kernel doesn't do, hell i commented the code and it still gave same errors lol!

 

weird enough that samples r working just fine. when i copied my code into the samples projects, it gave same errors.

 

i'm using windows 7 32-bit, ati stream sdk v2.1 and v10.6 drivers (cause i couldn't find the 10.4 for windows anywhere, which is sad since 10.6 doesn't have a guarantee to support OpenCL, way to go amd lol! )

 

i cut all the kernels out and left just this one, i still got same errors, here it is

 

 

__kernel void set_float( __global float* buff , float v) { buff[get_global_id(0)]=v; }

0 Likes
5 Replies
osaad
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

Well it was a non-null terminated string problem.

 

But seriously AMD that driver thing got me looking at the wrong place, really not cool.

0 Likes
omkaranathan
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

osaad,

Previous drivers are available @

http://support.amd.com/us/gpudownload/windows/previous/Pages/radeonaiw_vista64.aspx

You can find a link to this page(previous drivers) in the driver download page.

0 Likes
osaad
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

Thanks, though thats a completely different download page, i mean when searching u usually come up to this page

http://support.amd.com/us/gpudownload/Pages/index.aspx

which brings u to this one

http://support.amd.com/us/gpudownload/windows/Pages/radeonmob_win7-32.aspx

and on further search, u get to this

http://support.amd.com/us/psearch/Pages/psearch.aspx?type=2.4.1&product=2.4.1.3.37&contentType=GPU+D...

 

The last page should really show all versions, really idk how or where u found that page, but it surely isn't what comes up when u search for ati catalyst download or ati drivers download on google :S

 

Thanks anyway

0 Likes
omkaranathan
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

0 Likes
osaad
Journeyman III

OpenCL code that compiles on linux, doesn't run on windows

oO okay, now i c it, thanks

 

but still, they should provide links on other pages for consistency and the search page should show the latest stable and fully tested driver along with the newest stable driver, the way it shows 10.4 and 10.6 drivers for linux 

0 Likes