Skip to content

Disable modules if HW support is missing #967

@be-a-panther

Description

@be-a-panther

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'))"

Metadata

Metadata

Assignees

Labels

Better DetectionTasks for making better detections of threats

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions