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

Suggestion: "Better" checking for presence of cudnn_64_7.dll #57

Open
arronsmith opened this issue May 21, 2019 · 0 comments
Open

Suggestion: "Better" checking for presence of cudnn_64_7.dll #57

arronsmith opened this issue May 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@arronsmith
Copy link

My use case for Alturos.Yolo is in a vvvv plugin, which has a plugin directory structure which means that the main executable (vvvv.exe) doesn't end up next to Alturos.Yolo.dll, which means that

if (File.Exists(@"x64\cudnn64_7.dll"))

will always return false even if the file is present. Everything goes on to work perfectly anyway, so it's not a big deal, but a more robust approach might be to look for cudnn with a path relative to the Alturos DLL, rather than the "main" executable:

string assemblyFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            if (File.Exists(Path.Combine(assemblyFolder, @"x64\cudnn64_7.dll")))
            {
                report.CudnnExists = true;
            }

(This requires a reference to System.Reflection to work)

@tinohager tinohager self-assigned this May 21, 2019
@tinohager tinohager added the enhancement New feature or request label May 21, 2019
@tinohager tinohager mentioned this issue Dec 24, 2019
@tinohager tinohager removed their assignment Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants