I try to understand the examples in the book of Kirk/Hwu. In Chapter 5.3 they
introduced tiled matrix multiplication and the example 5.7.
Taking it as it stands my compiler produced an error concerning the
declaration
__shared__float Mds[TILE_WIDTH][TILE_WIDTH]; (1)
(Nds likewise)
I find these declarations in all subsequent publications and related lectures.
What works is
shared float Mds[TILE_WIDTH][TILE_WIDTH]; (2)
But then TILE_WIDTH must be declared as a constant int before
const int TILE_WIDTH=16;
shared float Mds[TILE_WIDTH][TILE_WIDTH];
(as an example)
is (1) a typo only?
Have I declare TILE_WIDTH indeed as a constant value before - which is not
described in the book in this way?