YaccConstructor / Brahma.FSharp

F# quotation to OpenCL translator and respective runtime to utilize GPGPUs in F# applications.
http://yaccconstructor.github.io/Brahma.FSharp
Eclipse Public License 1.0
74 stars 17 forks source link

_2D LocalID1 isn't properly translated #95

Closed vlj closed 7 years ago

vlj commented 7 years ago

Description

Using the nuget package with a (range:_2D) object, using range.LocalID1 is translated to (range) . LocalID1 in OpenCL which triggers a kernel compilation failure.

Repro steps

  1. Download latest Brahma.FSharp from Nuget in a project
  2. Write a kernel that access the second local id.

Expected behavior

range.LocalID1 should be translated to get_local_idx(1)

Actual behavior

range.LocalID1 is considered as a structure + member

Related information

gsvgit commented 7 years ago

@vlj Should be fixed in v_1.1.4 Please, try it out.

vlj commented 7 years ago

It works thanks !