I installed the CUDA 5.0 on Mac OSX 10.8.2 with GeForce GT 650M.
All the samples are compiled successfully.
But the samples including data folder don’t work, like oceanFFT, FunctionPointers, matrixMulDrv, etc.
Other samples without data folder are working, like matrixMul, nobody, etc.
For example, when running oceanFFT, the Error is
Error unable to find GLSL vertex and fragment shaders!
which came from oceanFFT.cpp
bool initGL(int *argc, char **argv)
{
...
vertShaderPath = sdkFindFilePath("ocean.vert", argv[0]);
fragShaderPath = sdkFindFilePath("ocean.frag", argv[0]);
if (vertShaderPath == NULL || fragShaderPath == NULL)
{
fprintf(stderr, "Error unable to find GLSL vertex and fragment shaders!\n");
exit(EXIT_FAILURE);
}
...
}
When running FunctionPointers, the error is
Failed to read image file: <lena.pgm>
which is from FunctionPointers.cpp
void loadDefaultImage(char *loc_exec)
{
...
const char *image_filename = "lena.pgm";
char *image_path = sdkFindFilePath(image_filename, loc_exec);
if (image_path == NULL)
{
printf("Failed to read image file: <%s>\n", image_filename);
exit(EXIT_FAILURE);
}
...
}
I guess that sdkFindFilePath() may be wrong or something is missing. Does anyone knows how to solve it?
Thanks!!!