I am trying to parallelize some compute intensive portions of a complex set thermodynamic calculations for estimating wear of lining of furnace refractories. I have written two kernals and the bulk of the code is written in C++ and is being run in Visual Studio 2005. The complete program consists of a set of header files which contain function and global variable definitions. In the main program these custom made header files are #included. The problem is, when I try to compile the solution, two errors are thrown. Both the errors are the same and the error is,
error : Expected ")"
The location of the errors are pinpointed to the beginning of two kernal function starting lines containing the global keyword. I am using SDK version 2.3 and I am using Tesla C1060 device with a compute capability of 1.3. Further, if I simply isolate and compile the kernal functions alone it compiles without any errors.However in this isolated file if I include the custom made header, the same error is encountered.
I am stuck with this problem for quite some time… Kindly help !!