[PATCH] D78207: [MLIR] Allow for multiple gpu modules during translation.
Stephan Herhut via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 07:05:29 PDT 2020
herhut created this revision.
herhut added a reviewer: ftynse.
Herald added subscribers: llvm-commits, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
This change makes the ModuleTranslation threadsafe by locking on the
LLVMContext. Furthermore, we now clone the llvm module into a new
context when compiling to PTX similar to what the OrcJit does.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78207
Files:
mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
mlir/lib/Conversion/GPUToCUDA/ConvertKernelFuncToCubin.cpp
mlir/lib/Conversion/GPUToCUDA/ConvertLaunchFuncToCudaCalls.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/mlir-cuda-runner/two-modules.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78207.257707.patch
Type: text/x-patch
Size: 10846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/33dd590a/attachment.bin>
More information about the llvm-commits
mailing list