Added preliminary support for half floats on CUDA GPU. For now we can simply convert floats into half floats and vice versa

This commit is contained in:
Benoit Steiner
2016-02-19 06:16:07 +00:00
parent 8ce46f9d89
commit 17b9fbed34
4 changed files with 109 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ namespace internal {
template<> struct is_arithmetic<float4> { enum { value = true }; };
template<> struct is_arithmetic<double2> { enum { value = true }; };
template<> struct packet_traits<float> : default_packet_traits
{
typedef float4 type;