xiangyu / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

Range.toString() shows getLocalSize(0) instead of getLocalSize(2) for 3D ranges #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a 3D range with different local sizes for dimensions 0 and 2, e.g., 
Range.create3D(128, 128, 128, 16, 32, 64)
2.call toString() on created Range
3.localsize 2 shown in toString() is the same localsize 0 

As a one-liner:
com.amd.aparapi.Range.create3D(128, 128, 128, 16, 32, 64).toString()

What is the expected output? What do you see instead?

Expected: 3D(global:128x128x128 local:16x32x64)
Got: 3D(global:128x128x128 local:16x32x16)

What version of the product are you using? On what operating system?

r997 (but it is the same on most recent one, r1320)
Windows 7 (though OS is not relevant, it is a problem on a single Java class, 
without any native calls)

Please provide any additional information below.

Original issue reported on code.google.com by lgallucci@gmail.com on 5 Jul 2013 at 4:24

GoogleCodeExporter commented 9 years ago
Added a patch that solves this issue

Original comment by lgallucci@gmail.com on 5 Jul 2013 at 4:25

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch, I have applied it to r#1323. 

If you send me your name  I will fixup your 'credit' in CREDITS.txt with your 
full name ;) At present I have credited you with 'lgallucci' (only info made 
available via google project).  

Thanks again.  

Gary

Original comment by frost.g...@gmail.com on 5 Jul 2013 at 9:43