Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not calling 'UseDevice()' causes Exceptions - (_context == null) #4

Closed
fraser125 opened this issue Sep 14, 2019 · 3 comments
Closed

Comments

@fraser125
Copy link

There are several places and several fixes for this issue, I'm not sure the preferred approach.
The easy one:
OpenCLCompiler.Dispose()

  if (_context != null)
                _context.Dispose();

The others are much more involved.

@chetankumar
Copy link

@fraser125 : Can you post some code where the issue can be replicated?

@fraser125
Copy link
Author

I'm very sorry, I determined GPU processing wasn't practical for my application soon after posting this.
You can decide if this issue is worth fixing or not

using Amplifier;

namespace AmplifierExamples
{
    public class Issue4 : IExample
    {
        public void Execute()
        {
            using (var compiler1 = new OpenCLCompiler())
            {
            } <== Throws Exception Here.
        }
    }
}

FYI: I only have one device so several of your Examples crash out of the box for me. I only have a Baffin GPU in the device list.

  • ArrayForLoopEx
  • CompilerExecuteEx
  • SaveAndLoadEx

@deepakkumar1984
Copy link
Owner

I think OpenCL doesn't support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants