1 2 3 4 5 6 7 8 9 10 11
#include <cuda_fp16.h> #define texto __float2half #define texfrom __half2float #define textype half //#define texto //#define texfrom //#define textype float