[Mlir-commits] [mlir] [mlir][gpu] Deprecate gpu::Serialization* passes. (PR #65857)
Fabian Mora
llvmlistbot at llvm.org
Tue Sep 12 15:04:15 PDT 2023
================
@@ -78,11 +78,13 @@ void mlir::sparse_tensor::buildSparseCompiler(
// Finalize GPU code generation.
if (gpuCodegen) {
-#if MLIR_GPU_TO_CUBIN_PASS_ENABLE
- pm.addNestedPass<gpu::GPUModuleOp>(createGpuSerializeToCubinPass(
- options.gpuTriple, options.gpuChip, options.gpuFeatures));
-#endif
+ GpuNVVMAttachTargetOptions nvvmTargetOptions;
+ nvvmTargetOptions.triple = options.gpuTriple;
+ nvvmTargetOptions.chip = options.gpuChip;
+ nvvmTargetOptions.features = options.gpuFeatures;
+ pm.addPass(createGpuNVVMAttachTarget(nvvmTargetOptions));
pm.addPass(createGpuToLLVMConversionPass());
+ pm.addPass(createGpuModuleToBinaryPass());
----------------
fabianmcg wrote:
By any chance, are you using the nvptxcompiler lib path? or the tool one? Because that error, means no image was generated for that GOU, which would be considered a normal error with `nvptxcompiler`.
I'm working on a fully JIT path that should solve all testing issues. I think I'll have the pr ready tomorrow.
https://github.com/llvm/llvm-project/pull/65857
More information about the Mlir-commits
mailing list