cuda_bf16.h 267 Bytes
Newer Older
fuhuangpei's avatar
fuhuangpei committed
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <hip/hip_bfloat16.h>

using __nv_bfloat16 = hip_bfloat16;

struct __nv_bfloat16_raw {
  uint16_t x;
  __host__ __device__ __nv_bfloat16_raw() = default;
  __host__ __device__ explicit __nv_bfloat16_raw(__nv_bfloat16 const& v) : x(v.data) {}
};