title: Is there a host function to convert half2 to float2 and vice versa?
body: <p>In GPU, it is possible to easily convert <code>half2</code> to <code>float2</code> as follows:</p>
  
  <pre><code>float2 float2_value = __half22float2(half2_value);
  </code></pre>
  
  <p>Also, we can convert from <code>float2</code> to <code>half2</code>:</p>
  
  <pre><code>half2 half2_value = __float22half2_rn(float2_value);
  </code></pre>
  
  <p>I was wondering if it is possible to perform these operations on CPU when we need verification or when we need to prepare the data to send it to GPU.</p>