docker_cuda.py 566 B

1234567891011121314151617
  1. from evaluator import *
  2. DESCRIPTION = "This test case checks if the model can debug a docker cuda error"
  3. TAGS = ['explain']
  4. question = """
  5. nicholas@server:~/project$ sudo docker start myproject
  6. [sudo] password for nicholas:
  7. Error response from daemon: could not select device driver "" with capabilities: [[gpu]]
  8. Error: failed to start containers: myproject
  9. """
  10. TestFixDockerCuda = question >> LLMRun() >> (SubstringEvaluator("nvidia-container-toolkit") | SubstringEvaluator("nvidia-docker2"))
  11. if __name__ == "__main__":
  12. print(run_test(TestFixDockerCuda))