Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Introduce the ENABLE_CUDA_RTC build option #9428

Merged
merged 1 commit into from
Jan 15, 2018
Merged

Introduce the ENABLE_CUDA_RTC build option #9428

merged 1 commit into from
Jan 15, 2018

Conversation

cbalioglu
Copy link
Contributor

When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime compilation feature (CudaModule) that requires access to the CUDA driver API. The MXNet shared library build with this option OFF has no direct dependency on the CUDA driver library (e.g. libcuda.so) and can be used on both GPU and CPU hosts. That means CPU-only hosts require no stubs for the CUDA driver library.

Checklist

Essentials

  • Passed code style checking (make lint)
  • Changes are complete (i.e. I finished coding on this PR)
  • To the my best knowledge, examples are either not affected by this change

When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
@piiswrong
Copy link
Contributor

@cjolivier01

@cjolivier01
Copy link
Member

When ENABLE_CUDA_RTC is off and USE_CUDA is ON, can it still do everything on GPU like the normal build? What is lost?

@cbalioglu
Copy link
Contributor Author

The only thing lost when USE_CUDA is ON and ENABLE_CUDA_RTC is OFF is calling the mxnet.rtc.CudaModule API will cause an MXNetError. Basically it disables the "Run-Time Compilation API".

@cjolivier01 cjolivier01 merged commit 262c74c into apache:master Jan 15, 2018
CodingCat pushed a commit to CodingCat/mxnet that referenced this pull request Jan 16, 2018
When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
@cbalioglu cbalioglu deleted the rtc branch January 17, 2018 00:15
larroy pushed a commit to larroy/mxnet that referenced this pull request Jan 18, 2018
When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
yuxiangw pushed a commit to yuxiangw/incubator-mxnet that referenced this pull request Jan 25, 2018
When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
rahul003 pushed a commit to rahul003/mxnet that referenced this pull request Jun 4, 2018
When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
zheng-da pushed a commit to zheng-da/incubator-mxnet that referenced this pull request Jun 28, 2018
When OFF the ENABLE_CUDA_RTC option skips building the CUDA runtime
compilation feature (CudaModule) that requires access to the CUDA
driver API. The MXNet shared library build with this option OFF has no
direct dependency on the CUDA driver library (e.g. libcuda.so) and can
be used on both GPU and CPU hosts. CPU-only hosts require no stub
CUDA driver library.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants