Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Journeyman III

openCL Error after installation of VirtualCL

I installed virtualCL on my physical machine( centOS 6.3) and also on a vm(centOS 6.4) created on the same machine. and I also run the command xhost+ on my physical machine but after that I am not able to execute my openCL programs on my physical machine it shows the following error on running my previously created executable output file---

FATAL: Module fglrx not found.

Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly

FATAL: Module fglrx not found.

Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly

X Error of failed request:  BadRequest (invalid request code or no such operation)

  Major opcode of failed request:  153 ()

  Minor opcode of failed request:  19

  Serial number of failed request:  12

  Current serial number in output stream:  12

8 Replies


Please provide us the software version like OS, Catalyst driver etc information


Dear Himanshu

Thank you for your quick reply.


OS- CentOS 6.4

AMD Catalyst™ 13.6 Beta2 Driver Suite


GPU- HD 6670


Could you please test it with latest driver.


I found that even fglrxinfo was not able to display the information and after restarting my machine the dispaly was very abrupt. I forcefully uninstalled the catalyst driver and then again reinstalled it; after that its working fine. though i did read on the net that the amd catalyst driver is quite unstable on the linux platform and it often gets crashed.
besides can you tell me how does openCL code gets compiled? how gcc or g++ etc is able to compile a openCL code.?


Since you will be writing opencl code in .cpp file you can use g++ to compile the code.

You can get the complete information on building and compilation of OpenCL on both windows and linux platform in the below link


dear Himanshu

thnx for your reply but my point of intrest is that when we write openeCL code then we compile our .c file using the gcc compiler but at run time the kernel code present in .cl file which is not compiled by gcc, who compiles or ASSEMBLE or LOAD that kernel code into the OpenCL Device. once again thnx for all your help.


can you give the output of glxinfo ?

it seems that you are not able to start use the AMD driver. (the message is about an error in the X protocol)


that's absolutely correct pboudier, the driver got crashed that cause all the problem. I uninstalled the driver forcefully and reinstalled it and it works fine now.

but is there any resource where i can find how memory management is done in OpenCL like if we call clCreateBuffer then how the OpenCL library interacts with the driver which in turn interacts with OS.