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

OpenCL IsNaNF not implemented #74

Closed
NicolasG3 opened this issue Mar 20, 2020 · 1 comment
Closed

OpenCL IsNaNF not implemented #74

NicolasG3 opened this issue Mar 20, 2020 · 1 comment

Comments

@NicolasG3
Copy link

I tried to use a float shared memory variable (replace int by float in SharedMemory sample)

       static void SharedMemoryVariableKernel(
            GroupedIndex index,               // The grouped thread index (1D in this case)
            ArrayView<int> dataView,          // A view to a chunk of memory (1D in this case)
            ArrayView<int> outputView)        // A view to a chunk of memory (1D in this case)
        {
            // Compute the global 1D index for accessing the data view
            var globalIndex = index.ComputeGlobalIndex();

            // 'Allocate' a single shared memory variable of type float
            ref float sharedVariable = ref ILGPU.SharedMemory.Allocate<float>();
            ...

This lead to an exception (only for OpenCL)

NotSupportedIntrinsicException : The function 'IsNaNF' does not have an intrinsic implementation for this backend. 'EnableAlgorithms' from the Algorithms library not invoked?

@m4rs-mt
Copy link
Owner

m4rs-mt commented Apr 7, 2020

The latest OpenCL backend updates should solve this problem. I will close this issue for now. If the problem persists in a future release, please reopen this issue or create another bug report.

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

2 participants