Skip to content

Commit

Permalink
gpu: intel: ocl: add undef to double conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarukin committed Jan 27, 2025
1 parent ebcf8d1 commit 5cefaa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu/intel/ocl/ocl_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ IF_DOUBLE_SUPPORTED(IF_HALF_SUPPORTED(def_std_into(double, half)));

def_undef_into(float);
def_undef_into(int);
IF_DOUBLE_SUPPORTED(def_undef_into(double));

#undef def_std_into
#undef def_std_into_sat
Expand Down
3 changes: 3 additions & 0 deletions src/gpu/intel/ocl/ocl_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ DEF_load(float, e8m0);
#endif // cl_khr_fp16

#ifdef cl_khr_fp64
// Included for compile time compatibility
DEF_load(double, undef_data);

DEF_load(float, double); // Needed for src=f64, dst=f32
DEF_load(double, bf16);
DEF_load(double, float);
Expand Down

0 comments on commit 5cefaa8

Please sign in to comment.