browndeer / coprthr

The CO-PRocessing THReads (COPRTHR) SDK - latest release is v1.6.2 (Freewill)
http://www.browndeertechnology.com/coprthr.html
Other
94 stars 35 forks source link

ulong on epiphany #12

Open profmaad opened 10 years ago

profmaad commented 10 years ago

I am currently trying to move existing OpenCL code to the Parallella. The code includes a MWC pseudo-random number generator (http://cas.ee.ic.ac.uk/people/dt10/research/rngs-gpu-mwc64x.html).

The code compiles via clcc when targeting a generic Intel CPU platform, without warnings. When compiling on the Parallella, I get a lot of warnings regarding truncation/overflow of integers. The problem is: those all refer to proper usage of ulong, which should be 64 bit, according to the OpenCL standard.

Is ulong 64bit on the Epiphany target?

browndeer commented 10 years ago

I checked and ulong is implemented as C unsigned long long for kernels which is 64-bit. However, there does appear to be an issue. There was previously an issue with GCC ARM that was observed related to this data type outside of anything related to OpenCL. I do not know if there is a connection. Looking into this to find a resolution.

imrehg commented 9 years ago

@browndeer I've run into the same issues with OpenCL and the ARM core on Parallella. Any progress deciphering the cause?