R
Robert Miles
This is actually for a homework assignment in CUDA, but I have pinned
down the problem to a single statement, the only statement in the
program that is long enough that it needs to be split into multiple
lines.
void matrixMultiply<<<dim3 DimGrid, dim3 DimBlock>>>(float* deviceA,
float* deviceB, float* deviceC,
int numARows, int numAColumns,
int numBRows, int numBColumns,
int numCRows, int numCColumns);
The part in <<< >>> is CUDA-specific.
I haven't found any newsgroup for CUDA, but since it is one of the
languages derived from C, I assume that an answer for C will also
work in CUDA.
The statement is a function call, and cannot be split into multiple
statements.
What should I do to split the statement? Just adding end-of-lines
after the commas only produces confusing error messages about an
incomplete type.
Removing the void at the beginning only gives a different confusing
error message.
In case it matters, I am editing the program under Windows and
running it on a remote system that I suspect is running Linux.
I have the K&R2 book, just not time enough to search through all
of it by the time this is due.
By the way, are any of you interested in a free online CUDA course?
Heterogeneous Parallel Programming
https://www.coursera.org/category/cs-programming
Already on progress, but another one is planned in 2013.
down the problem to a single statement, the only statement in the
program that is long enough that it needs to be split into multiple
lines.
void matrixMultiply<<<dim3 DimGrid, dim3 DimBlock>>>(float* deviceA,
float* deviceB, float* deviceC,
int numARows, int numAColumns,
int numBRows, int numBColumns,
int numCRows, int numCColumns);
The part in <<< >>> is CUDA-specific.
I haven't found any newsgroup for CUDA, but since it is one of the
languages derived from C, I assume that an answer for C will also
work in CUDA.
The statement is a function call, and cannot be split into multiple
statements.
What should I do to split the statement? Just adding end-of-lines
after the commas only produces confusing error messages about an
incomplete type.
Removing the void at the beginning only gives a different confusing
error message.
In case it matters, I am editing the program under Windows and
running it on a remote system that I suspect is running Linux.
I have the K&R2 book, just not time enough to search through all
of it by the time this is due.
By the way, are any of you interested in a free online CUDA course?
Heterogeneous Parallel Programming
https://www.coursera.org/category/cs-programming
Already on progress, but another one is planned in 2013.