Skip to content

amrhamedp/GPU-tests

 
 

Repository files navigation

GPU tests

Some tests on Nvidia GPUs.

Summary

This code uses two types of 3D textures.

Both of them contain unsigned short (16 bits) values.

  • The first one will output normalized float. Output values are interpolated by the hardware.
  • The second one will output unsigned short values. We don't use the hardware interpolation : we "manually" compute the interpolation by reading the 8 needed texels.

Then we compare both results. The software interpolation is more precise so we can evaluate the loss of precision when using hardware interpolation.

Supported languages

  • C
  • CUDA

Example

Here are the output you should expect on an Nvidia GTX580.

$ make all
$ make run
./compareHardwareSoftwareTexInterp
L2 norm of difference : 0.015639.
$ make clean

Remark

You can also profile both kernels to compare performance between the two approachs.

About

Some GPU tests on textures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Cuda 83.7%
  • C 9.2%
  • Makefile 7.1%