Daniel
Daniel

Reputation: 3063

Oclgrind - Can't get it to work

I've downloaded the windows binary from https://github.com/jrprice/Oclgrind/releases but I get segfaults all over the place.

Would be nice if someone with experience with this tool can tell me if following is supposed to work:

Any help appreciated - Got a weird memory bug and I really need something like Oclgrind.

Upvotes: 0

Views: 437

Answers (1)

jprice
jprice

Reputation: 9925

Oclgrind does support both the -I build option and structs. There was an issue with struct types on Windows with previous versions of Oclgrind, due to a bug in the Clang frontend. The latest release of Oclgrind uses Clang+LLVM 3.6, which should fix these issues.

However, there is indeed an issue with structs on Windows at the moment. Attempting to compile any kernel that uses a struct results in a segmentation fault. This is actually a bug in the version of Clang that Oclgrind is using, not in Oclgrind itself. Structs work fine when using Oclgrind on Linux or OS X.

This is an unfortunate issue, as many codes make use of structs. At some point Oclgrind will be updated to use a newer version of Clang/LLVM, which should hopefully resolve this issue. There is an LLVM 3.6 branch in the GitHub repository that compiles against Clang+LLVM 3.6, which fixes this bug.

Upvotes: 1

Related Questions