imate
C++/CUDA Reference
Loading...
Searching...
No Matches
_cu_div.h File Reference
#include "../_cu_definitions/cu_types.h"
#include <cassert>
Include dependency graph for _cu_div.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cu_arithmetic
 perform arithmetics for __half and __nv_bfloat16 types in round-to-nearest-even mode.
 
namespace  cu_arithmetics
 Cast from float to __half and __nv_bfloat16 types and vice-versa, and float to double and vice-versa.
 

Functions

template<typename DataType >
__host__ __device__ DataType cu_arithmetics::div (const DataType x, const DataType y)
 Divide two floating point numbers in round-to-nearest-even mode.
 
template<>
__host__ __device__ float cu_arithmetics::div< float > (const float x, const float y)
 Divide two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode.
 
template<>
__host__ __device__ double cu_arithmetics::div< double > (const double x, const double y)
 Divide two double type numbers in round-to-nearest-even mode.