I have a very weird problem in an OpenCL project, in my program I read a text file at the host and load its contents to memory in order to start processing on it further, (this happens at the very beginning of the program and has nothing to do with GPU function calls; i.e it has nothing to do with parallelism)... I'm working on Visual Studio 2008,
when I call the 'read' built-in c++ function in 'wifstream', it takes very long time to finish reading the file! However when I create an empty project that reads the same file (not openCL project) it is read much quickly! I measured the file reading time in both programs (OpenCL program & my empty project) I found a huge gap! I'm really astonished from this behavior of the wifstream read function when called from an OpenCL project!!
any idea why this might happen?