You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a question than an issue... I am very interested on how oclgrind manages to distinguish the OpenCL address spaces regarding the operands of the load and store instructions. As I have seen, this is some info that clang does not keep when it compiles OpenCL to LLVM IR. The only info that clang keeps is the OpenCL address spaces of the kernel arguments and that 's pretty much it? I observed in my experiments that the getPointerAddressSpace method of the LoadInst and StoreInst classes return always 0 (i.e. global address space or uninitialized, I believe the later due to the many new variables that are introduced by LLVM between the actual kernel argument and where the load/store operation actually takes place). Can you please give me an explanation on what exactly oclgrind does to tackle this issue -which, as I 've seen, it actually does!-, or point me to the code that does it? It would be extremely helpful for my thesis. Thank you in advance!
The text was updated successfully, but these errors were encountered:
This is more of a question than an issue... I am very interested on how
oclgrind
manages to distinguish the OpenCL address spaces regarding the operands of theload
andstore
instructions. As I have seen, this is some info thatclang
does not keep when it compiles OpenCL to LLVM IR. The only info that clang keeps is the OpenCL address spaces of the kernel arguments and that 's pretty much it? I observed in my experiments that thegetPointerAddressSpace
method of theLoadInst
andStoreInst
classes return always 0 (i.e. global address space or uninitialized, I believe the later due to the many new variables that are introduced by LLVM between the actual kernel argument and where the load/store operation actually takes place). Can you please give me an explanation on what exactlyoclgrind
does to tackle this issue -which, as I 've seen, it actually does!-, or point me to the code that does it? It would be extremely helpful for my thesis. Thank you in advance!The text was updated successfully, but these errors were encountered: