Skip to content
Snippets Groups Projects

Allow CUDA compilation for onnxruntime

Merged Michael James Fenton requested to merge mf_ort_cuda into master

This small MR allows for onnxruntime to be compiled for use on GPUs via CUDA. As long as CUDA and CUDNN is installed on the compiling machine, a GPU does not need to be physically present, though the CUDA and CUDNN install paths are currently hard coded as:

CUDA_HOME: /usr/local/cuda CUDNN_HOME: /usr/

which may not be correct on all machines.

As is, an extra CMake build flag "ATLonnxruntime_USE_CUDA" is added to enable CUDA compilation. Currently the default behavior is to only compile for CPU as before.

Tagging @dbakshig @whiteson @jraine @afarbin @dguest

Merge request reports

Pipeline #3177351 passed

Pipeline passed for f07ff00d on mf_ort_cuda

Approval is optional

Merged by Attila KrasznahorkayAttila Krasznahorkay 3 years ago (Nov 1, 2021 2:03pm UTC)

Merge details

  • Changes merged into master with 1f303f75.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading