Skip to content

Add differential use handler #89

Add differential use handler

Add differential use handler #89

Triggered via pull request April 1, 2024 16:27
Status Failure
Total duration 1m 17s
Artifacts

Format.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 4 warnings
format
Process completed with exit code 1.
format: src/api.jl#L234
[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/api.jl:234:-EnzymeRegisterDiffUseCallHandler(name, handle) = ccall((:EnzymeRegisterDiffUseCallHandler, libEnzyme), Cvoid, (Cstring, CustomDiffUse), name, handle) src/api.jl:235:-EnzymeSetCalledFunction(ci::LLVM.CallInst, fn::LLVM.Function, toremove) = ccall((:EnzymeSetCalledFunction, libEnzyme), Cvoid, (LLVMValueRef, LLVMValueRef, Ptr{Int64}, Int64), ci, fn, toremove, length(toremove)) src/api.jl:236:-EnzymeCloneFunctionWithoutReturnOrArgs(fn::LLVM.Function, keepret, args) = ccall((:EnzymeCloneFunctionWithoutReturnOrArgs, libEnzyme), LLVMValueRef, (LLVMValueRef,UInt8,Ptr{Int64}, Int64), fn, keepret, args, length(args)) src/api.jl:237:-EnzymeGetShadowType(width, T) = ccall((:EnzymeGetShadowType, libEnzyme), LLVMTypeRef, (UInt64,LLVMTypeRef), width, T) src/api.jl:238:- src/api.jl:239:-EnzymeGradientUtilsReplaceAWithB(gutils, a, b) = ccall((:EnzymeGradientUtilsReplaceAWithB, libEnzyme), Cvoid, (EnzymeGradientUtilsRef,LLVMValueRef, LLVMValueRef), gutils, a, b) src/api.jl:240:-EnzymeGradientUtilsErase(gutils, a) = ccall((:EnzymeGradientUtilsErase, libEnzyme), Cvoid, (EnzymeGradientUtilsRef,LLVMValueRef), gutils, a) src/api.jl:241:-EnzymeGradientUtilsEraseWithPlaceholder(gutils, a, orig, erase) = ccall((:EnzymeGradientUtilsEraseWithPlaceholder, libEnzyme), Cvoid, (EnzymeGradientUtilsRef,LLVMValueRef, LLVMValueRef, UInt8), gutils, a, orig, erase) src/api.jl:242:-EnzymeGradientUtilsGetMode(gutils) = ccall((:EnzymeGradientUtilsGetMode, libEnzyme), CDerivativeMode, (EnzymeGradientUtilsRef,), gutils) src/api.jl:243:-EnzymeGradientUtilsGetWidth(gutils) = ccall((:EnzymeGradientUtilsGetWidth, libEnzyme), UInt64, (EnzymeGradientUtilsRef,), gutils) src/api.jl:244:-EnzymeGradientUtilsNewFromOriginal(gutils, val) = ccall((:EnzymeGradientUtilsNewFromOriginal, libEnzyme), LLVMValueRef, (EnzymeGradientUtilsRef, LLVMValueRef), gutils, val) src/api.jl:245:-EnzymeGradientUtilsSetDebugLocFromOriginal(gutils, val, orig) = ccall((:EnzymeGradientUtilsSetDebugLocFromOriginal, libEnzyme), Cvoid, (EnzymeGradientUtilsRef, LLVMValueRef, LLVMValueRef), gutils, val, orig) src/api.jl:246:-EnzymeGradientUtilsLookup(gutils, val, B) = ccall((:EnzymeGradientUtilsLookup, libEnzyme), LLVMValueRef, (EnzymeGradientUtilsRef, LLVMValueRef, LLVM.API.LLVMBuilderRef), gutils, val, B) src/api.jl:247:-EnzymeGradientUtilsInvertPointer(gutils, val, B) = ccall((:EnzymeGradientUtilsInvertPointer, libEnzyme), LLVMValueRef, (EnzymeGradientUtilsRef, LLVMValueRef, LLVM.API.LLVMBuilderRef), gutils, val, B) src/api.jl:248:-EnzymeGradientUtilsDiffe(gutils, val, B) = ccall((:EnzymeGradientUtilsDiffe, libEnzyme), LLVMValueRef, (EnzymeGradientUtilsRef, LLVMValueRef, LLVM.API.LLVMBuilderRef), gutils, val, B) src/api.jl:249:-EnzymeGradientUtilsAddToDiffe(gutils, val, diffe, B, T) = ccall((:EnzymeGradientUtilsAddToDiffe, libEnzyme), Cvoid, (EnzymeGradientUtilsRef, LLVMValueRef, LLVMValueRef, LLVM.API.LLVMBuilderRef, LLVMTypeRef), gutils, val, diffe, B, T) src/api.jl:250:-function EnzymeGradientUtilsAddToInvertedPointerDiffeTT(gutils, orig, origVal, vd, size, origptr, prediff, B, align, premask) src/api.jl:251:- ccall((:EnzymeGradientUtilsAddToInvertedPointerDiffeTT, libEnzyme), Cvoid, (EnzymeGradientUtilsRef, LLVMValueRef, LLVMValueRef, CTypeTreeRef, Cuint, LLVMValueRef, LLVMValueRef, LLVM.API.LLVMBuilderRef, Cuint, LLVMValueRef), gutils, orig, origVal, vd, size, origptr, prediff, B, align, premask) src/api.jl:252:-end src/api.jl:253:- src/api.jl:254:-EnzymeGradientUtilsSetDiffe(gutils, val, diffe, B) = ccall((:EnzymeGradientUtilsSetDiffe, libEnzyme), Cvoid, (EnzymeGradientUtilsRef, LLVMValueRef, LLVMValueRef, LLVM.API.LLVMBuilderRef), gutils, val, diffe, B) src/api.jl:255:-EnzymeGradientUtilsIsConstantValue(gutils, val) = ccall((:EnzymeGradientUtilsIsConstantValue, libEnzyme), UInt8, (EnzymeGradientUtilsRef, LLVMValueRef), gutils, val) src/api.jl:256:-EnzymeGradientUtilsIsConstantInstruction(gutils, val) = ccall((:EnzymeGradientUtilsIsConstantInstruction, libEnzyme), UInt8, (EnzymeGradientUtilsRef, LLVMValueRef), gutils, va
format: src/rules/llvmrules.jl#L1152
[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/rules/llvmrules.jl:1152:- :(@cfunction((B, OrigCI, gutils, normalR, shadowR) -> begin src/rules/llvmrules.jl:1153:- UInt8($f(LLVM.IRBuilder(B), LLVM.CallInst(OrigCI), GradientUtils(gutils), normalR, shadowR)::Bool) src/rules/llvmrules.jl:1154:- end, UInt8, (LLVM.API.LLVMBuilderRef, LLVM.API.LLVMValueRef, API.EnzymeGradientUtilsRef, Ptr{LLVM.API.LLVMValueRef}, Ptr{LLVM.API.LLVMValueRef}) src/rules/llvmrules.jl:1155:- )) src/rules/llvmrules.jl:1232:+ return :(@cfunction((B, OrigCI, gutils, normalR, shadowR) -> begin src/rules/llvmrules.jl:1233:+ UInt8($f(LLVM.IRBuilder(B), LLVM.CallInst(OrigCI), src/rules/llvmrules.jl:1234:+ GradientUtils(gutils), normalR, shadowR)::Bool) src/rules/llvmrules.jl:1235:+ end, UInt8, src/rules/llvmrules.jl:1236:+ (LLVM.API.LLVMBuilderRef, LLVM.API.LLVMValueRef, src/rules/llvmrules.jl:1237:+ API.EnzymeGradientUtilsRef, Ptr{LLVM.API.LLVMValueRef}, src/rules/llvmrules.jl:1238:+ Ptr{LLVM.API.LLVMValueRef})))
format: src/rules/llvmrules.jl#L1169
[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/rules/llvmrules.jl:1169:- API.EnzymeRegisterDiffUseCallHandler("enzyme_custom", @diffusefunc(enzyme_custom_diffuse)) src/rules/llvmrules.jl:1170:- register_handler!( src/rules/llvmrules.jl:1171:- ("julia.call",), src/rules/llvmrules.jl:1172:- @augfunc(jlcall_augfwd), src/rules/llvmrules.jl:1173:- @revfunc(jlcall_rev), src/rules/llvmrules.jl:1174:- @fwdfunc(jlcall_fwd), src/rules/llvmrules.jl:1175:- ) src/rules/llvmrules.jl:1176:- register_handler!( src/rules/llvmrules.jl:1177:- ("julia.call2",), src/rules/llvmrules.jl:1178:- @augfunc(jlcall2_augfwd), src/rules/llvmrules.jl:1179:- @revfunc(jlcall2_rev), src/rules/llvmrules.jl:1180:- @fwdfunc(jlcall2_fwd), src/rules/llvmrules.jl:1181:- ) src/rules/llvmrules.jl:1182:- register_handler!( src/rules/llvmrules.jl:1183:- ("jl_apply_generic", "ijl_apply_generic"), src/rules/llvmrules.jl:1184:- @augfunc(generic_augfwd), src/rules/llvmrules.jl:1185:- @revfunc(generic_rev), src/rules/llvmrules.jl:1186:- @fwdfunc(generic_fwd), src/rules/llvmrules.jl:1187:- ) src/rules/llvmrules.jl:1188:- register_handler!( src/rules/llvmrules.jl:1189:- ("jl_invoke", "ijl_invoke", "jl_f_invoke"), src/rules/llvmrules.jl:1190:- @augfunc(invoke_augfwd), src/rules/llvmrules.jl:1191:- @revfunc(invoke_rev), src/rules/llvmrules.jl:1192:- @fwdfunc(invoke_fwd), src/rules/llvmrules.jl:1193:- ) src/rules/llvmrules.jl:1194:- register_handler!( src/rules/llvmrules.jl:1195:- ("jl_f__apply_latest", "jl_f__call_latest"), src/rules/llvmrules.jl:1196:- @augfunc(apply_latest_augfwd), src/rules/llvmrules.jl:1197:- @revfunc(apply_latest_rev), src/rules/llvmrules.jl:1198:- @fwdfunc(apply_latest_fwd), src/rules/llvmrules.jl:1199:- ) src/rules/llvmrules.jl:1200:- register_handler!( src/rules/llvmrules.jl:1201:- ("jl_threadsfor",), src/rules/llvmrules.jl:1202:- @augfunc(threadsfor_augfwd), src/rules/llvmrules.jl:1203:- @revfunc(threadsfor_rev), src/rules/llvmrules.jl:1204:- @fwdfunc(threadsfor_fwd), src/rules/llvmrules.jl:1205:- ) src/rules/llvmrules.jl:1206:- register_handler!( src/rules/llvmrules.jl:1207:- ("jl_pmap",), src/rules/llvmrules.jl:1208:- @augfunc(pmap_augfwd), src/rules/llvmrules.jl:1209:- @revfunc(pmap_rev), src/rules/llvmrules.jl:1210:- @fwdfunc(pmap_fwd), src/rules/llvmrules.jl:1211:- ) src/rules/llvmrules.jl:1212:- register_handler!( src/rules/llvmrules.jl:1213:- ("jl_new_task", "ijl_new_task"), src/rules/llvmrules.jl:1214:- @augfunc(newtask_augfwd), src/rules/llvmrules.jl:1215:- @revfunc(newtask_rev), src/rules/llvmrules.jl:1216:- @fwdfunc(newtask_fwd), src/rules/llvmrules.jl:1217:- ) src/rules/llvmrules.jl:1218:- register_handler!( src/rules/llvmrules.jl:1219:- ("jl_set_task_threadpoolid", "ijl_set_task_threadpoolid"), src/rules/llvmrules.jl:1220:- @augfunc(set_task_tid_augfwd), src/rules/llvmrules.jl:1221:- @revfunc(set_task_tid_rev), src/rules/llvmrules.jl:1222:- @fwdfunc(set_task_tid_fwd), src/rules/llvmrules.jl:1223:- ) src/rules/llvmrules.jl:1224:- register_handler!( src/rules/llvmrules.jl:1225:- ("jl_enq_work",), src/rules/llvmrules.jl:1226:- @augfunc(enq_work_augfwd), src/rules/llvmrules.jl:1227:- @revfunc(enq_work_rev), src/rules/llvmrules.jl:1228:- @fwdfunc(enq_work_fwd) src/rules/llvmrules.jl:1229:- ) src/rules/llvmrules.jl:1230:- register_handler!( src/rules/llvmrules.jl:1231:- ("enzyme_custom",), src/rules/llvmrules.jl:1232:- @augfunc(enzyme_custom_augfwd), src/rules/llvmrules.jl:1233:- @revfunc(enzyme_custom_rev), src/rules/llvmrules.jl:1234:- @fwdfunc(enzyme_custom_fwd) src/rules/llvmrules.jl:1235:- ) src/rules/llvmrules.jl:1236:- register_handler!( src/rules/llvmrules.jl:1237:- ("jl_wait",), src/rules/llvmrules.jl:1238:- @augfunc(wait_augfwd), sr
format
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.