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

Cuda detection #2

Open
lockmeister opened this issue Nov 15, 2023 · 4 comments
Open

Cuda detection #2

lockmeister opened this issue Nov 15, 2023 · 4 comments

Comments

@lockmeister
Copy link

Thank you for your great work. The quality of the transcriptions is great. I just wanted to share with you that the cuda detection did not work for me because it is based on looking for an installation that used Anaconda. I modified your function so that it would find cuda installations in some common situations, such as mine.

def get_cuda_toolkit_path():
# Check for common CUDA toolkit installation directories
common_paths = [
'/usr/local/cuda/bin',
'/usr/local/cuda-*/bin',
]

# Look for nvcc in common paths
for path in common_paths:
    cuda_paths = glob.glob(path)
    if cuda_paths:
        # Return the first matching path
        return cuda_paths[0]

# As a fallback, use the 'which' command to find the nvcc binary
nvcc_path = os.popen('which nvcc').read().strip()
if nvcc_path:
    # Return the directory containing the nvcc binary
    return os.path.dirname(nvcc_path)

# If the CUDA toolkit path is still not found, return None
return None
@Dicklesworthstone
Copy link
Owner

Cool, thanks, I'll try to merge this into the existing function so it will first try Anaconda, then try these other places.

@Issac1991
Copy link

i think i have the same problem. What should i do exactly. Im not a coder. Heres my Error text: CUDA Toolkit Path: None CUDA not available. Using CPU for transcription .

I can only find the Audio Files not the transcripts.

Many thanks in advance

@Dicklesworthstone
Copy link
Owner

Dicklesworthstone commented Mar 23, 2024 via email

@Issac1991
Copy link

ok thx. i already did. The only problem ist that the transcripts dont get downloaded only the audios. But i think i already found a other solution. Thx for your time !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants