mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-01 20:20:29 +08:00
Small update to README.md to clarify test script usage.
This commit is contained in:
parent
c8034f368a
commit
914ca00f89
10
README.md
10
README.md
@ -142,7 +142,8 @@ of the previous tags prior to the CMake build system transition in 12.8.
|
|||||||
## Running All Samples as Tests
|
## Running All Samples as Tests
|
||||||
|
|
||||||
It's important to note that the CUDA samples are _not_ intended as a validation suite for CUDA. They do not cover corner cases, they do not completely cover the
|
It's important to note that the CUDA samples are _not_ intended as a validation suite for CUDA. They do not cover corner cases, they do not completely cover the
|
||||||
runtime and driver APIs, etc. That said, it can sometimes be useful to run all of the samples as a quick sanity check and we provide a script to do so, `run_tests.py`.
|
runtime and driver APIs, are not intended for performance benchmarking, etc. That said, it can sometimes be useful to run all of the samples as a quick sanity check and
|
||||||
|
we provide a script to do so, `run_tests.py`.
|
||||||
|
|
||||||
This Python3 script finds all executables in a subdirectory you choose, matching application names with command line arguments specified in `test_args.json`. It accepts
|
This Python3 script finds all executables in a subdirectory you choose, matching application names with command line arguments specified in `test_args.json`. It accepts
|
||||||
the following command line arguments:
|
the following command line arguments:
|
||||||
@ -181,6 +182,11 @@ Skipping fluidsGL (marked as skip in config)
|
|||||||
For executables to run one time only with arguments, specify each argument as a list entry. Each entry in the JSON file will be appended to the command line, separated
|
For executables to run one time only with arguments, specify each argument as a list entry. Each entry in the JSON file will be appended to the command line, separated
|
||||||
by a space.
|
by a space.
|
||||||
|
|
||||||
|
All applications execute from their current directory, so all paths are relative to the application's location.
|
||||||
|
|
||||||
|
Note that if an application needs no arguments, this entry is optional. An executable found without a matching entry in the JSON will just run as `./application` from its
|
||||||
|
current directory.
|
||||||
|
|
||||||
Configuration example:
|
Configuration example:
|
||||||
```json
|
```json
|
||||||
"ptxgen": {
|
"ptxgen": {
|
||||||
@ -202,6 +208,8 @@ Running ptxgen
|
|||||||
|
|
||||||
For executables to run multiple times with different command line arguments, specify any number of sets of args within a "runs" list.
|
For executables to run multiple times with different command line arguments, specify any number of sets of args within a "runs" list.
|
||||||
|
|
||||||
|
As with single runs, all applications execute from their current directory, so all paths are relative to the application's location.
|
||||||
|
|
||||||
Configuration example:
|
Configuration example:
|
||||||
```json
|
```json
|
||||||
"recursiveGaussian": {
|
"recursiveGaussian": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user