[all-commits] [llvm/llvm-project] 5ef45c: [mlir][cuda] Avoid driver call to check max shared...

Guray Ozen via All-commits all-commits at lists.llvm.org
Thu Oct 26 01:02:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ef45c02dc0cd6cce0b3eb099707b8fc696a8ff6
      https://github.com/llvm/llvm-project/commit/5ef45c02dc0cd6cce0b3eb099707b8fc696a8ff6
  Author: Guray Ozen <guray.ozen at gmail.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

  Log Message:
  -----------
  [mlir][cuda] Avoid driver call to check max shared memory (#70021)

This PR guards the driver call with if-statement as the driver calls are
more expensive.

As a future todo, the if statement could be generated by the compiler
and thus optimized in some cases.




More information about the All-commits mailing list