File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
libclc/ptx-nvidiacl/libspirv/math Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 88
99#include <clcmacro.h>
1010#include <spirv/spirv.h>
11+ #include "../../include/libdevice.h"
1112
1213extern int __clc_nvvm_reflect_arch ();
1314
@@ -37,7 +38,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmax(half x, half y) {
3738 if (__clc_nvvm_reflect_arch () >= 800 ) {
3839 return __nvvm_fmax_f16 (x , y );
3940 }
40- return __nv_fmaxf (x ,y );
41+ return __nvvm_fmax_f (x ,y );
4142}
4243_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmax (half2 x , half2 y ) {
4344 if (__clc_nvvm_reflect_arch () >= 800 ) {
Original file line number Diff line number Diff line change 88
99#include <clcmacro.h>
1010#include <spirv/spirv.h>
11+ #include "../../include/libdevice.h"
1112
1213extern int __clc_nvvm_reflect_arch ();
1314
@@ -37,7 +38,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmin(half x, half y) {
3738 if (__clc_nvvm_reflect_arch () >= 800 ) {
3839 return __nvvm_fmin_f16 (x , y );
3940 }
40- return __nv_fminf (x ,y );
41+ return __nvvm_fmin_f (x ,y );
4142}
4243_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmin (half2 x , half2 y ) {
4344 if (__clc_nvvm_reflect_arch () >= 800 ) {
You can’t perform that action at this time.
0 commit comments