Results 1 to 2 of 2

Thread: OpenCL conflict on shared workstation

  1. #1
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    OpenCL conflict on shared workstation

    We have shared linux (OpenSUSE 11.4 x86_64) workstation in our research lab and eight people are suppose to program and run their different OpenCL applications. In a single user environment I never had any trouble, but with eight people something is conflicting. It was my understanding that things should continue to work, just multiple kernels would be serialized (for a given device). However, people are complaining that their programs are failing and their sources won't compile when they previously did. I found out that for some reason their are thousands of OCL*.so files being created in /tmp, and if I delete them then people can compile their programs, but then again thousands of OCL*.so are created and we're back to the same problem.

    Any ideas what's happening and a real solution? I've got the most recent AMD APP SDK, NVIDIA CUDA SDK, and Intel OpenCL SDK installed and I assume configured properly since it worked when only I was using the system.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: OpenCL conflict on shared workstation

    Any ideas what's happening and a real solution?
    Whenever you call clBuildProgram() they are compiling and linking a .so file that they store in /tmp/. The code apparently has a race condition and and you get different programs producing the same .so file name at the same time.

    I recommend writing a polite letter to their customer support, preferably with a short snippet of code that they can compile and run to reproduce the issue.

    As for ways to work around that problem, you could modify the apps so that they try recompiling a few times before bailing out. You can also set up a cron job to kill those .so files every now and then.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. OpenGL / OpenCL interop with shared contexes and multithread
    By mado in forum Interoperability issues
    Replies: 2
    Last Post: 02-13-2013, 08:15 AM
  2. Shared OpenCL buffers between processes
    By sletz in forum OpenCL
    Replies: 1
    Last Post: 10-05-2010, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •