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

Identifiers with ' are not interpreted properly #113

Open
dpanfilyonok opened this issue May 5, 2021 · 0 comments
Open

Identifiers with ' are not interpreted properly #113

dpanfilyonok opened this issue May 5, 2021 · 0 comments

Comments

@dpanfilyonok
Copy link

dpanfilyonok commented May 5, 2021

Describe the bug

Unhandled exception. System.Exception: Compilation started
:3:7: error: expected identifier or '('
:3:12: warning: missing terminating ' character
Compilation failed

Error code: BuildProgramFailure
   at Brahma.FSharp.OpenCL.Core.getProgramProcessingError@42[a,b](Device[] _devices, a errCode, Program program)
   at Brahma.FSharp.OpenCL.Core.ComputeProvider.CompileQuery[T](ComputeProvider this, FSharpExpr lambda, IEnumerable`1 translatorOptions, FSharpList`1 additionalSources)
   at Brahma.FSharp.OpenCL.Core.ComputeProvider.Compile[TRange,a](ComputeProvider this, FSharpExpr`1 query, FSharpOption`1 _options, FSharpOption`1 translatorOptions, FSharpOption`1 _outCode, FSharpOption`1 kernelName, FSharpOption`1 _additionalSources)

To Reproduce

let kernel =
    <@
        fun (range: _1D) ->
            let mutable mut = range.GlobalID0
            let break' = false

            mut <- 0
    @>

opencl {
    do! RunCommand kernel (fun kernelPrepare -> kernelPrepare <| _1D(10))
}
|> OpenCLEvaluationContext().RunSync

Additional context
Version: 2.0.0-alpha6.1
Framework: netcoreapp3.1

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

1 participant