Interval Arithmetic Operations with Outward Rounding in CUDA C++ and CUDA Python

Hi! Our team is trying to implement basic interval arithmetic operations (e.g., addition, subtraction, multiplication, and subdivision) with outward rounding in both CUDA C++ and CUDA Python (especially Numba). I heard that there was a “cuda_interval_lib.h” file included in the previous versions of cuda toolkit, but I cannot find that file anymore. Could you kindly suggest where I can find the “cuda_interval_lib.h” file or is there any other tools provided by NVIDIA for interval arithmetic? Thank you!

This appears to have been part of the CUDA sample programs distributed with (at least) CUDA 6. From a packing list I found at NVIDIA’s website the following files were installed:

/usr/local/cuda-6.0/samples/6_Advanced/interval/cpu_interval.h
/usr/local/cuda-6.0/samples/6_Advanced/interval/cuda_interval.h
/usr/local/cuda-6.0/samples/6_Advanced/interval/cuda_interval_lib.h
/usr/local/cuda-6.0/samples/6_Advanced/interval/cuda_interval_rounded_arith.h

The CUDA Toolkit archive for all CUDA versions going back to 1.0 is here:

You might also be interested in this publication:

Sylvain Collange, Marc Daumas, and David Defour, “Interval Arithmetic in CUDA.” In Wen-mei W. Hwu (ed.), GPU Computing Gems Jade Edition, Morgan Kaufmann 2012, pp. 99-107

Thank you for your information! The paper is very helpful. However, I cannot download CUDA 6 through the NVIDIA website (CUDA Toolkit 6.0 | NVIDIA Developer). It seems that the website blocks all the downloads (I tried to download the exe file using two computers).

If a nice NVIDIA staff see this post, could you kindly fix the website problem or suggest other ways to download these files in CUDA 6? Thanks.

Some time ago, NVIDIA migrated the CUDA sample codes to a GitHub repository, and I do find the requested file there:

1 Like

The attempt to download CUDA 6 will be more challenging because it is hosted behind an http: link not https: so modern browsers will refuse to download it.

I think its not very likely that NVIDIA will “fix” this. I suggest finding a way to download from an http: link using a browser like chrome (it is possible - it requires a few extra clicks) or else use the items from the github link njuffa indicated.

1 Like

I just downloaded these files through the link you provided. Your help is greatly appreciated!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.