Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework DeviceGuard to restore original context upon the exit #882

Merged
merged 1 commit into from May 29, 2019
Merged

Rework DeviceGuard to restore original context upon the exit #882

merged 1 commit into from May 29, 2019

Commits on May 29, 2019

  1. Rework DeviceGuard to restore original context upon the exit

    - some libraries are not using PrimiarContext while DALI does. When
      cudaSetDevice is called PrimaryContext is created and is set as
      the current one, the old one is lost while other apps may still need it.
      Adds saving of current context and restores it when DeviceGuard
      is destroyed
    - removed CUContext as it is not needed and can be replaced by the DeviceGuard
    
    Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
    JanuszL committed May 29, 2019
    Configuration menu
    Copy the full SHA
    220ecb7 View commit details
    Browse the repository at this point in the history