Repository: mlcommons/inference
Issue: Error : Please envoke mlcr "get cudnn" --tar_file={full path to the cuDNN tar file}
Root cause: Documentation Deficiency

When trying to run bert on cuda i am gettting this error

[2025-02-12 11:40:11,344 module.py:4352 INFO] -         # Requested paths: /media/junikki/research/mlcommons/mlc/bin:/home/junikki/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/cuda/bin:/usr/cuda/bin:/usr/local/cuda-11/bin:/usr/cuda-11/bin:/usr/local/cuda-12/bin:/usr/cuda-12/bin:/usr/local/packages/cuda:/usr/local/cuda/lib64:/usr/cuda/lib64:/usr/local/cuda/lib:/usr/cuda/lib:/usr/local/cuda-11/lib64:/usr/cuda-11/lib:/usr/local/cuda-12/lib:/usr/cuda-12/lib:/usr/local/packages/cuda/lib:$CUDNN_ROOT/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib64:/usr/lib64:/usr/local/lib:/lib:/usr/lib
Traceback (most recent call last):
  File "/media/junikki/research/mlcommons/mlc/bin/mlc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1414, in main
    res = method(run_args)
          ^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1185, in run
    return self.call_script_module_function("run", run_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1165, in call_script_module_function
    result = automation_instance.run(run_args)  # Pass args to the run method
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 225, in run
    r = self._run(i)
        ^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 1772, in _run
    r = customize_code.preprocess(ii)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/script/run-mlperf-inference-app/customize.py", line 286, in preprocess
    r = mlc.access(ii)
        ^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 93, in access
    result = method(self, options)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1185, in run
    return self.call_script_module_function("run", run_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1165, in call_script_module_function
    result = automation_instance.run(run_args)  # Pass args to the run method
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 225, in run
    r = self._run(i)
        ^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 1842, in _run
    r = self._call_run_deps(prehook_deps, self.local_env_keys, local_env_keys_from_meta, env, state, const, const_state, add_deps_recursive,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 3532, in _call_run_deps
    r = script._run_deps(deps, local_env_keys, env, state, const, const_state, add_deps_recursive, recursion_spaces,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 3702, in _run_deps
    r = self.action_object.access(ii)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 93, in access
    result = method(self, options)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1185, in run
    return self.call_script_module_function("run", run_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1165, in call_script_module_function
    result = automation_instance.run(run_args)  # Pass args to the run method
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 225, in run
    r = self._run(i)
        ^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 1631, in _run
    r = self._call_run_deps(deps, self.local_env_keys, local_env_keys_from_meta, env, state, const, const_state, add_deps_recursive,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 3532, in _call_run_deps
    r = script._run_deps(deps, local_env_keys, env, state, const, const_state, add_deps_recursive, recursion_spaces,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 3702, in _run_deps
    r = self.action_object.access(ii)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 93, in access
    result = method(self, options)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1185, in run
    return self.call_script_module_function("run", run_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1165, in call_script_module_function
    result = automation_instance.run(run_args)  # Pass args to the run method
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 225, in run
    r = self._run(i)
        ^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 1885, in _run
    r = self._run_deps(post_deps, clean_env_keys_post_deps, env, state, const, const_state, add_deps_recursive, recursion_spaces,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/junikki/MLC/repos/mlcommons@mlperf-automations/automation/script/module.py", line 3702, in _run_deps
    r = self.action_object.access(ii)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 93, in access
    result = method(self, options)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1185, in run
    return self.call_script_module_function("run", run_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/junikki/research/mlcommons/mlc/lib/python3.12/site-packages/mlc/main.py", line 1175, in call_script_module_function
    raise ScriptExecutionError(f"Script {function_name} execution failed. Error : {error}")
mlc.main.ScriptExecutionError: Script run execution failed. Error : Please envoke mlcr "get cudnn" --tar_file={full path to the cuDNN tar file}


If you want to run without using docker, the option is to

```
wget https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.7.1.26_cuda12-archive.tar.xz
```
```
mlcr get,cudnn --tar_file=`pwd`/cudnn-linux-x86_64-9.7.1.26_cuda12-archive.tar.xz
```

this worked @arjunsuresh thanks