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 8
8
9
9
#include <clcmacro.h>
10
10
#include <spirv/spirv.h>
11
+ #include "../../include/libdevice.h"
11
12
12
13
extern int __clc_nvvm_reflect_arch ();
13
14
@@ -37,7 +38,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmax(half x, half y) {
37
38
if (__clc_nvvm_reflect_arch () >= 800 ) {
38
39
return __nvvm_fmax_f16 (x , y );
39
40
}
40
- return __nv_fmaxf (x ,y );
41
+ return __nvvm_fmax_f (x ,y );
41
42
}
42
43
_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmax (half2 x , half2 y ) {
43
44
if (__clc_nvvm_reflect_arch () >= 800 ) {
Original file line number Diff line number Diff line change 8
8
9
9
#include <clcmacro.h>
10
10
#include <spirv/spirv.h>
11
+ #include "../../include/libdevice.h"
11
12
12
13
extern int __clc_nvvm_reflect_arch ();
13
14
@@ -37,7 +38,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmin(half x, half y) {
37
38
if (__clc_nvvm_reflect_arch () >= 800 ) {
38
39
return __nvvm_fmin_f16 (x , y );
39
40
}
40
- return __nv_fminf (x ,y );
41
+ return __nvvm_fmin_f (x ,y );
41
42
}
42
43
_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmin (half2 x , half2 y ) {
43
44
if (__clc_nvvm_reflect_arch () >= 800 ) {
You can’t perform that action at this time.
0 commit comments