Clean up cuda-runtime-wrappers API.
authorChristian Sigg <csigg@google.com>
Tue, 28 Jul 2020 14:29:29 +0000 (16:29 +0200)
committerChristian Sigg <csigg@google.com>
Tue, 28 Jul 2020 14:34:08 +0000 (16:34 +0200)
commitc64c04bbaadbc35e265f12644b45787d6d077587
tree60e8e40e2a1d3a32fac45239cceb759f5e0facc6
parent22ec861d28c0aa0cdf76b9618151b9ee87ba2221
Clean up cuda-runtime-wrappers API.

Do not return error code, instead return created resource handles or void. Error reporting is done by the library function.

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D84660
mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
mlir/test/Conversion/GPUCommon/lower-launch-func-to-gpu-runtime-calls.mlir
mlir/tools/mlir-cuda-runner/cuda-runtime-wrappers.cpp
mlir/tools/mlir-rocm-runner/rocm-runtime-wrappers.cpp