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

Disable modules if HW support is missing #967

Open
be-a-panther opened this issue Aug 28, 2024 · 1 comment
Open

Disable modules if HW support is missing #967

be-a-panther opened this issue Aug 28, 2024 · 1 comment
Assignees

Comments

@be-a-panther
Copy link

Describe the bug
The tensorflow library needs either AVX or a CUDA capable GPU. In the case of missing a specific GPU and an AVX capable cpu, slips crashes while loading the modules.

To Reproduce

  1. use a cpu without avx
  2. start slips
  3. slips crashs

Expected behavior
slips print a warning which modules get deactivated and runs

def load_modules(self):

Screenshots
If applicable, add screenshots to help explain your problem.

Branch
v1.1

Environment (please complete the following information):

  • OS: Debian
  • Version: bookworm
  • Python version: 3.11.2
  • Are you running slips in docker or locally? yes
  • Docker version (if running slips in docker) 20.10.24+dfsg1
  • Slips docker image used (if running slips in docker) ubuntu-image, dependency-image

Additional context
python3 -c "from cpufeature.extension import CPUFeature; print (CPUFeature.get('AVX'))"

@AlyaGomaa
Copy link
Collaborator

hiii @be-a-panther that's a nice suggestion! i'm on it

@AlyaGomaa AlyaGomaa self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants
@AlyaGomaa @be-a-panther and others