AKD arrays introduce unknown types in CUDA kernels
|
|
Bugzilla Link |
1003 |
Created on |
Jul 10, 2012 22:42 |
Version |
svn |
OS |
All |
Architecture |
PC |
Attachments |
bug.sac |
Extended Description
Created an attachment (id=916)
Source code to reproduce fault
Please see attached source program.
Current sac2c rev 18056 and pre-DevCamp rev 17875 fails assertion when compiling the attached source code with CUDA:
sac2c -target cuda64 bug.sac
...
** 19: Preparing C code generation ...
**** CUDA Prepare kernel generation ...
cuda/cuda_utils.c:54 Assertion "0" failed!
Simple type conversion found undefined host simple type!
Specifying the shape of the array on the signature of function process like this:
color[.,.] process(color[1200,1600] image) {
no longer fails.