# nvidia_libs_test **Repository Path**: mirrors_google/nvidia_libs_test ## Basic Information - **Project Name**: nvidia_libs_test - **Description**: Tests and benchmarks for cudnn (and in the future, other nvidia libraries) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tests and Benchmarks for cuDNN The repository contains a set of convolution tests and benchmarks for NVIDIA's [cuDNN](https://developer.nvidia.com/cudnn) library. This is not an officially supported Google product. ## Prerequisites Install bazel ([instructions](https://docs.bazel.build/versions/master/install.html)). Install the [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) (CUDA 8 is the minimal supported version) Install the [cuDNN SDK](https://developer.nvidia.com/cudnn) (cuDNN 6 is the minimal supported version). ## Common parameters Bazel parameters: * `-c opt` Build with optimizations. Recommended for benchmarks. * `--action_env=CUDA_PATH=`: Path to the CUDA SDK directory. Default is `/usr/local/cuda`. * `--action_env=CUDNN_PATH=`: Path to the CUDNN SDK directory. Default is `CUDA_PATH`. * `--action_env=CC=`: Name of (or path to) the compiler. Examples: `clang`, `gcc-6`. Executable parameters: * `--cuda_device=`: CUDA device to use. Default is 0. * `--device_memory_limit_mb=`: Upper limit of device memory (in megabytes) to use for cuDNN workspace after tensors have been allocated. Negative values specify an offset from the memory available at startup. Default is 4096. ## Test instructions `bazel run [bazel parameters] //:cudnn_test -- [test parameters]` Bazel can run tests in a sandbox (which allows reporting crashes as failures). To run in a sandbox, replace 'bazel run ...' with 'bazel test ...' and prefix each test parameter with '--test_arg=' `bazel test [bazel parameters] //:cudnn_test --test_arg=[test parameter 1] ...` Test parameters: * `--gtest_filter=`: Only run tests that match the given pattern. Example pattern: `'*FWD*'`. * `--proto_path=`: Path to textproto file that contains additional convolutions to run. Default is `'cudnn_tests.textproto'`. * `--gtest_random_seed=`: Seed for random generator. Changing the value produces tests with a different mix of tensor shapes, filter sizes, etc. Default is 0. * `--gtest_also_run_disabled_tests`: Include disabled tests (i.e. tests with names that start with `DISABLED_`). * `--help` for more options. ## Benchmark instructions `bazel run [bazel parameters] //:cudnn_benchmark -- [benchmark parameters]` Benchmark parameters: * `--benchmark_filter=`: Only run tests that match the given regex pattern. Example: `'BWD_DATA'`. * `--proto_path=`: Path to textproto file that contains additional convolutions to run. Default is `'cudnn_benchmarks.textproto'`. * `--timing=`: How to measure execution time. One of `'kernel-duration'` (default), `'kernel-cycles'`, or `'host-duration'`. * `--help` and `--helpfull` for more options.