File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 62
62
#define _CLC_VECTOR_CONVERT_TO (SUFFIX ) \
63
63
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
64
64
_CLC_VECTOR_CONVERT_FROM(half, SUFFIX)
65
+ #else
65
66
#define _CLC_VECTOR_CONVERT_TO (SUFFIX ) \
66
67
_CLC_VECTOR_CONVERT_TO1(SUFFIX)
67
68
#endif
Original file line number Diff line number Diff line change @@ -142,7 +142,10 @@ def conditional_guard(src, dst):
142
142
float64_count = float64_count + 1
143
143
elif dst in float16_types :
144
144
float16_count = float16_count + 1
145
- if float64_count > 0 :
145
+ if float64_count > 0 and float16_count > 0 :
146
+ print ("#if defined(cl_khr_fp16) && defined(cl_khr_fp64)" )
147
+ return True
148
+ elif float64_count > 0 :
146
149
# In embedded profile, if cl_khr_fp64 is supported cles_khr_int64 has to be
147
150
print ("#ifdef cl_khr_fp64" )
148
151
return True
You can’t perform that action at this time.
0 commit comments