Skip to content

vosen/ptx_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project is purely a developer tool. If you are a ZLUDA user, it's not useful to you.

This project tests CUDA PTX compiler API. The main goal of this project is to ensure that ZLUDA's PTX compiler is compatible with NVIDIA PTX compiler.

Each test case in the suite tests a particular instruction by either:

  • testsing all possible inputs if the input size is small anough (4 bytes or less)
  • testing against a large number of randomly generated inputs

Limitations

  • This project requires nightly Rust compiler. This is due to limitations in Rust's f16 and floating point rounding support.
  • By default this projects builds with target-cpu=native. Running CPU-side verificaiton takes a lot of time and this improves the run times.

Usage

List tests

Print all possible test cases to stdout:

cargo +nightly run -r -- -l

Run tests

Run tests using CUDA library at <CUDA_LIB> path and matching <REGEX_FILTER> regex:

cargo +nightly run -r -- <CUDA_LIB> -f <REGEX_FILTER>

Help

Print help message:

cargo +nightly run -r -- -h

License

This software is dual-licensed under either the Apache 2.0 license or the MIT license. See LICENSE-APACHE or LICENSE-MIT for details

About

ZLUDA PTX test suite

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published