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

Commit

Permalink
Fix windows dll loading for compute capabilties >7.5 (#19931)
Browse files Browse the repository at this point in the history
Backport #19410

Previously any higher compute capabilties would load mxnet_75.dll
Any new compute capabilities should now load the correct dll if present

Co-authored-by: vlado <vladoovtcharov@gmail.com>
Co-authored-by: vlado <vlado@indicalab.com>
  • Loading branch information
3 people authored Feb 22, 2021
1 parent c97e89c commit feed41c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/windowsbuild/warp_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int find_version()
{
std::vector<int> known_sm = find_mxnet_dll();
int count = 0;
int version = 75;
int version = 9999;
if (cudaSuccess != cudaGetDeviceCount(&count))
{
return 30;
Expand Down Expand Up @@ -106,6 +106,11 @@ int find_version()
}
}

if (version == 9999)
{
return 30;
}

return version;
}

Expand Down

0 comments on commit feed41c

Please sign in to comment.