- Add spv.store instead of init for spv.variable to fix data issues in some GPU drivers
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp | ||
---|---|---|
73 | Could you put some comments here like "// We could use the initializer directly; but certain driver compilers have bugs dealing with that. So for now use spv.Store for initialization." so that later we can recall why such behavior? |
mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp | ||
---|---|---|
73 |
Done! thanks :) |
mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp | ||
---|---|---|
77 | This variable is unused: llvm-project/mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp:77:22: warning: unused variable 'storeOp' [-Wunused-variable] spirv::StoreOp storeOp = ^ |
mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp | ||
---|---|---|
77 | I fixed this when pushing |
mlir/lib/Conversion/TensorToSPIRV/TensorToSPIRV.cpp | ||
---|---|---|
77 | awesome! thanks 😄 |
Could you put some comments here like "// We could use the initializer directly; but certain driver compilers have bugs dealing with that. So for now use spv.Store for initialization." so that later we can recall why such behavior?