google / fuzzbench

FuzzBench - Fuzzer benchmarking as a service.

Home Page:https://google.github.io/fuzzbench/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unknown flag: --gpus all when executing run_experiment.py

harrison4ride opened this issue · comments

Hi all,

I am following the steps to test my ai-fuzzer by add new fuzzer and run local experiment.

In add new fuzzer, it was successfully built. But I need to add a special config --gpus all in docker run command to make sure the docker can use GPUs. It was successful in command docker run --cpus=1 --gpus all -it --shm-size=2g --cap-add SYS_NICE --cap-add SYS_PTRACE -e FUZZ_OUTSIDE_EXPERIMENT=1 -e FORCE_LOCAL=1 -e TRIAL_ID=1 -e FUZZER=aflplusplus_llm -e BENCHMARK=libjpeg-turbo_libjpeg_turbo_fuzzer -e FUZZ_TARGET=libjpeg_turbo_fuzzer --entrypoint=bash -it [gcr.io/fuzzbench/runners/aflplusplus_llm/libjpeg-turbo_libjpeg_turbo_fuzzer](http://gcr.io/fuzzbench/runners/aflplusplus_llm/libjpeg-turbo_libjpeg_turbo_fuzzer).

But when I follow the steps in running-a-local-experiment, I modified the script that adding same config --gpus all. it just shows unknown flag: --gpus all ERROR:root:Executed command: "docker run -ti --rm --gpus all -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/experiment-data:/tmp/experiment-data -v /tmp/report-data:/tmp/report-data -e LOCAL_EXPERIMENT=True -e INSTANCE_NAME=d-testing -e EXPERIMENT=testing -e SQL_DATABASE_URL=sqlite:////tmp/experiment-data/local.db?check_same_thread=False -e EXPERIMENT_FILESTORE=/tmp/experiment-data -e SNAPSHOT_PERIOD=900 -e REPORT_FILESTORE=/tmp/report-data -e DOCKER_REGISTRY=gcr.io/fuzzbench -e CONCURRENT_BUILDS=30 -e WORKER_POOL_NAME= --shm-size=2g --cap-add=SYS_PTRACE --cap-add=SYS_NICE --name=dispatcher-container gcr.io/fuzzbench/dispatcher-image /bin/bash -c rsync -r "${EXPERIMENT_FILESTORE}/${EXPERIMENT}/input/" ${WORK} && mkdir ${WORK}/src && tar -xvzf ${WORK}/src.tar.gz -C ${WORK}/src && PYTHONPATH=${WORK}/src python3 ${WORK}/src/experiment/dispatcher.py || /bin/bash" returned: 125.

Any clues about how to fix this? Thank you very much for the help.