You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

libcuda-wrap_11.4.h 371 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838
  1. // generated by wraplib.py
  2. // --- begin functions to be implemented
  3. #ifndef _WRAPLIB_API_CALL
  4. #define _WRAPLIB_API_CALL
  5. #endif
  6. #ifndef _WRAPLIB_CALLBACK
  7. #define _WRAPLIB_CALLBACK
  8. #endif
  9. #ifndef ON_ENTRY
  10. #define ON_ENTRY(x)
  11. #endif
  12. static void* get_library_handle();
  13. static void* resolve_library_func(void* , const char*);
  14. namespace {
  15. template<typename T> T on_init_failed(int func_idx);
  16. }
  17. // --- end functions to be implemented
  18. #include <mutex>
  19. #include <cstddef>
  20. static void load_library();
  21. static CUresult _WRAPLIB_API_CALL cuGetErrorString_init(CUresult arg0, const char **arg1) {
  22. load_library();
  23. return cuGetErrorString(arg0, arg1);
  24. }
  25. static CUresult _WRAPLIB_API_CALL cuGetErrorString_error(CUresult, const char **) {
  26. return on_init_failed<CUresult >(0);
  27. }
  28. static CUresult _WRAPLIB_API_CALL cuGetErrorName_init(CUresult arg0, const char **arg1) {
  29. load_library();
  30. return cuGetErrorName(arg0, arg1);
  31. }
  32. static CUresult _WRAPLIB_API_CALL cuGetErrorName_error(CUresult, const char **) {
  33. return on_init_failed<CUresult >(1);
  34. }
  35. static CUresult _WRAPLIB_API_CALL cuInit_init(unsigned int arg0) {
  36. load_library();
  37. return cuInit(arg0);
  38. }
  39. static CUresult _WRAPLIB_API_CALL cuInit_error(unsigned int) {
  40. return on_init_failed<CUresult >(2);
  41. }
  42. static CUresult _WRAPLIB_API_CALL cuDriverGetVersion_init(int *arg0) {
  43. load_library();
  44. return cuDriverGetVersion(arg0);
  45. }
  46. static CUresult _WRAPLIB_API_CALL cuDriverGetVersion_error(int *) {
  47. return on_init_failed<CUresult >(3);
  48. }
  49. static CUresult _WRAPLIB_API_CALL cuDeviceGet_init(CUdevice *arg0, int arg1) {
  50. load_library();
  51. return cuDeviceGet(arg0, arg1);
  52. }
  53. static CUresult _WRAPLIB_API_CALL cuDeviceGet_error(CUdevice *, int) {
  54. return on_init_failed<CUresult >(4);
  55. }
  56. static CUresult _WRAPLIB_API_CALL cuDeviceGetCount_init(int *arg0) {
  57. load_library();
  58. return cuDeviceGetCount(arg0);
  59. }
  60. static CUresult _WRAPLIB_API_CALL cuDeviceGetCount_error(int *) {
  61. return on_init_failed<CUresult >(5);
  62. }
  63. static CUresult _WRAPLIB_API_CALL cuDeviceGetName_init(char *arg0, int arg1, CUdevice arg2) {
  64. load_library();
  65. return cuDeviceGetName(arg0, arg1, arg2);
  66. }
  67. static CUresult _WRAPLIB_API_CALL cuDeviceGetName_error(char *, int, CUdevice) {
  68. return on_init_failed<CUresult >(6);
  69. }
  70. static CUresult _WRAPLIB_API_CALL cuDeviceGetUuid_init(CUuuid *arg0, CUdevice arg1) {
  71. load_library();
  72. return cuDeviceGetUuid(arg0, arg1);
  73. }
  74. static CUresult _WRAPLIB_API_CALL cuDeviceGetUuid_error(CUuuid *, CUdevice) {
  75. return on_init_failed<CUresult >(7);
  76. }
  77. static CUresult _WRAPLIB_API_CALL cuDeviceGetUuid_v2_init(CUuuid *arg0, CUdevice arg1) {
  78. load_library();
  79. return cuDeviceGetUuid_v2(arg0, arg1);
  80. }
  81. static CUresult _WRAPLIB_API_CALL cuDeviceGetUuid_v2_error(CUuuid *, CUdevice) {
  82. return on_init_failed<CUresult >(8);
  83. }
  84. static CUresult _WRAPLIB_API_CALL cuDeviceGetLuid_init(char *arg0, unsigned int *arg1, CUdevice arg2) {
  85. load_library();
  86. return cuDeviceGetLuid(arg0, arg1, arg2);
  87. }
  88. static CUresult _WRAPLIB_API_CALL cuDeviceGetLuid_error(char *, unsigned int *, CUdevice) {
  89. return on_init_failed<CUresult >(9);
  90. }
  91. static CUresult _WRAPLIB_API_CALL cuDeviceTotalMem_v2_init(size_t *arg0, CUdevice arg1) {
  92. load_library();
  93. return cuDeviceTotalMem_v2(arg0, arg1);
  94. }
  95. static CUresult _WRAPLIB_API_CALL cuDeviceTotalMem_v2_error(size_t *, CUdevice) {
  96. return on_init_failed<CUresult >(10);
  97. }
  98. static CUresult _WRAPLIB_API_CALL cuDeviceGetTexture1DLinearMaxWidth_init(size_t *arg0, CUarray_format arg1, unsigned arg2, CUdevice arg3) {
  99. load_library();
  100. return cuDeviceGetTexture1DLinearMaxWidth(arg0, arg1, arg2, arg3);
  101. }
  102. static CUresult _WRAPLIB_API_CALL cuDeviceGetTexture1DLinearMaxWidth_error(size_t *, CUarray_format, unsigned, CUdevice) {
  103. return on_init_failed<CUresult >(11);
  104. }
  105. static CUresult _WRAPLIB_API_CALL cuDeviceGetAttribute_init(int *arg0, CUdevice_attribute arg1, CUdevice arg2) {
  106. load_library();
  107. return cuDeviceGetAttribute(arg0, arg1, arg2);
  108. }
  109. static CUresult _WRAPLIB_API_CALL cuDeviceGetAttribute_error(int *, CUdevice_attribute, CUdevice) {
  110. return on_init_failed<CUresult >(12);
  111. }
  112. static CUresult _WRAPLIB_API_CALL cuDeviceGetNvSciSyncAttributes_init(void *arg0, CUdevice arg1, int arg2) {
  113. load_library();
  114. return cuDeviceGetNvSciSyncAttributes(arg0, arg1, arg2);
  115. }
  116. static CUresult _WRAPLIB_API_CALL cuDeviceGetNvSciSyncAttributes_error(void *, CUdevice, int) {
  117. return on_init_failed<CUresult >(13);
  118. }
  119. static CUresult _WRAPLIB_API_CALL cuDeviceSetMemPool_init(CUdevice arg0, CUmemoryPool arg1) {
  120. load_library();
  121. return cuDeviceSetMemPool(arg0, arg1);
  122. }
  123. static CUresult _WRAPLIB_API_CALL cuDeviceSetMemPool_error(CUdevice, CUmemoryPool) {
  124. return on_init_failed<CUresult >(14);
  125. }
  126. static CUresult _WRAPLIB_API_CALL cuDeviceGetMemPool_init(CUmemoryPool *arg0, CUdevice arg1) {
  127. load_library();
  128. return cuDeviceGetMemPool(arg0, arg1);
  129. }
  130. static CUresult _WRAPLIB_API_CALL cuDeviceGetMemPool_error(CUmemoryPool *, CUdevice) {
  131. return on_init_failed<CUresult >(15);
  132. }
  133. static CUresult _WRAPLIB_API_CALL cuDeviceGetDefaultMemPool_init(CUmemoryPool *arg0, CUdevice arg1) {
  134. load_library();
  135. return cuDeviceGetDefaultMemPool(arg0, arg1);
  136. }
  137. static CUresult _WRAPLIB_API_CALL cuDeviceGetDefaultMemPool_error(CUmemoryPool *, CUdevice) {
  138. return on_init_failed<CUresult >(16);
  139. }
  140. static CUresult _WRAPLIB_API_CALL cuFlushGPUDirectRDMAWrites_init(CUflushGPUDirectRDMAWritesTarget arg0, CUflushGPUDirectRDMAWritesScope arg1) {
  141. load_library();
  142. return cuFlushGPUDirectRDMAWrites(arg0, arg1);
  143. }
  144. static CUresult _WRAPLIB_API_CALL cuFlushGPUDirectRDMAWrites_error(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope) {
  145. return on_init_failed<CUresult >(17);
  146. }
  147. static CUresult _WRAPLIB_API_CALL cuDeviceGetProperties_init(CUdevprop *arg0, CUdevice arg1) {
  148. load_library();
  149. return cuDeviceGetProperties(arg0, arg1);
  150. }
  151. static CUresult _WRAPLIB_API_CALL cuDeviceGetProperties_error(CUdevprop *, CUdevice) {
  152. return on_init_failed<CUresult >(18);
  153. }
  154. static CUresult _WRAPLIB_API_CALL cuDeviceComputeCapability_init(int *arg0, int *arg1, CUdevice arg2) {
  155. load_library();
  156. return cuDeviceComputeCapability(arg0, arg1, arg2);
  157. }
  158. static CUresult _WRAPLIB_API_CALL cuDeviceComputeCapability_error(int *, int *, CUdevice) {
  159. return on_init_failed<CUresult >(19);
  160. }
  161. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRetain_init(CUcontext *arg0, CUdevice arg1) {
  162. load_library();
  163. return cuDevicePrimaryCtxRetain(arg0, arg1);
  164. }
  165. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRetain_error(CUcontext *, CUdevice) {
  166. return on_init_failed<CUresult >(20);
  167. }
  168. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease_v2_init(CUdevice arg0) {
  169. load_library();
  170. return cuDevicePrimaryCtxRelease_v2(arg0);
  171. }
  172. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease_v2_error(CUdevice) {
  173. return on_init_failed<CUresult >(21);
  174. }
  175. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags_v2_init(CUdevice arg0, unsigned int arg1) {
  176. load_library();
  177. return cuDevicePrimaryCtxSetFlags_v2(arg0, arg1);
  178. }
  179. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags_v2_error(CUdevice, unsigned int) {
  180. return on_init_failed<CUresult >(22);
  181. }
  182. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxGetState_init(CUdevice arg0, unsigned int *arg1, int *arg2) {
  183. load_library();
  184. return cuDevicePrimaryCtxGetState(arg0, arg1, arg2);
  185. }
  186. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxGetState_error(CUdevice, unsigned int *, int *) {
  187. return on_init_failed<CUresult >(23);
  188. }
  189. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset_v2_init(CUdevice arg0) {
  190. load_library();
  191. return cuDevicePrimaryCtxReset_v2(arg0);
  192. }
  193. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset_v2_error(CUdevice) {
  194. return on_init_failed<CUresult >(24);
  195. }
  196. static CUresult _WRAPLIB_API_CALL cuDeviceGetExecAffinitySupport_init(int *arg0, CUexecAffinityType arg1, CUdevice arg2) {
  197. load_library();
  198. return cuDeviceGetExecAffinitySupport(arg0, arg1, arg2);
  199. }
  200. static CUresult _WRAPLIB_API_CALL cuDeviceGetExecAffinitySupport_error(int *, CUexecAffinityType, CUdevice) {
  201. return on_init_failed<CUresult >(25);
  202. }
  203. static CUresult _WRAPLIB_API_CALL cuCtxCreate_v2_init(CUcontext *arg0, unsigned int arg1, CUdevice arg2) {
  204. load_library();
  205. return cuCtxCreate_v2(arg0, arg1, arg2);
  206. }
  207. static CUresult _WRAPLIB_API_CALL cuCtxCreate_v2_error(CUcontext *, unsigned int, CUdevice) {
  208. return on_init_failed<CUresult >(26);
  209. }
  210. static CUresult _WRAPLIB_API_CALL cuCtxCreate_v3_init(CUcontext *arg0, CUexecAffinityParam *arg1, int arg2, unsigned int arg3, CUdevice arg4) {
  211. load_library();
  212. return cuCtxCreate_v3(arg0, arg1, arg2, arg3, arg4);
  213. }
  214. static CUresult _WRAPLIB_API_CALL cuCtxCreate_v3_error(CUcontext *, CUexecAffinityParam *, int, unsigned int, CUdevice) {
  215. return on_init_failed<CUresult >(27);
  216. }
  217. static CUresult _WRAPLIB_API_CALL cuCtxDestroy_v2_init(CUcontext arg0) {
  218. load_library();
  219. return cuCtxDestroy_v2(arg0);
  220. }
  221. static CUresult _WRAPLIB_API_CALL cuCtxDestroy_v2_error(CUcontext) {
  222. return on_init_failed<CUresult >(28);
  223. }
  224. static CUresult _WRAPLIB_API_CALL cuCtxPushCurrent_v2_init(CUcontext arg0) {
  225. load_library();
  226. return cuCtxPushCurrent_v2(arg0);
  227. }
  228. static CUresult _WRAPLIB_API_CALL cuCtxPushCurrent_v2_error(CUcontext) {
  229. return on_init_failed<CUresult >(29);
  230. }
  231. static CUresult _WRAPLIB_API_CALL cuCtxPopCurrent_v2_init(CUcontext *arg0) {
  232. load_library();
  233. return cuCtxPopCurrent_v2(arg0);
  234. }
  235. static CUresult _WRAPLIB_API_CALL cuCtxPopCurrent_v2_error(CUcontext *) {
  236. return on_init_failed<CUresult >(30);
  237. }
  238. static CUresult _WRAPLIB_API_CALL cuCtxSetCurrent_init(CUcontext arg0) {
  239. load_library();
  240. return cuCtxSetCurrent(arg0);
  241. }
  242. static CUresult _WRAPLIB_API_CALL cuCtxSetCurrent_error(CUcontext) {
  243. return on_init_failed<CUresult >(31);
  244. }
  245. static CUresult _WRAPLIB_API_CALL cuCtxGetCurrent_init(CUcontext *arg0) {
  246. load_library();
  247. return cuCtxGetCurrent(arg0);
  248. }
  249. static CUresult _WRAPLIB_API_CALL cuCtxGetCurrent_error(CUcontext *) {
  250. return on_init_failed<CUresult >(32);
  251. }
  252. static CUresult _WRAPLIB_API_CALL cuCtxGetDevice_init(CUdevice *arg0) {
  253. load_library();
  254. return cuCtxGetDevice(arg0);
  255. }
  256. static CUresult _WRAPLIB_API_CALL cuCtxGetDevice_error(CUdevice *) {
  257. return on_init_failed<CUresult >(33);
  258. }
  259. static CUresult _WRAPLIB_API_CALL cuCtxGetFlags_init(unsigned int *arg0) {
  260. load_library();
  261. return cuCtxGetFlags(arg0);
  262. }
  263. static CUresult _WRAPLIB_API_CALL cuCtxGetFlags_error(unsigned int *) {
  264. return on_init_failed<CUresult >(34);
  265. }
  266. static CUresult _WRAPLIB_API_CALL cuCtxSynchronize_init() {
  267. load_library();
  268. return cuCtxSynchronize();
  269. }
  270. static CUresult _WRAPLIB_API_CALL cuCtxSynchronize_error() {
  271. return on_init_failed<CUresult >(35);
  272. }
  273. static CUresult _WRAPLIB_API_CALL cuCtxSetLimit_init(CUlimit arg0, size_t arg1) {
  274. load_library();
  275. return cuCtxSetLimit(arg0, arg1);
  276. }
  277. static CUresult _WRAPLIB_API_CALL cuCtxSetLimit_error(CUlimit, size_t) {
  278. return on_init_failed<CUresult >(36);
  279. }
  280. static CUresult _WRAPLIB_API_CALL cuCtxGetLimit_init(size_t *arg0, CUlimit arg1) {
  281. load_library();
  282. return cuCtxGetLimit(arg0, arg1);
  283. }
  284. static CUresult _WRAPLIB_API_CALL cuCtxGetLimit_error(size_t *, CUlimit) {
  285. return on_init_failed<CUresult >(37);
  286. }
  287. static CUresult _WRAPLIB_API_CALL cuCtxGetCacheConfig_init(CUfunc_cache *arg0) {
  288. load_library();
  289. return cuCtxGetCacheConfig(arg0);
  290. }
  291. static CUresult _WRAPLIB_API_CALL cuCtxGetCacheConfig_error(CUfunc_cache *) {
  292. return on_init_failed<CUresult >(38);
  293. }
  294. static CUresult _WRAPLIB_API_CALL cuCtxSetCacheConfig_init(CUfunc_cache arg0) {
  295. load_library();
  296. return cuCtxSetCacheConfig(arg0);
  297. }
  298. static CUresult _WRAPLIB_API_CALL cuCtxSetCacheConfig_error(CUfunc_cache) {
  299. return on_init_failed<CUresult >(39);
  300. }
  301. static CUresult _WRAPLIB_API_CALL cuCtxGetSharedMemConfig_init(CUsharedconfig *arg0) {
  302. load_library();
  303. return cuCtxGetSharedMemConfig(arg0);
  304. }
  305. static CUresult _WRAPLIB_API_CALL cuCtxGetSharedMemConfig_error(CUsharedconfig *) {
  306. return on_init_failed<CUresult >(40);
  307. }
  308. static CUresult _WRAPLIB_API_CALL cuCtxSetSharedMemConfig_init(CUsharedconfig arg0) {
  309. load_library();
  310. return cuCtxSetSharedMemConfig(arg0);
  311. }
  312. static CUresult _WRAPLIB_API_CALL cuCtxSetSharedMemConfig_error(CUsharedconfig) {
  313. return on_init_failed<CUresult >(41);
  314. }
  315. static CUresult _WRAPLIB_API_CALL cuCtxGetApiVersion_init(CUcontext arg0, unsigned int *arg1) {
  316. load_library();
  317. return cuCtxGetApiVersion(arg0, arg1);
  318. }
  319. static CUresult _WRAPLIB_API_CALL cuCtxGetApiVersion_error(CUcontext, unsigned int *) {
  320. return on_init_failed<CUresult >(42);
  321. }
  322. static CUresult _WRAPLIB_API_CALL cuCtxGetStreamPriorityRange_init(int *arg0, int *arg1) {
  323. load_library();
  324. return cuCtxGetStreamPriorityRange(arg0, arg1);
  325. }
  326. static CUresult _WRAPLIB_API_CALL cuCtxGetStreamPriorityRange_error(int *, int *) {
  327. return on_init_failed<CUresult >(43);
  328. }
  329. static CUresult _WRAPLIB_API_CALL cuCtxResetPersistingL2Cache_init() {
  330. load_library();
  331. return cuCtxResetPersistingL2Cache();
  332. }
  333. static CUresult _WRAPLIB_API_CALL cuCtxResetPersistingL2Cache_error() {
  334. return on_init_failed<CUresult >(44);
  335. }
  336. static CUresult _WRAPLIB_API_CALL cuCtxGetExecAffinity_init(CUexecAffinityParam *arg0, CUexecAffinityType arg1) {
  337. load_library();
  338. return cuCtxGetExecAffinity(arg0, arg1);
  339. }
  340. static CUresult _WRAPLIB_API_CALL cuCtxGetExecAffinity_error(CUexecAffinityParam *, CUexecAffinityType) {
  341. return on_init_failed<CUresult >(45);
  342. }
  343. static CUresult _WRAPLIB_API_CALL cuCtxAttach_init(CUcontext *arg0, unsigned int arg1) {
  344. load_library();
  345. return cuCtxAttach(arg0, arg1);
  346. }
  347. static CUresult _WRAPLIB_API_CALL cuCtxAttach_error(CUcontext *, unsigned int) {
  348. return on_init_failed<CUresult >(46);
  349. }
  350. static CUresult _WRAPLIB_API_CALL cuCtxDetach_init(CUcontext arg0) {
  351. load_library();
  352. return cuCtxDetach(arg0);
  353. }
  354. static CUresult _WRAPLIB_API_CALL cuCtxDetach_error(CUcontext) {
  355. return on_init_failed<CUresult >(47);
  356. }
  357. static CUresult _WRAPLIB_API_CALL cuModuleLoad_init(CUmodule *arg0, const char *arg1) {
  358. load_library();
  359. return cuModuleLoad(arg0, arg1);
  360. }
  361. static CUresult _WRAPLIB_API_CALL cuModuleLoad_error(CUmodule *, const char *) {
  362. return on_init_failed<CUresult >(48);
  363. }
  364. static CUresult _WRAPLIB_API_CALL cuModuleLoadData_init(CUmodule *arg0, const void *arg1) {
  365. load_library();
  366. return cuModuleLoadData(arg0, arg1);
  367. }
  368. static CUresult _WRAPLIB_API_CALL cuModuleLoadData_error(CUmodule *, const void *) {
  369. return on_init_failed<CUresult >(49);
  370. }
  371. static CUresult _WRAPLIB_API_CALL cuModuleLoadDataEx_init(CUmodule *arg0, const void *arg1, unsigned int arg2, CUjit_option *arg3, void **arg4) {
  372. load_library();
  373. return cuModuleLoadDataEx(arg0, arg1, arg2, arg3, arg4);
  374. }
  375. static CUresult _WRAPLIB_API_CALL cuModuleLoadDataEx_error(CUmodule *, const void *, unsigned int, CUjit_option *, void **) {
  376. return on_init_failed<CUresult >(50);
  377. }
  378. static CUresult _WRAPLIB_API_CALL cuModuleLoadFatBinary_init(CUmodule *arg0, const void *arg1) {
  379. load_library();
  380. return cuModuleLoadFatBinary(arg0, arg1);
  381. }
  382. static CUresult _WRAPLIB_API_CALL cuModuleLoadFatBinary_error(CUmodule *, const void *) {
  383. return on_init_failed<CUresult >(51);
  384. }
  385. static CUresult _WRAPLIB_API_CALL cuModuleUnload_init(CUmodule arg0) {
  386. load_library();
  387. return cuModuleUnload(arg0);
  388. }
  389. static CUresult _WRAPLIB_API_CALL cuModuleUnload_error(CUmodule) {
  390. return on_init_failed<CUresult >(52);
  391. }
  392. static CUresult _WRAPLIB_API_CALL cuModuleGetFunction_init(CUfunction *arg0, CUmodule arg1, const char *arg2) {
  393. load_library();
  394. return cuModuleGetFunction(arg0, arg1, arg2);
  395. }
  396. static CUresult _WRAPLIB_API_CALL cuModuleGetFunction_error(CUfunction *, CUmodule, const char *) {
  397. return on_init_failed<CUresult >(53);
  398. }
  399. static CUresult _WRAPLIB_API_CALL cuModuleGetGlobal_v2_init(CUdeviceptr *arg0, size_t *arg1, CUmodule arg2, const char *arg3) {
  400. load_library();
  401. return cuModuleGetGlobal_v2(arg0, arg1, arg2, arg3);
  402. }
  403. static CUresult _WRAPLIB_API_CALL cuModuleGetGlobal_v2_error(CUdeviceptr *, size_t *, CUmodule, const char *) {
  404. return on_init_failed<CUresult >(54);
  405. }
  406. static CUresult _WRAPLIB_API_CALL cuModuleGetTexRef_init(CUtexref *arg0, CUmodule arg1, const char *arg2) {
  407. load_library();
  408. return cuModuleGetTexRef(arg0, arg1, arg2);
  409. }
  410. static CUresult _WRAPLIB_API_CALL cuModuleGetTexRef_error(CUtexref *, CUmodule, const char *) {
  411. return on_init_failed<CUresult >(55);
  412. }
  413. static CUresult _WRAPLIB_API_CALL cuModuleGetSurfRef_init(CUsurfref *arg0, CUmodule arg1, const char *arg2) {
  414. load_library();
  415. return cuModuleGetSurfRef(arg0, arg1, arg2);
  416. }
  417. static CUresult _WRAPLIB_API_CALL cuModuleGetSurfRef_error(CUsurfref *, CUmodule, const char *) {
  418. return on_init_failed<CUresult >(56);
  419. }
  420. static CUresult _WRAPLIB_API_CALL cuLinkCreate_v2_init(unsigned int arg0, CUjit_option *arg1, void **arg2, CUlinkState *arg3) {
  421. load_library();
  422. return cuLinkCreate_v2(arg0, arg1, arg2, arg3);
  423. }
  424. static CUresult _WRAPLIB_API_CALL cuLinkCreate_v2_error(unsigned int, CUjit_option *, void **, CUlinkState *) {
  425. return on_init_failed<CUresult >(57);
  426. }
  427. static CUresult _WRAPLIB_API_CALL cuLinkAddData_v2_init(CUlinkState arg0, CUjitInputType arg1, void *arg2, size_t arg3, const char *arg4, unsigned int arg5, CUjit_option *arg6, void **arg7) {
  428. load_library();
  429. return cuLinkAddData_v2(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  430. }
  431. static CUresult _WRAPLIB_API_CALL cuLinkAddData_v2_error(CUlinkState, CUjitInputType, void *, size_t, const char *, unsigned int, CUjit_option *, void **) {
  432. return on_init_failed<CUresult >(58);
  433. }
  434. static CUresult _WRAPLIB_API_CALL cuLinkAddFile_v2_init(CUlinkState arg0, CUjitInputType arg1, const char *arg2, unsigned int arg3, CUjit_option *arg4, void **arg5) {
  435. load_library();
  436. return cuLinkAddFile_v2(arg0, arg1, arg2, arg3, arg4, arg5);
  437. }
  438. static CUresult _WRAPLIB_API_CALL cuLinkAddFile_v2_error(CUlinkState, CUjitInputType, const char *, unsigned int, CUjit_option *, void **) {
  439. return on_init_failed<CUresult >(59);
  440. }
  441. static CUresult _WRAPLIB_API_CALL cuLinkComplete_init(CUlinkState arg0, void **arg1, size_t *arg2) {
  442. load_library();
  443. return cuLinkComplete(arg0, arg1, arg2);
  444. }
  445. static CUresult _WRAPLIB_API_CALL cuLinkComplete_error(CUlinkState, void **, size_t *) {
  446. return on_init_failed<CUresult >(60);
  447. }
  448. static CUresult _WRAPLIB_API_CALL cuLinkDestroy_init(CUlinkState arg0) {
  449. load_library();
  450. return cuLinkDestroy(arg0);
  451. }
  452. static CUresult _WRAPLIB_API_CALL cuLinkDestroy_error(CUlinkState) {
  453. return on_init_failed<CUresult >(61);
  454. }
  455. static CUresult _WRAPLIB_API_CALL cuMemGetInfo_v2_init(size_t *arg0, size_t *arg1) {
  456. load_library();
  457. return cuMemGetInfo_v2(arg0, arg1);
  458. }
  459. static CUresult _WRAPLIB_API_CALL cuMemGetInfo_v2_error(size_t *, size_t *) {
  460. return on_init_failed<CUresult >(62);
  461. }
  462. static CUresult _WRAPLIB_API_CALL cuMemAlloc_v2_init(CUdeviceptr *arg0, size_t arg1) {
  463. load_library();
  464. return cuMemAlloc_v2(arg0, arg1);
  465. }
  466. static CUresult _WRAPLIB_API_CALL cuMemAlloc_v2_error(CUdeviceptr *, size_t) {
  467. return on_init_failed<CUresult >(63);
  468. }
  469. static CUresult _WRAPLIB_API_CALL cuMemAllocPitch_v2_init(CUdeviceptr *arg0, size_t *arg1, size_t arg2, size_t arg3, unsigned int arg4) {
  470. load_library();
  471. return cuMemAllocPitch_v2(arg0, arg1, arg2, arg3, arg4);
  472. }
  473. static CUresult _WRAPLIB_API_CALL cuMemAllocPitch_v2_error(CUdeviceptr *, size_t *, size_t, size_t, unsigned int) {
  474. return on_init_failed<CUresult >(64);
  475. }
  476. static CUresult _WRAPLIB_API_CALL cuMemFree_v2_init(CUdeviceptr arg0) {
  477. load_library();
  478. return cuMemFree_v2(arg0);
  479. }
  480. static CUresult _WRAPLIB_API_CALL cuMemFree_v2_error(CUdeviceptr) {
  481. return on_init_failed<CUresult >(65);
  482. }
  483. static CUresult _WRAPLIB_API_CALL cuMemGetAddressRange_v2_init(CUdeviceptr *arg0, size_t *arg1, CUdeviceptr arg2) {
  484. load_library();
  485. return cuMemGetAddressRange_v2(arg0, arg1, arg2);
  486. }
  487. static CUresult _WRAPLIB_API_CALL cuMemGetAddressRange_v2_error(CUdeviceptr *, size_t *, CUdeviceptr) {
  488. return on_init_failed<CUresult >(66);
  489. }
  490. static CUresult _WRAPLIB_API_CALL cuMemAllocHost_v2_init(void **arg0, size_t arg1) {
  491. load_library();
  492. return cuMemAllocHost_v2(arg0, arg1);
  493. }
  494. static CUresult _WRAPLIB_API_CALL cuMemAllocHost_v2_error(void **, size_t) {
  495. return on_init_failed<CUresult >(67);
  496. }
  497. static CUresult _WRAPLIB_API_CALL cuMemFreeHost_init(void *arg0) {
  498. load_library();
  499. return cuMemFreeHost(arg0);
  500. }
  501. static CUresult _WRAPLIB_API_CALL cuMemFreeHost_error(void *) {
  502. return on_init_failed<CUresult >(68);
  503. }
  504. static CUresult _WRAPLIB_API_CALL cuMemHostAlloc_init(void **arg0, size_t arg1, unsigned int arg2) {
  505. load_library();
  506. return cuMemHostAlloc(arg0, arg1, arg2);
  507. }
  508. static CUresult _WRAPLIB_API_CALL cuMemHostAlloc_error(void **, size_t, unsigned int) {
  509. return on_init_failed<CUresult >(69);
  510. }
  511. static CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer_v2_init(CUdeviceptr *arg0, void *arg1, unsigned int arg2) {
  512. load_library();
  513. return cuMemHostGetDevicePointer_v2(arg0, arg1, arg2);
  514. }
  515. static CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer_v2_error(CUdeviceptr *, void *, unsigned int) {
  516. return on_init_failed<CUresult >(70);
  517. }
  518. static CUresult _WRAPLIB_API_CALL cuMemHostGetFlags_init(unsigned int *arg0, void *arg1) {
  519. load_library();
  520. return cuMemHostGetFlags(arg0, arg1);
  521. }
  522. static CUresult _WRAPLIB_API_CALL cuMemHostGetFlags_error(unsigned int *, void *) {
  523. return on_init_failed<CUresult >(71);
  524. }
  525. static CUresult _WRAPLIB_API_CALL cuMemAllocManaged_init(CUdeviceptr *arg0, size_t arg1, unsigned int arg2) {
  526. load_library();
  527. return cuMemAllocManaged(arg0, arg1, arg2);
  528. }
  529. static CUresult _WRAPLIB_API_CALL cuMemAllocManaged_error(CUdeviceptr *, size_t, unsigned int) {
  530. return on_init_failed<CUresult >(72);
  531. }
  532. static CUresult _WRAPLIB_API_CALL cuDeviceGetByPCIBusId_init(CUdevice *arg0, const char *arg1) {
  533. load_library();
  534. return cuDeviceGetByPCIBusId(arg0, arg1);
  535. }
  536. static CUresult _WRAPLIB_API_CALL cuDeviceGetByPCIBusId_error(CUdevice *, const char *) {
  537. return on_init_failed<CUresult >(73);
  538. }
  539. static CUresult _WRAPLIB_API_CALL cuDeviceGetPCIBusId_init(char *arg0, int arg1, CUdevice arg2) {
  540. load_library();
  541. return cuDeviceGetPCIBusId(arg0, arg1, arg2);
  542. }
  543. static CUresult _WRAPLIB_API_CALL cuDeviceGetPCIBusId_error(char *, int, CUdevice) {
  544. return on_init_failed<CUresult >(74);
  545. }
  546. static CUresult _WRAPLIB_API_CALL cuIpcGetEventHandle_init(CUipcEventHandle *arg0, CUevent arg1) {
  547. load_library();
  548. return cuIpcGetEventHandle(arg0, arg1);
  549. }
  550. static CUresult _WRAPLIB_API_CALL cuIpcGetEventHandle_error(CUipcEventHandle *, CUevent) {
  551. return on_init_failed<CUresult >(75);
  552. }
  553. static CUresult _WRAPLIB_API_CALL cuIpcOpenEventHandle_init(CUevent *arg0, CUipcEventHandle arg1) {
  554. load_library();
  555. return cuIpcOpenEventHandle(arg0, arg1);
  556. }
  557. static CUresult _WRAPLIB_API_CALL cuIpcOpenEventHandle_error(CUevent *, CUipcEventHandle) {
  558. return on_init_failed<CUresult >(76);
  559. }
  560. static CUresult _WRAPLIB_API_CALL cuIpcGetMemHandle_init(CUipcMemHandle *arg0, CUdeviceptr arg1) {
  561. load_library();
  562. return cuIpcGetMemHandle(arg0, arg1);
  563. }
  564. static CUresult _WRAPLIB_API_CALL cuIpcGetMemHandle_error(CUipcMemHandle *, CUdeviceptr) {
  565. return on_init_failed<CUresult >(77);
  566. }
  567. static CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle_v2_init(CUdeviceptr *arg0, CUipcMemHandle arg1, unsigned int arg2) {
  568. load_library();
  569. return cuIpcOpenMemHandle_v2(arg0, arg1, arg2);
  570. }
  571. static CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle_v2_error(CUdeviceptr *, CUipcMemHandle, unsigned int) {
  572. return on_init_failed<CUresult >(78);
  573. }
  574. static CUresult _WRAPLIB_API_CALL cuIpcCloseMemHandle_init(CUdeviceptr arg0) {
  575. load_library();
  576. return cuIpcCloseMemHandle(arg0);
  577. }
  578. static CUresult _WRAPLIB_API_CALL cuIpcCloseMemHandle_error(CUdeviceptr) {
  579. return on_init_failed<CUresult >(79);
  580. }
  581. static CUresult _WRAPLIB_API_CALL cuMemHostRegister_v2_init(void *arg0, size_t arg1, unsigned int arg2) {
  582. load_library();
  583. return cuMemHostRegister_v2(arg0, arg1, arg2);
  584. }
  585. static CUresult _WRAPLIB_API_CALL cuMemHostRegister_v2_error(void *, size_t, unsigned int) {
  586. return on_init_failed<CUresult >(80);
  587. }
  588. static CUresult _WRAPLIB_API_CALL cuMemHostUnregister_init(void *arg0) {
  589. load_library();
  590. return cuMemHostUnregister(arg0);
  591. }
  592. static CUresult _WRAPLIB_API_CALL cuMemHostUnregister_error(void *) {
  593. return on_init_failed<CUresult >(81);
  594. }
  595. static CUresult _WRAPLIB_API_CALL cuMemcpy_ptds_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  596. load_library();
  597. return cuMemcpy_ptds(arg0, arg1, arg2);
  598. }
  599. static CUresult _WRAPLIB_API_CALL cuMemcpy_ptds_error(CUdeviceptr, CUdeviceptr, size_t) {
  600. return on_init_failed<CUresult >(82);
  601. }
  602. static CUresult _WRAPLIB_API_CALL cuMemcpyPeer_ptds_init(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4) {
  603. load_library();
  604. return cuMemcpyPeer_ptds(arg0, arg1, arg2, arg3, arg4);
  605. }
  606. static CUresult _WRAPLIB_API_CALL cuMemcpyPeer_ptds_error(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) {
  607. return on_init_failed<CUresult >(83);
  608. }
  609. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2_ptds_init(CUdeviceptr arg0, const void *arg1, size_t arg2) {
  610. load_library();
  611. return cuMemcpyHtoD_v2_ptds(arg0, arg1, arg2);
  612. }
  613. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2_ptds_error(CUdeviceptr, const void *, size_t) {
  614. return on_init_failed<CUresult >(84);
  615. }
  616. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2_ptds_init(void *arg0, CUdeviceptr arg1, size_t arg2) {
  617. load_library();
  618. return cuMemcpyDtoH_v2_ptds(arg0, arg1, arg2);
  619. }
  620. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2_ptds_error(void *, CUdeviceptr, size_t) {
  621. return on_init_failed<CUresult >(85);
  622. }
  623. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2_ptds_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  624. load_library();
  625. return cuMemcpyDtoD_v2_ptds(arg0, arg1, arg2);
  626. }
  627. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2_ptds_error(CUdeviceptr, CUdeviceptr, size_t) {
  628. return on_init_failed<CUresult >(86);
  629. }
  630. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2_ptds_init(CUarray arg0, size_t arg1, CUdeviceptr arg2, size_t arg3) {
  631. load_library();
  632. return cuMemcpyDtoA_v2_ptds(arg0, arg1, arg2, arg3);
  633. }
  634. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2_ptds_error(CUarray, size_t, CUdeviceptr, size_t) {
  635. return on_init_failed<CUresult >(87);
  636. }
  637. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2_ptds_init(CUdeviceptr arg0, CUarray arg1, size_t arg2, size_t arg3) {
  638. load_library();
  639. return cuMemcpyAtoD_v2_ptds(arg0, arg1, arg2, arg3);
  640. }
  641. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2_ptds_error(CUdeviceptr, CUarray, size_t, size_t) {
  642. return on_init_failed<CUresult >(88);
  643. }
  644. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2_ptds_init(CUarray arg0, size_t arg1, const void *arg2, size_t arg3) {
  645. load_library();
  646. return cuMemcpyHtoA_v2_ptds(arg0, arg1, arg2, arg3);
  647. }
  648. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2_ptds_error(CUarray, size_t, const void *, size_t) {
  649. return on_init_failed<CUresult >(89);
  650. }
  651. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2_ptds_init(void *arg0, CUarray arg1, size_t arg2, size_t arg3) {
  652. load_library();
  653. return cuMemcpyAtoH_v2_ptds(arg0, arg1, arg2, arg3);
  654. }
  655. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2_ptds_error(void *, CUarray, size_t, size_t) {
  656. return on_init_failed<CUresult >(90);
  657. }
  658. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2_ptds_init(CUarray arg0, size_t arg1, CUarray arg2, size_t arg3, size_t arg4) {
  659. load_library();
  660. return cuMemcpyAtoA_v2_ptds(arg0, arg1, arg2, arg3, arg4);
  661. }
  662. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2_ptds_error(CUarray, size_t, CUarray, size_t, size_t) {
  663. return on_init_failed<CUresult >(91);
  664. }
  665. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2_ptds_init(const CUDA_MEMCPY2D *arg0) {
  666. load_library();
  667. return cuMemcpy2D_v2_ptds(arg0);
  668. }
  669. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2_ptds_error(const CUDA_MEMCPY2D *) {
  670. return on_init_failed<CUresult >(92);
  671. }
  672. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2_ptds_init(const CUDA_MEMCPY2D *arg0) {
  673. load_library();
  674. return cuMemcpy2DUnaligned_v2_ptds(arg0);
  675. }
  676. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2_ptds_error(const CUDA_MEMCPY2D *) {
  677. return on_init_failed<CUresult >(93);
  678. }
  679. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2_ptds_init(const CUDA_MEMCPY3D *arg0) {
  680. load_library();
  681. return cuMemcpy3D_v2_ptds(arg0);
  682. }
  683. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2_ptds_error(const CUDA_MEMCPY3D *) {
  684. return on_init_failed<CUresult >(94);
  685. }
  686. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer_ptds_init(const CUDA_MEMCPY3D_PEER *arg0) {
  687. load_library();
  688. return cuMemcpy3DPeer_ptds(arg0);
  689. }
  690. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer_ptds_error(const CUDA_MEMCPY3D_PEER *) {
  691. return on_init_failed<CUresult >(95);
  692. }
  693. static CUresult _WRAPLIB_API_CALL cuMemcpyAsync_ptsz_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  694. load_library();
  695. return cuMemcpyAsync_ptsz(arg0, arg1, arg2, arg3);
  696. }
  697. static CUresult _WRAPLIB_API_CALL cuMemcpyAsync_ptsz_error(CUdeviceptr, CUdeviceptr, size_t, CUstream) {
  698. return on_init_failed<CUresult >(96);
  699. }
  700. static CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync_ptsz_init(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4, CUstream arg5) {
  701. load_library();
  702. return cuMemcpyPeerAsync_ptsz(arg0, arg1, arg2, arg3, arg4, arg5);
  703. }
  704. static CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync_ptsz_error(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) {
  705. return on_init_failed<CUresult >(97);
  706. }
  707. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2_ptsz_init(CUdeviceptr arg0, const void *arg1, size_t arg2, CUstream arg3) {
  708. load_library();
  709. return cuMemcpyHtoDAsync_v2_ptsz(arg0, arg1, arg2, arg3);
  710. }
  711. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2_ptsz_error(CUdeviceptr, const void *, size_t, CUstream) {
  712. return on_init_failed<CUresult >(98);
  713. }
  714. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2_ptsz_init(void *arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  715. load_library();
  716. return cuMemcpyDtoHAsync_v2_ptsz(arg0, arg1, arg2, arg3);
  717. }
  718. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2_ptsz_error(void *, CUdeviceptr, size_t, CUstream) {
  719. return on_init_failed<CUresult >(99);
  720. }
  721. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2_ptsz_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  722. load_library();
  723. return cuMemcpyDtoDAsync_v2_ptsz(arg0, arg1, arg2, arg3);
  724. }
  725. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2_ptsz_error(CUdeviceptr, CUdeviceptr, size_t, CUstream) {
  726. return on_init_failed<CUresult >(100);
  727. }
  728. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2_ptsz_init(CUarray arg0, size_t arg1, const void *arg2, size_t arg3, CUstream arg4) {
  729. load_library();
  730. return cuMemcpyHtoAAsync_v2_ptsz(arg0, arg1, arg2, arg3, arg4);
  731. }
  732. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2_ptsz_error(CUarray, size_t, const void *, size_t, CUstream) {
  733. return on_init_failed<CUresult >(101);
  734. }
  735. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2_ptsz_init(void *arg0, CUarray arg1, size_t arg2, size_t arg3, CUstream arg4) {
  736. load_library();
  737. return cuMemcpyAtoHAsync_v2_ptsz(arg0, arg1, arg2, arg3, arg4);
  738. }
  739. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2_ptsz_error(void *, CUarray, size_t, size_t, CUstream) {
  740. return on_init_failed<CUresult >(102);
  741. }
  742. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2_ptsz_init(const CUDA_MEMCPY2D *arg0, CUstream arg1) {
  743. load_library();
  744. return cuMemcpy2DAsync_v2_ptsz(arg0, arg1);
  745. }
  746. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2_ptsz_error(const CUDA_MEMCPY2D *, CUstream) {
  747. return on_init_failed<CUresult >(103);
  748. }
  749. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2_ptsz_init(const CUDA_MEMCPY3D *arg0, CUstream arg1) {
  750. load_library();
  751. return cuMemcpy3DAsync_v2_ptsz(arg0, arg1);
  752. }
  753. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2_ptsz_error(const CUDA_MEMCPY3D *, CUstream) {
  754. return on_init_failed<CUresult >(104);
  755. }
  756. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync_ptsz_init(const CUDA_MEMCPY3D_PEER *arg0, CUstream arg1) {
  757. load_library();
  758. return cuMemcpy3DPeerAsync_ptsz(arg0, arg1);
  759. }
  760. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync_ptsz_error(const CUDA_MEMCPY3D_PEER *, CUstream) {
  761. return on_init_failed<CUresult >(105);
  762. }
  763. static CUresult _WRAPLIB_API_CALL cuMemsetD8_v2_ptds_init(CUdeviceptr arg0, unsigned char arg1, size_t arg2) {
  764. load_library();
  765. return cuMemsetD8_v2_ptds(arg0, arg1, arg2);
  766. }
  767. static CUresult _WRAPLIB_API_CALL cuMemsetD8_v2_ptds_error(CUdeviceptr, unsigned char, size_t) {
  768. return on_init_failed<CUresult >(106);
  769. }
  770. static CUresult _WRAPLIB_API_CALL cuMemsetD16_v2_ptds_init(CUdeviceptr arg0, unsigned short arg1, size_t arg2) {
  771. load_library();
  772. return cuMemsetD16_v2_ptds(arg0, arg1, arg2);
  773. }
  774. static CUresult _WRAPLIB_API_CALL cuMemsetD16_v2_ptds_error(CUdeviceptr, unsigned short, size_t) {
  775. return on_init_failed<CUresult >(107);
  776. }
  777. static CUresult _WRAPLIB_API_CALL cuMemsetD32_v2_ptds_init(CUdeviceptr arg0, unsigned int arg1, size_t arg2) {
  778. load_library();
  779. return cuMemsetD32_v2_ptds(arg0, arg1, arg2);
  780. }
  781. static CUresult _WRAPLIB_API_CALL cuMemsetD32_v2_ptds_error(CUdeviceptr, unsigned int, size_t) {
  782. return on_init_failed<CUresult >(108);
  783. }
  784. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2_ptds_init(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4) {
  785. load_library();
  786. return cuMemsetD2D8_v2_ptds(arg0, arg1, arg2, arg3, arg4);
  787. }
  788. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2_ptds_error(CUdeviceptr, size_t, unsigned char, size_t, size_t) {
  789. return on_init_failed<CUresult >(109);
  790. }
  791. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2_ptds_init(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4) {
  792. load_library();
  793. return cuMemsetD2D16_v2_ptds(arg0, arg1, arg2, arg3, arg4);
  794. }
  795. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2_ptds_error(CUdeviceptr, size_t, unsigned short, size_t, size_t) {
  796. return on_init_failed<CUresult >(110);
  797. }
  798. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2_ptds_init(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4) {
  799. load_library();
  800. return cuMemsetD2D32_v2_ptds(arg0, arg1, arg2, arg3, arg4);
  801. }
  802. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2_ptds_error(CUdeviceptr, size_t, unsigned int, size_t, size_t) {
  803. return on_init_failed<CUresult >(111);
  804. }
  805. static CUresult _WRAPLIB_API_CALL cuMemsetD8Async_ptsz_init(CUdeviceptr arg0, unsigned char arg1, size_t arg2, CUstream arg3) {
  806. load_library();
  807. return cuMemsetD8Async_ptsz(arg0, arg1, arg2, arg3);
  808. }
  809. static CUresult _WRAPLIB_API_CALL cuMemsetD8Async_ptsz_error(CUdeviceptr, unsigned char, size_t, CUstream) {
  810. return on_init_failed<CUresult >(112);
  811. }
  812. static CUresult _WRAPLIB_API_CALL cuMemsetD16Async_ptsz_init(CUdeviceptr arg0, unsigned short arg1, size_t arg2, CUstream arg3) {
  813. load_library();
  814. return cuMemsetD16Async_ptsz(arg0, arg1, arg2, arg3);
  815. }
  816. static CUresult _WRAPLIB_API_CALL cuMemsetD16Async_ptsz_error(CUdeviceptr, unsigned short, size_t, CUstream) {
  817. return on_init_failed<CUresult >(113);
  818. }
  819. static CUresult _WRAPLIB_API_CALL cuMemsetD32Async_ptsz_init(CUdeviceptr arg0, unsigned int arg1, size_t arg2, CUstream arg3) {
  820. load_library();
  821. return cuMemsetD32Async_ptsz(arg0, arg1, arg2, arg3);
  822. }
  823. static CUresult _WRAPLIB_API_CALL cuMemsetD32Async_ptsz_error(CUdeviceptr, unsigned int, size_t, CUstream) {
  824. return on_init_failed<CUresult >(114);
  825. }
  826. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async_ptsz_init(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4, CUstream arg5) {
  827. load_library();
  828. return cuMemsetD2D8Async_ptsz(arg0, arg1, arg2, arg3, arg4, arg5);
  829. }
  830. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async_ptsz_error(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) {
  831. return on_init_failed<CUresult >(115);
  832. }
  833. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async_ptsz_init(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4, CUstream arg5) {
  834. load_library();
  835. return cuMemsetD2D16Async_ptsz(arg0, arg1, arg2, arg3, arg4, arg5);
  836. }
  837. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async_ptsz_error(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) {
  838. return on_init_failed<CUresult >(116);
  839. }
  840. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async_ptsz_init(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4, CUstream arg5) {
  841. load_library();
  842. return cuMemsetD2D32Async_ptsz(arg0, arg1, arg2, arg3, arg4, arg5);
  843. }
  844. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async_ptsz_error(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) {
  845. return on_init_failed<CUresult >(117);
  846. }
  847. static CUresult _WRAPLIB_API_CALL cuArrayCreate_v2_init(CUarray *arg0, const CUDA_ARRAY_DESCRIPTOR *arg1) {
  848. load_library();
  849. return cuArrayCreate_v2(arg0, arg1);
  850. }
  851. static CUresult _WRAPLIB_API_CALL cuArrayCreate_v2_error(CUarray *, const CUDA_ARRAY_DESCRIPTOR *) {
  852. return on_init_failed<CUresult >(118);
  853. }
  854. static CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor_v2_init(CUDA_ARRAY_DESCRIPTOR *arg0, CUarray arg1) {
  855. load_library();
  856. return cuArrayGetDescriptor_v2(arg0, arg1);
  857. }
  858. static CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor_v2_error(CUDA_ARRAY_DESCRIPTOR *, CUarray) {
  859. return on_init_failed<CUresult >(119);
  860. }
  861. static CUresult _WRAPLIB_API_CALL cuArrayGetSparseProperties_init(CUDA_ARRAY_SPARSE_PROPERTIES *arg0, CUarray arg1) {
  862. load_library();
  863. return cuArrayGetSparseProperties(arg0, arg1);
  864. }
  865. static CUresult _WRAPLIB_API_CALL cuArrayGetSparseProperties_error(CUDA_ARRAY_SPARSE_PROPERTIES *, CUarray) {
  866. return on_init_failed<CUresult >(120);
  867. }
  868. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetSparseProperties_init(CUDA_ARRAY_SPARSE_PROPERTIES *arg0, CUmipmappedArray arg1) {
  869. load_library();
  870. return cuMipmappedArrayGetSparseProperties(arg0, arg1);
  871. }
  872. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetSparseProperties_error(CUDA_ARRAY_SPARSE_PROPERTIES *, CUmipmappedArray) {
  873. return on_init_failed<CUresult >(121);
  874. }
  875. static CUresult _WRAPLIB_API_CALL cuArrayGetPlane_init(CUarray *arg0, CUarray arg1, unsigned int arg2) {
  876. load_library();
  877. return cuArrayGetPlane(arg0, arg1, arg2);
  878. }
  879. static CUresult _WRAPLIB_API_CALL cuArrayGetPlane_error(CUarray *, CUarray, unsigned int) {
  880. return on_init_failed<CUresult >(122);
  881. }
  882. static CUresult _WRAPLIB_API_CALL cuArrayDestroy_init(CUarray arg0) {
  883. load_library();
  884. return cuArrayDestroy(arg0);
  885. }
  886. static CUresult _WRAPLIB_API_CALL cuArrayDestroy_error(CUarray) {
  887. return on_init_failed<CUresult >(123);
  888. }
  889. static CUresult _WRAPLIB_API_CALL cuArray3DCreate_v2_init(CUarray *arg0, const CUDA_ARRAY3D_DESCRIPTOR *arg1) {
  890. load_library();
  891. return cuArray3DCreate_v2(arg0, arg1);
  892. }
  893. static CUresult _WRAPLIB_API_CALL cuArray3DCreate_v2_error(CUarray *, const CUDA_ARRAY3D_DESCRIPTOR *) {
  894. return on_init_failed<CUresult >(124);
  895. }
  896. static CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor_v2_init(CUDA_ARRAY3D_DESCRIPTOR *arg0, CUarray arg1) {
  897. load_library();
  898. return cuArray3DGetDescriptor_v2(arg0, arg1);
  899. }
  900. static CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor_v2_error(CUDA_ARRAY3D_DESCRIPTOR *, CUarray) {
  901. return on_init_failed<CUresult >(125);
  902. }
  903. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayCreate_init(CUmipmappedArray *arg0, const CUDA_ARRAY3D_DESCRIPTOR *arg1, unsigned int arg2) {
  904. load_library();
  905. return cuMipmappedArrayCreate(arg0, arg1, arg2);
  906. }
  907. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayCreate_error(CUmipmappedArray *, const CUDA_ARRAY3D_DESCRIPTOR *, unsigned int) {
  908. return on_init_failed<CUresult >(126);
  909. }
  910. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetLevel_init(CUarray *arg0, CUmipmappedArray arg1, unsigned int arg2) {
  911. load_library();
  912. return cuMipmappedArrayGetLevel(arg0, arg1, arg2);
  913. }
  914. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetLevel_error(CUarray *, CUmipmappedArray, unsigned int) {
  915. return on_init_failed<CUresult >(127);
  916. }
  917. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayDestroy_init(CUmipmappedArray arg0) {
  918. load_library();
  919. return cuMipmappedArrayDestroy(arg0);
  920. }
  921. static CUresult _WRAPLIB_API_CALL cuMipmappedArrayDestroy_error(CUmipmappedArray) {
  922. return on_init_failed<CUresult >(128);
  923. }
  924. static CUresult _WRAPLIB_API_CALL cuMemAddressReserve_init(CUdeviceptr *arg0, size_t arg1, size_t arg2, CUdeviceptr arg3, unsigned long long arg4) {
  925. load_library();
  926. return cuMemAddressReserve(arg0, arg1, arg2, arg3, arg4);
  927. }
  928. static CUresult _WRAPLIB_API_CALL cuMemAddressReserve_error(CUdeviceptr *, size_t, size_t, CUdeviceptr, unsigned long long) {
  929. return on_init_failed<CUresult >(129);
  930. }
  931. static CUresult _WRAPLIB_API_CALL cuMemAddressFree_init(CUdeviceptr arg0, size_t arg1) {
  932. load_library();
  933. return cuMemAddressFree(arg0, arg1);
  934. }
  935. static CUresult _WRAPLIB_API_CALL cuMemAddressFree_error(CUdeviceptr, size_t) {
  936. return on_init_failed<CUresult >(130);
  937. }
  938. static CUresult _WRAPLIB_API_CALL cuMemCreate_init(CUmemGenericAllocationHandle *arg0, size_t arg1, const CUmemAllocationProp *arg2, unsigned long long arg3) {
  939. load_library();
  940. return cuMemCreate(arg0, arg1, arg2, arg3);
  941. }
  942. static CUresult _WRAPLIB_API_CALL cuMemCreate_error(CUmemGenericAllocationHandle *, size_t, const CUmemAllocationProp *, unsigned long long) {
  943. return on_init_failed<CUresult >(131);
  944. }
  945. static CUresult _WRAPLIB_API_CALL cuMemRelease_init(CUmemGenericAllocationHandle arg0) {
  946. load_library();
  947. return cuMemRelease(arg0);
  948. }
  949. static CUresult _WRAPLIB_API_CALL cuMemRelease_error(CUmemGenericAllocationHandle) {
  950. return on_init_failed<CUresult >(132);
  951. }
  952. static CUresult _WRAPLIB_API_CALL cuMemMap_init(CUdeviceptr arg0, size_t arg1, size_t arg2, CUmemGenericAllocationHandle arg3, unsigned long long arg4) {
  953. load_library();
  954. return cuMemMap(arg0, arg1, arg2, arg3, arg4);
  955. }
  956. static CUresult _WRAPLIB_API_CALL cuMemMap_error(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long) {
  957. return on_init_failed<CUresult >(133);
  958. }
  959. static CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync_ptsz_init(CUarrayMapInfo *arg0, unsigned int arg1, CUstream arg2) {
  960. load_library();
  961. return cuMemMapArrayAsync_ptsz(arg0, arg1, arg2);
  962. }
  963. static CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync_ptsz_error(CUarrayMapInfo *, unsigned int, CUstream) {
  964. return on_init_failed<CUresult >(134);
  965. }
  966. static CUresult _WRAPLIB_API_CALL cuMemUnmap_init(CUdeviceptr arg0, size_t arg1) {
  967. load_library();
  968. return cuMemUnmap(arg0, arg1);
  969. }
  970. static CUresult _WRAPLIB_API_CALL cuMemUnmap_error(CUdeviceptr, size_t) {
  971. return on_init_failed<CUresult >(135);
  972. }
  973. static CUresult _WRAPLIB_API_CALL cuMemSetAccess_init(CUdeviceptr arg0, size_t arg1, const CUmemAccessDesc *arg2, size_t arg3) {
  974. load_library();
  975. return cuMemSetAccess(arg0, arg1, arg2, arg3);
  976. }
  977. static CUresult _WRAPLIB_API_CALL cuMemSetAccess_error(CUdeviceptr, size_t, const CUmemAccessDesc *, size_t) {
  978. return on_init_failed<CUresult >(136);
  979. }
  980. static CUresult _WRAPLIB_API_CALL cuMemGetAccess_init(unsigned long long *arg0, const CUmemLocation *arg1, CUdeviceptr arg2) {
  981. load_library();
  982. return cuMemGetAccess(arg0, arg1, arg2);
  983. }
  984. static CUresult _WRAPLIB_API_CALL cuMemGetAccess_error(unsigned long long *, const CUmemLocation *, CUdeviceptr) {
  985. return on_init_failed<CUresult >(137);
  986. }
  987. static CUresult _WRAPLIB_API_CALL cuMemExportToShareableHandle_init(void *arg0, CUmemGenericAllocationHandle arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  988. load_library();
  989. return cuMemExportToShareableHandle(arg0, arg1, arg2, arg3);
  990. }
  991. static CUresult _WRAPLIB_API_CALL cuMemExportToShareableHandle_error(void *, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long) {
  992. return on_init_failed<CUresult >(138);
  993. }
  994. static CUresult _WRAPLIB_API_CALL cuMemImportFromShareableHandle_init(CUmemGenericAllocationHandle *arg0, void *arg1, CUmemAllocationHandleType arg2) {
  995. load_library();
  996. return cuMemImportFromShareableHandle(arg0, arg1, arg2);
  997. }
  998. static CUresult _WRAPLIB_API_CALL cuMemImportFromShareableHandle_error(CUmemGenericAllocationHandle *, void *, CUmemAllocationHandleType) {
  999. return on_init_failed<CUresult >(139);
  1000. }
  1001. static CUresult _WRAPLIB_API_CALL cuMemGetAllocationGranularity_init(size_t *arg0, const CUmemAllocationProp *arg1, CUmemAllocationGranularity_flags arg2) {
  1002. load_library();
  1003. return cuMemGetAllocationGranularity(arg0, arg1, arg2);
  1004. }
  1005. static CUresult _WRAPLIB_API_CALL cuMemGetAllocationGranularity_error(size_t *, const CUmemAllocationProp *, CUmemAllocationGranularity_flags) {
  1006. return on_init_failed<CUresult >(140);
  1007. }
  1008. static CUresult _WRAPLIB_API_CALL cuMemGetAllocationPropertiesFromHandle_init(CUmemAllocationProp *arg0, CUmemGenericAllocationHandle arg1) {
  1009. load_library();
  1010. return cuMemGetAllocationPropertiesFromHandle(arg0, arg1);
  1011. }
  1012. static CUresult _WRAPLIB_API_CALL cuMemGetAllocationPropertiesFromHandle_error(CUmemAllocationProp *, CUmemGenericAllocationHandle) {
  1013. return on_init_failed<CUresult >(141);
  1014. }
  1015. static CUresult _WRAPLIB_API_CALL cuMemRetainAllocationHandle_init(CUmemGenericAllocationHandle *arg0, void *arg1) {
  1016. load_library();
  1017. return cuMemRetainAllocationHandle(arg0, arg1);
  1018. }
  1019. static CUresult _WRAPLIB_API_CALL cuMemRetainAllocationHandle_error(CUmemGenericAllocationHandle *, void *) {
  1020. return on_init_failed<CUresult >(142);
  1021. }
  1022. static CUresult _WRAPLIB_API_CALL cuMemFreeAsync_ptsz_init(CUdeviceptr arg0, CUstream arg1) {
  1023. load_library();
  1024. return cuMemFreeAsync_ptsz(arg0, arg1);
  1025. }
  1026. static CUresult _WRAPLIB_API_CALL cuMemFreeAsync_ptsz_error(CUdeviceptr, CUstream) {
  1027. return on_init_failed<CUresult >(143);
  1028. }
  1029. static CUresult _WRAPLIB_API_CALL cuMemAllocAsync_ptsz_init(CUdeviceptr *arg0, size_t arg1, CUstream arg2) {
  1030. load_library();
  1031. return cuMemAllocAsync_ptsz(arg0, arg1, arg2);
  1032. }
  1033. static CUresult _WRAPLIB_API_CALL cuMemAllocAsync_ptsz_error(CUdeviceptr *, size_t, CUstream) {
  1034. return on_init_failed<CUresult >(144);
  1035. }
  1036. static CUresult _WRAPLIB_API_CALL cuMemPoolTrimTo_init(CUmemoryPool arg0, size_t arg1) {
  1037. load_library();
  1038. return cuMemPoolTrimTo(arg0, arg1);
  1039. }
  1040. static CUresult _WRAPLIB_API_CALL cuMemPoolTrimTo_error(CUmemoryPool, size_t) {
  1041. return on_init_failed<CUresult >(145);
  1042. }
  1043. static CUresult _WRAPLIB_API_CALL cuMemPoolSetAttribute_init(CUmemoryPool arg0, CUmemPool_attribute arg1, void *arg2) {
  1044. load_library();
  1045. return cuMemPoolSetAttribute(arg0, arg1, arg2);
  1046. }
  1047. static CUresult _WRAPLIB_API_CALL cuMemPoolSetAttribute_error(CUmemoryPool, CUmemPool_attribute, void *) {
  1048. return on_init_failed<CUresult >(146);
  1049. }
  1050. static CUresult _WRAPLIB_API_CALL cuMemPoolGetAttribute_init(CUmemoryPool arg0, CUmemPool_attribute arg1, void *arg2) {
  1051. load_library();
  1052. return cuMemPoolGetAttribute(arg0, arg1, arg2);
  1053. }
  1054. static CUresult _WRAPLIB_API_CALL cuMemPoolGetAttribute_error(CUmemoryPool, CUmemPool_attribute, void *) {
  1055. return on_init_failed<CUresult >(147);
  1056. }
  1057. static CUresult _WRAPLIB_API_CALL cuMemPoolSetAccess_init(CUmemoryPool arg0, const CUmemAccessDesc *arg1, size_t arg2) {
  1058. load_library();
  1059. return cuMemPoolSetAccess(arg0, arg1, arg2);
  1060. }
  1061. static CUresult _WRAPLIB_API_CALL cuMemPoolSetAccess_error(CUmemoryPool, const CUmemAccessDesc *, size_t) {
  1062. return on_init_failed<CUresult >(148);
  1063. }
  1064. static CUresult _WRAPLIB_API_CALL cuMemPoolGetAccess_init(CUmemAccess_flags *arg0, CUmemoryPool arg1, CUmemLocation *arg2) {
  1065. load_library();
  1066. return cuMemPoolGetAccess(arg0, arg1, arg2);
  1067. }
  1068. static CUresult _WRAPLIB_API_CALL cuMemPoolGetAccess_error(CUmemAccess_flags *, CUmemoryPool, CUmemLocation *) {
  1069. return on_init_failed<CUresult >(149);
  1070. }
  1071. static CUresult _WRAPLIB_API_CALL cuMemPoolCreate_init(CUmemoryPool *arg0, const CUmemPoolProps *arg1) {
  1072. load_library();
  1073. return cuMemPoolCreate(arg0, arg1);
  1074. }
  1075. static CUresult _WRAPLIB_API_CALL cuMemPoolCreate_error(CUmemoryPool *, const CUmemPoolProps *) {
  1076. return on_init_failed<CUresult >(150);
  1077. }
  1078. static CUresult _WRAPLIB_API_CALL cuMemPoolDestroy_init(CUmemoryPool arg0) {
  1079. load_library();
  1080. return cuMemPoolDestroy(arg0);
  1081. }
  1082. static CUresult _WRAPLIB_API_CALL cuMemPoolDestroy_error(CUmemoryPool) {
  1083. return on_init_failed<CUresult >(151);
  1084. }
  1085. static CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync_ptsz_init(CUdeviceptr *arg0, size_t arg1, CUmemoryPool arg2, CUstream arg3) {
  1086. load_library();
  1087. return cuMemAllocFromPoolAsync_ptsz(arg0, arg1, arg2, arg3);
  1088. }
  1089. static CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync_ptsz_error(CUdeviceptr *, size_t, CUmemoryPool, CUstream) {
  1090. return on_init_failed<CUresult >(152);
  1091. }
  1092. static CUresult _WRAPLIB_API_CALL cuMemPoolExportToShareableHandle_init(void *arg0, CUmemoryPool arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  1093. load_library();
  1094. return cuMemPoolExportToShareableHandle(arg0, arg1, arg2, arg3);
  1095. }
  1096. static CUresult _WRAPLIB_API_CALL cuMemPoolExportToShareableHandle_error(void *, CUmemoryPool, CUmemAllocationHandleType, unsigned long long) {
  1097. return on_init_failed<CUresult >(153);
  1098. }
  1099. static CUresult _WRAPLIB_API_CALL cuMemPoolImportFromShareableHandle_init(CUmemoryPool *arg0, void *arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  1100. load_library();
  1101. return cuMemPoolImportFromShareableHandle(arg0, arg1, arg2, arg3);
  1102. }
  1103. static CUresult _WRAPLIB_API_CALL cuMemPoolImportFromShareableHandle_error(CUmemoryPool *, void *, CUmemAllocationHandleType, unsigned long long) {
  1104. return on_init_failed<CUresult >(154);
  1105. }
  1106. static CUresult _WRAPLIB_API_CALL cuMemPoolExportPointer_init(CUmemPoolPtrExportData *arg0, CUdeviceptr arg1) {
  1107. load_library();
  1108. return cuMemPoolExportPointer(arg0, arg1);
  1109. }
  1110. static CUresult _WRAPLIB_API_CALL cuMemPoolExportPointer_error(CUmemPoolPtrExportData *, CUdeviceptr) {
  1111. return on_init_failed<CUresult >(155);
  1112. }
  1113. static CUresult _WRAPLIB_API_CALL cuMemPoolImportPointer_init(CUdeviceptr *arg0, CUmemoryPool arg1, CUmemPoolPtrExportData *arg2) {
  1114. load_library();
  1115. return cuMemPoolImportPointer(arg0, arg1, arg2);
  1116. }
  1117. static CUresult _WRAPLIB_API_CALL cuMemPoolImportPointer_error(CUdeviceptr *, CUmemoryPool, CUmemPoolPtrExportData *) {
  1118. return on_init_failed<CUresult >(156);
  1119. }
  1120. static CUresult _WRAPLIB_API_CALL cuPointerGetAttribute_init(void *arg0, CUpointer_attribute arg1, CUdeviceptr arg2) {
  1121. load_library();
  1122. return cuPointerGetAttribute(arg0, arg1, arg2);
  1123. }
  1124. static CUresult _WRAPLIB_API_CALL cuPointerGetAttribute_error(void *, CUpointer_attribute, CUdeviceptr) {
  1125. return on_init_failed<CUresult >(157);
  1126. }
  1127. static CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync_ptsz_init(CUdeviceptr arg0, size_t arg1, CUdevice arg2, CUstream arg3) {
  1128. load_library();
  1129. return cuMemPrefetchAsync_ptsz(arg0, arg1, arg2, arg3);
  1130. }
  1131. static CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync_ptsz_error(CUdeviceptr, size_t, CUdevice, CUstream) {
  1132. return on_init_failed<CUresult >(158);
  1133. }
  1134. static CUresult _WRAPLIB_API_CALL cuMemAdvise_init(CUdeviceptr arg0, size_t arg1, CUmem_advise arg2, CUdevice arg3) {
  1135. load_library();
  1136. return cuMemAdvise(arg0, arg1, arg2, arg3);
  1137. }
  1138. static CUresult _WRAPLIB_API_CALL cuMemAdvise_error(CUdeviceptr, size_t, CUmem_advise, CUdevice) {
  1139. return on_init_failed<CUresult >(159);
  1140. }
  1141. static CUresult _WRAPLIB_API_CALL cuMemRangeGetAttribute_init(void *arg0, size_t arg1, CUmem_range_attribute arg2, CUdeviceptr arg3, size_t arg4) {
  1142. load_library();
  1143. return cuMemRangeGetAttribute(arg0, arg1, arg2, arg3, arg4);
  1144. }
  1145. static CUresult _WRAPLIB_API_CALL cuMemRangeGetAttribute_error(void *, size_t, CUmem_range_attribute, CUdeviceptr, size_t) {
  1146. return on_init_failed<CUresult >(160);
  1147. }
  1148. static CUresult _WRAPLIB_API_CALL cuMemRangeGetAttributes_init(void **arg0, size_t *arg1, CUmem_range_attribute *arg2, size_t arg3, CUdeviceptr arg4, size_t arg5) {
  1149. load_library();
  1150. return cuMemRangeGetAttributes(arg0, arg1, arg2, arg3, arg4, arg5);
  1151. }
  1152. static CUresult _WRAPLIB_API_CALL cuMemRangeGetAttributes_error(void **, size_t *, CUmem_range_attribute *, size_t, CUdeviceptr, size_t) {
  1153. return on_init_failed<CUresult >(161);
  1154. }
  1155. static CUresult _WRAPLIB_API_CALL cuPointerSetAttribute_init(const void *arg0, CUpointer_attribute arg1, CUdeviceptr arg2) {
  1156. load_library();
  1157. return cuPointerSetAttribute(arg0, arg1, arg2);
  1158. }
  1159. static CUresult _WRAPLIB_API_CALL cuPointerSetAttribute_error(const void *, CUpointer_attribute, CUdeviceptr) {
  1160. return on_init_failed<CUresult >(162);
  1161. }
  1162. static CUresult _WRAPLIB_API_CALL cuPointerGetAttributes_init(unsigned int arg0, CUpointer_attribute *arg1, void **arg2, CUdeviceptr arg3) {
  1163. load_library();
  1164. return cuPointerGetAttributes(arg0, arg1, arg2, arg3);
  1165. }
  1166. static CUresult _WRAPLIB_API_CALL cuPointerGetAttributes_error(unsigned int, CUpointer_attribute *, void **, CUdeviceptr) {
  1167. return on_init_failed<CUresult >(163);
  1168. }
  1169. static CUresult _WRAPLIB_API_CALL cuStreamCreate_init(CUstream *arg0, unsigned int arg1) {
  1170. load_library();
  1171. return cuStreamCreate(arg0, arg1);
  1172. }
  1173. static CUresult _WRAPLIB_API_CALL cuStreamCreate_error(CUstream *, unsigned int) {
  1174. return on_init_failed<CUresult >(164);
  1175. }
  1176. static CUresult _WRAPLIB_API_CALL cuStreamCreateWithPriority_init(CUstream *arg0, unsigned int arg1, int arg2) {
  1177. load_library();
  1178. return cuStreamCreateWithPriority(arg0, arg1, arg2);
  1179. }
  1180. static CUresult _WRAPLIB_API_CALL cuStreamCreateWithPriority_error(CUstream *, unsigned int, int) {
  1181. return on_init_failed<CUresult >(165);
  1182. }
  1183. static CUresult _WRAPLIB_API_CALL cuStreamGetPriority_ptsz_init(CUstream arg0, int *arg1) {
  1184. load_library();
  1185. return cuStreamGetPriority_ptsz(arg0, arg1);
  1186. }
  1187. static CUresult _WRAPLIB_API_CALL cuStreamGetPriority_ptsz_error(CUstream, int *) {
  1188. return on_init_failed<CUresult >(166);
  1189. }
  1190. static CUresult _WRAPLIB_API_CALL cuStreamGetFlags_ptsz_init(CUstream arg0, unsigned int *arg1) {
  1191. load_library();
  1192. return cuStreamGetFlags_ptsz(arg0, arg1);
  1193. }
  1194. static CUresult _WRAPLIB_API_CALL cuStreamGetFlags_ptsz_error(CUstream, unsigned int *) {
  1195. return on_init_failed<CUresult >(167);
  1196. }
  1197. static CUresult _WRAPLIB_API_CALL cuStreamGetCtx_ptsz_init(CUstream arg0, CUcontext *arg1) {
  1198. load_library();
  1199. return cuStreamGetCtx_ptsz(arg0, arg1);
  1200. }
  1201. static CUresult _WRAPLIB_API_CALL cuStreamGetCtx_ptsz_error(CUstream, CUcontext *) {
  1202. return on_init_failed<CUresult >(168);
  1203. }
  1204. static CUresult _WRAPLIB_API_CALL cuStreamWaitEvent_ptsz_init(CUstream arg0, CUevent arg1, unsigned int arg2) {
  1205. load_library();
  1206. return cuStreamWaitEvent_ptsz(arg0, arg1, arg2);
  1207. }
  1208. static CUresult _WRAPLIB_API_CALL cuStreamWaitEvent_ptsz_error(CUstream, CUevent, unsigned int) {
  1209. return on_init_failed<CUresult >(169);
  1210. }
  1211. static CUresult _WRAPLIB_API_CALL cuStreamAddCallback_ptsz_init(CUstream arg0, CUstreamCallback arg1, void *arg2, unsigned int arg3) {
  1212. load_library();
  1213. return cuStreamAddCallback_ptsz(arg0, arg1, arg2, arg3);
  1214. }
  1215. static CUresult _WRAPLIB_API_CALL cuStreamAddCallback_ptsz_error(CUstream, CUstreamCallback, void *, unsigned int) {
  1216. return on_init_failed<CUresult >(170);
  1217. }
  1218. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2_ptsz_init(CUstream arg0, CUstreamCaptureMode arg1) {
  1219. load_library();
  1220. return cuStreamBeginCapture_v2_ptsz(arg0, arg1);
  1221. }
  1222. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2_ptsz_error(CUstream, CUstreamCaptureMode) {
  1223. return on_init_failed<CUresult >(171);
  1224. }
  1225. static CUresult _WRAPLIB_API_CALL cuThreadExchangeStreamCaptureMode_init(CUstreamCaptureMode *arg0) {
  1226. load_library();
  1227. return cuThreadExchangeStreamCaptureMode(arg0);
  1228. }
  1229. static CUresult _WRAPLIB_API_CALL cuThreadExchangeStreamCaptureMode_error(CUstreamCaptureMode *) {
  1230. return on_init_failed<CUresult >(172);
  1231. }
  1232. static CUresult _WRAPLIB_API_CALL cuStreamEndCapture_ptsz_init(CUstream arg0, CUgraph *arg1) {
  1233. load_library();
  1234. return cuStreamEndCapture_ptsz(arg0, arg1);
  1235. }
  1236. static CUresult _WRAPLIB_API_CALL cuStreamEndCapture_ptsz_error(CUstream, CUgraph *) {
  1237. return on_init_failed<CUresult >(173);
  1238. }
  1239. static CUresult _WRAPLIB_API_CALL cuStreamIsCapturing_ptsz_init(CUstream arg0, CUstreamCaptureStatus *arg1) {
  1240. load_library();
  1241. return cuStreamIsCapturing_ptsz(arg0, arg1);
  1242. }
  1243. static CUresult _WRAPLIB_API_CALL cuStreamIsCapturing_ptsz_error(CUstream, CUstreamCaptureStatus *) {
  1244. return on_init_failed<CUresult >(174);
  1245. }
  1246. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_ptsz_init(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2) {
  1247. load_library();
  1248. return cuStreamGetCaptureInfo_ptsz(arg0, arg1, arg2);
  1249. }
  1250. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_ptsz_error(CUstream, CUstreamCaptureStatus *, cuuint64_t *) {
  1251. return on_init_failed<CUresult >(175);
  1252. }
  1253. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2_ptsz_init(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2, CUgraph *arg3, const CUgraphNode **arg4, size_t *arg5) {
  1254. load_library();
  1255. return cuStreamGetCaptureInfo_v2_ptsz(arg0, arg1, arg2, arg3, arg4, arg5);
  1256. }
  1257. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2_ptsz_error(CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, const CUgraphNode **, size_t *) {
  1258. return on_init_failed<CUresult >(176);
  1259. }
  1260. static CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies_ptsz_init(CUstream arg0, CUgraphNode *arg1, size_t arg2, unsigned int arg3) {
  1261. load_library();
  1262. return cuStreamUpdateCaptureDependencies_ptsz(arg0, arg1, arg2, arg3);
  1263. }
  1264. static CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies_ptsz_error(CUstream, CUgraphNode *, size_t, unsigned int) {
  1265. return on_init_failed<CUresult >(177);
  1266. }
  1267. static CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync_ptsz_init(CUstream arg0, CUdeviceptr arg1, size_t arg2, unsigned int arg3) {
  1268. load_library();
  1269. return cuStreamAttachMemAsync_ptsz(arg0, arg1, arg2, arg3);
  1270. }
  1271. static CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync_ptsz_error(CUstream, CUdeviceptr, size_t, unsigned int) {
  1272. return on_init_failed<CUresult >(178);
  1273. }
  1274. static CUresult _WRAPLIB_API_CALL cuStreamQuery_ptsz_init(CUstream arg0) {
  1275. load_library();
  1276. return cuStreamQuery_ptsz(arg0);
  1277. }
  1278. static CUresult _WRAPLIB_API_CALL cuStreamQuery_ptsz_error(CUstream) {
  1279. return on_init_failed<CUresult >(179);
  1280. }
  1281. static CUresult _WRAPLIB_API_CALL cuStreamSynchronize_ptsz_init(CUstream arg0) {
  1282. load_library();
  1283. return cuStreamSynchronize_ptsz(arg0);
  1284. }
  1285. static CUresult _WRAPLIB_API_CALL cuStreamSynchronize_ptsz_error(CUstream) {
  1286. return on_init_failed<CUresult >(180);
  1287. }
  1288. static CUresult _WRAPLIB_API_CALL cuStreamDestroy_v2_init(CUstream arg0) {
  1289. load_library();
  1290. return cuStreamDestroy_v2(arg0);
  1291. }
  1292. static CUresult _WRAPLIB_API_CALL cuStreamDestroy_v2_error(CUstream) {
  1293. return on_init_failed<CUresult >(181);
  1294. }
  1295. static CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes_ptsz_init(CUstream arg0, CUstream arg1) {
  1296. load_library();
  1297. return cuStreamCopyAttributes_ptsz(arg0, arg1);
  1298. }
  1299. static CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes_ptsz_error(CUstream, CUstream) {
  1300. return on_init_failed<CUresult >(182);
  1301. }
  1302. static CUresult _WRAPLIB_API_CALL cuStreamGetAttribute_ptsz_init(CUstream arg0, CUstreamAttrID arg1, CUstreamAttrValue *arg2) {
  1303. load_library();
  1304. return cuStreamGetAttribute_ptsz(arg0, arg1, arg2);
  1305. }
  1306. static CUresult _WRAPLIB_API_CALL cuStreamGetAttribute_ptsz_error(CUstream, CUstreamAttrID, CUstreamAttrValue *) {
  1307. return on_init_failed<CUresult >(183);
  1308. }
  1309. static CUresult _WRAPLIB_API_CALL cuStreamSetAttribute_ptsz_init(CUstream arg0, CUstreamAttrID arg1, const CUstreamAttrValue *arg2) {
  1310. load_library();
  1311. return cuStreamSetAttribute_ptsz(arg0, arg1, arg2);
  1312. }
  1313. static CUresult _WRAPLIB_API_CALL cuStreamSetAttribute_ptsz_error(CUstream, CUstreamAttrID, const CUstreamAttrValue *) {
  1314. return on_init_failed<CUresult >(184);
  1315. }
  1316. static CUresult _WRAPLIB_API_CALL cuEventCreate_init(CUevent *arg0, unsigned int arg1) {
  1317. load_library();
  1318. return cuEventCreate(arg0, arg1);
  1319. }
  1320. static CUresult _WRAPLIB_API_CALL cuEventCreate_error(CUevent *, unsigned int) {
  1321. return on_init_failed<CUresult >(185);
  1322. }
  1323. static CUresult _WRAPLIB_API_CALL cuEventRecord_ptsz_init(CUevent arg0, CUstream arg1) {
  1324. load_library();
  1325. return cuEventRecord_ptsz(arg0, arg1);
  1326. }
  1327. static CUresult _WRAPLIB_API_CALL cuEventRecord_ptsz_error(CUevent, CUstream) {
  1328. return on_init_failed<CUresult >(186);
  1329. }
  1330. static CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags_ptsz_init(CUevent arg0, CUstream arg1, unsigned int arg2) {
  1331. load_library();
  1332. return cuEventRecordWithFlags_ptsz(arg0, arg1, arg2);
  1333. }
  1334. static CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags_ptsz_error(CUevent, CUstream, unsigned int) {
  1335. return on_init_failed<CUresult >(187);
  1336. }
  1337. static CUresult _WRAPLIB_API_CALL cuEventQuery_init(CUevent arg0) {
  1338. load_library();
  1339. return cuEventQuery(arg0);
  1340. }
  1341. static CUresult _WRAPLIB_API_CALL cuEventQuery_error(CUevent) {
  1342. return on_init_failed<CUresult >(188);
  1343. }
  1344. static CUresult _WRAPLIB_API_CALL cuEventSynchronize_init(CUevent arg0) {
  1345. load_library();
  1346. return cuEventSynchronize(arg0);
  1347. }
  1348. static CUresult _WRAPLIB_API_CALL cuEventSynchronize_error(CUevent) {
  1349. return on_init_failed<CUresult >(189);
  1350. }
  1351. static CUresult _WRAPLIB_API_CALL cuEventDestroy_v2_init(CUevent arg0) {
  1352. load_library();
  1353. return cuEventDestroy_v2(arg0);
  1354. }
  1355. static CUresult _WRAPLIB_API_CALL cuEventDestroy_v2_error(CUevent) {
  1356. return on_init_failed<CUresult >(190);
  1357. }
  1358. static CUresult _WRAPLIB_API_CALL cuEventElapsedTime_init(float *arg0, CUevent arg1, CUevent arg2) {
  1359. load_library();
  1360. return cuEventElapsedTime(arg0, arg1, arg2);
  1361. }
  1362. static CUresult _WRAPLIB_API_CALL cuEventElapsedTime_error(float *, CUevent, CUevent) {
  1363. return on_init_failed<CUresult >(191);
  1364. }
  1365. static CUresult _WRAPLIB_API_CALL cuImportExternalMemory_init(CUexternalMemory *arg0, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC *arg1) {
  1366. load_library();
  1367. return cuImportExternalMemory(arg0, arg1);
  1368. }
  1369. static CUresult _WRAPLIB_API_CALL cuImportExternalMemory_error(CUexternalMemory *, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC *) {
  1370. return on_init_failed<CUresult >(192);
  1371. }
  1372. static CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedBuffer_init(CUdeviceptr *arg0, CUexternalMemory arg1, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC *arg2) {
  1373. load_library();
  1374. return cuExternalMemoryGetMappedBuffer(arg0, arg1, arg2);
  1375. }
  1376. static CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedBuffer_error(CUdeviceptr *, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC *) {
  1377. return on_init_failed<CUresult >(193);
  1378. }
  1379. static CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedMipmappedArray_init(CUmipmappedArray *arg0, CUexternalMemory arg1, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC *arg2) {
  1380. load_library();
  1381. return cuExternalMemoryGetMappedMipmappedArray(arg0, arg1, arg2);
  1382. }
  1383. static CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedMipmappedArray_error(CUmipmappedArray *, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC *) {
  1384. return on_init_failed<CUresult >(194);
  1385. }
  1386. static CUresult _WRAPLIB_API_CALL cuDestroyExternalMemory_init(CUexternalMemory arg0) {
  1387. load_library();
  1388. return cuDestroyExternalMemory(arg0);
  1389. }
  1390. static CUresult _WRAPLIB_API_CALL cuDestroyExternalMemory_error(CUexternalMemory) {
  1391. return on_init_failed<CUresult >(195);
  1392. }
  1393. static CUresult _WRAPLIB_API_CALL cuImportExternalSemaphore_init(CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC *arg1) {
  1394. load_library();
  1395. return cuImportExternalSemaphore(arg0, arg1);
  1396. }
  1397. static CUresult _WRAPLIB_API_CALL cuImportExternalSemaphore_error(CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC *) {
  1398. return on_init_failed<CUresult >(196);
  1399. }
  1400. static CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync_ptsz_init(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  1401. load_library();
  1402. return cuSignalExternalSemaphoresAsync_ptsz(arg0, arg1, arg2, arg3);
  1403. }
  1404. static CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync_ptsz_error(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *, unsigned int, CUstream) {
  1405. return on_init_failed<CUresult >(197);
  1406. }
  1407. static CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync_ptsz_init(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  1408. load_library();
  1409. return cuWaitExternalSemaphoresAsync_ptsz(arg0, arg1, arg2, arg3);
  1410. }
  1411. static CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync_ptsz_error(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *, unsigned int, CUstream) {
  1412. return on_init_failed<CUresult >(198);
  1413. }
  1414. static CUresult _WRAPLIB_API_CALL cuDestroyExternalSemaphore_init(CUexternalSemaphore arg0) {
  1415. load_library();
  1416. return cuDestroyExternalSemaphore(arg0);
  1417. }
  1418. static CUresult _WRAPLIB_API_CALL cuDestroyExternalSemaphore_error(CUexternalSemaphore) {
  1419. return on_init_failed<CUresult >(199);
  1420. }
  1421. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue32_ptsz_init(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  1422. load_library();
  1423. return cuStreamWaitValue32_ptsz(arg0, arg1, arg2, arg3);
  1424. }
  1425. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue32_ptsz_error(CUstream, CUdeviceptr, cuuint32_t, unsigned int) {
  1426. return on_init_failed<CUresult >(200);
  1427. }
  1428. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue64_ptsz_init(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  1429. load_library();
  1430. return cuStreamWaitValue64_ptsz(arg0, arg1, arg2, arg3);
  1431. }
  1432. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue64_ptsz_error(CUstream, CUdeviceptr, cuuint64_t, unsigned int) {
  1433. return on_init_failed<CUresult >(201);
  1434. }
  1435. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue32_ptsz_init(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  1436. load_library();
  1437. return cuStreamWriteValue32_ptsz(arg0, arg1, arg2, arg3);
  1438. }
  1439. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue32_ptsz_error(CUstream, CUdeviceptr, cuuint32_t, unsigned int) {
  1440. return on_init_failed<CUresult >(202);
  1441. }
  1442. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue64_ptsz_init(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  1443. load_library();
  1444. return cuStreamWriteValue64_ptsz(arg0, arg1, arg2, arg3);
  1445. }
  1446. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue64_ptsz_error(CUstream, CUdeviceptr, cuuint64_t, unsigned int) {
  1447. return on_init_failed<CUresult >(203);
  1448. }
  1449. static CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp_ptsz_init(CUstream arg0, unsigned int arg1, CUstreamBatchMemOpParams *arg2, unsigned int arg3) {
  1450. load_library();
  1451. return cuStreamBatchMemOp_ptsz(arg0, arg1, arg2, arg3);
  1452. }
  1453. static CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp_ptsz_error(CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int) {
  1454. return on_init_failed<CUresult >(204);
  1455. }
  1456. static CUresult _WRAPLIB_API_CALL cuFuncGetAttribute_init(int *arg0, CUfunction_attribute arg1, CUfunction arg2) {
  1457. load_library();
  1458. return cuFuncGetAttribute(arg0, arg1, arg2);
  1459. }
  1460. static CUresult _WRAPLIB_API_CALL cuFuncGetAttribute_error(int *, CUfunction_attribute, CUfunction) {
  1461. return on_init_failed<CUresult >(205);
  1462. }
  1463. static CUresult _WRAPLIB_API_CALL cuFuncSetAttribute_init(CUfunction arg0, CUfunction_attribute arg1, int arg2) {
  1464. load_library();
  1465. return cuFuncSetAttribute(arg0, arg1, arg2);
  1466. }
  1467. static CUresult _WRAPLIB_API_CALL cuFuncSetAttribute_error(CUfunction, CUfunction_attribute, int) {
  1468. return on_init_failed<CUresult >(206);
  1469. }
  1470. static CUresult _WRAPLIB_API_CALL cuFuncSetCacheConfig_init(CUfunction arg0, CUfunc_cache arg1) {
  1471. load_library();
  1472. return cuFuncSetCacheConfig(arg0, arg1);
  1473. }
  1474. static CUresult _WRAPLIB_API_CALL cuFuncSetCacheConfig_error(CUfunction, CUfunc_cache) {
  1475. return on_init_failed<CUresult >(207);
  1476. }
  1477. static CUresult _WRAPLIB_API_CALL cuFuncSetSharedMemConfig_init(CUfunction arg0, CUsharedconfig arg1) {
  1478. load_library();
  1479. return cuFuncSetSharedMemConfig(arg0, arg1);
  1480. }
  1481. static CUresult _WRAPLIB_API_CALL cuFuncSetSharedMemConfig_error(CUfunction, CUsharedconfig) {
  1482. return on_init_failed<CUresult >(208);
  1483. }
  1484. static CUresult _WRAPLIB_API_CALL cuFuncGetModule_init(CUmodule *arg0, CUfunction arg1) {
  1485. load_library();
  1486. return cuFuncGetModule(arg0, arg1);
  1487. }
  1488. static CUresult _WRAPLIB_API_CALL cuFuncGetModule_error(CUmodule *, CUfunction) {
  1489. return on_init_failed<CUresult >(209);
  1490. }
  1491. static CUresult _WRAPLIB_API_CALL cuLaunchKernel_ptsz_init(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9, void **arg10) {
  1492. load_library();
  1493. return cuLaunchKernel_ptsz(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  1494. }
  1495. static CUresult _WRAPLIB_API_CALL cuLaunchKernel_ptsz_error(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **) {
  1496. return on_init_failed<CUresult >(210);
  1497. }
  1498. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel_ptsz_init(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9) {
  1499. load_library();
  1500. return cuLaunchCooperativeKernel_ptsz(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  1501. }
  1502. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel_ptsz_error(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **) {
  1503. return on_init_failed<CUresult >(211);
  1504. }
  1505. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernelMultiDevice_init(CUDA_LAUNCH_PARAMS *arg0, unsigned int arg1, unsigned int arg2) {
  1506. load_library();
  1507. return cuLaunchCooperativeKernelMultiDevice(arg0, arg1, arg2);
  1508. }
  1509. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernelMultiDevice_error(CUDA_LAUNCH_PARAMS *, unsigned int, unsigned int) {
  1510. return on_init_failed<CUresult >(212);
  1511. }
  1512. static CUresult _WRAPLIB_API_CALL cuLaunchHostFunc_ptsz_init(CUstream arg0, CUhostFn arg1, void *arg2) {
  1513. load_library();
  1514. return cuLaunchHostFunc_ptsz(arg0, arg1, arg2);
  1515. }
  1516. static CUresult _WRAPLIB_API_CALL cuLaunchHostFunc_ptsz_error(CUstream, CUhostFn, void *) {
  1517. return on_init_failed<CUresult >(213);
  1518. }
  1519. static CUresult _WRAPLIB_API_CALL cuFuncSetBlockShape_init(CUfunction arg0, int arg1, int arg2, int arg3) {
  1520. load_library();
  1521. return cuFuncSetBlockShape(arg0, arg1, arg2, arg3);
  1522. }
  1523. static CUresult _WRAPLIB_API_CALL cuFuncSetBlockShape_error(CUfunction, int, int, int) {
  1524. return on_init_failed<CUresult >(214);
  1525. }
  1526. static CUresult _WRAPLIB_API_CALL cuFuncSetSharedSize_init(CUfunction arg0, unsigned int arg1) {
  1527. load_library();
  1528. return cuFuncSetSharedSize(arg0, arg1);
  1529. }
  1530. static CUresult _WRAPLIB_API_CALL cuFuncSetSharedSize_error(CUfunction, unsigned int) {
  1531. return on_init_failed<CUresult >(215);
  1532. }
  1533. static CUresult _WRAPLIB_API_CALL cuParamSetSize_init(CUfunction arg0, unsigned int arg1) {
  1534. load_library();
  1535. return cuParamSetSize(arg0, arg1);
  1536. }
  1537. static CUresult _WRAPLIB_API_CALL cuParamSetSize_error(CUfunction, unsigned int) {
  1538. return on_init_failed<CUresult >(216);
  1539. }
  1540. static CUresult _WRAPLIB_API_CALL cuParamSeti_init(CUfunction arg0, int arg1, unsigned int arg2) {
  1541. load_library();
  1542. return cuParamSeti(arg0, arg1, arg2);
  1543. }
  1544. static CUresult _WRAPLIB_API_CALL cuParamSeti_error(CUfunction, int, unsigned int) {
  1545. return on_init_failed<CUresult >(217);
  1546. }
  1547. static CUresult _WRAPLIB_API_CALL cuParamSetf_init(CUfunction arg0, int arg1, float arg2) {
  1548. load_library();
  1549. return cuParamSetf(arg0, arg1, arg2);
  1550. }
  1551. static CUresult _WRAPLIB_API_CALL cuParamSetf_error(CUfunction, int, float) {
  1552. return on_init_failed<CUresult >(218);
  1553. }
  1554. static CUresult _WRAPLIB_API_CALL cuParamSetv_init(CUfunction arg0, int arg1, void *arg2, unsigned int arg3) {
  1555. load_library();
  1556. return cuParamSetv(arg0, arg1, arg2, arg3);
  1557. }
  1558. static CUresult _WRAPLIB_API_CALL cuParamSetv_error(CUfunction, int, void *, unsigned int) {
  1559. return on_init_failed<CUresult >(219);
  1560. }
  1561. static CUresult _WRAPLIB_API_CALL cuLaunch_init(CUfunction arg0) {
  1562. load_library();
  1563. return cuLaunch(arg0);
  1564. }
  1565. static CUresult _WRAPLIB_API_CALL cuLaunch_error(CUfunction) {
  1566. return on_init_failed<CUresult >(220);
  1567. }
  1568. static CUresult _WRAPLIB_API_CALL cuLaunchGrid_init(CUfunction arg0, int arg1, int arg2) {
  1569. load_library();
  1570. return cuLaunchGrid(arg0, arg1, arg2);
  1571. }
  1572. static CUresult _WRAPLIB_API_CALL cuLaunchGrid_error(CUfunction, int, int) {
  1573. return on_init_failed<CUresult >(221);
  1574. }
  1575. static CUresult _WRAPLIB_API_CALL cuLaunchGridAsync_init(CUfunction arg0, int arg1, int arg2, CUstream arg3) {
  1576. load_library();
  1577. return cuLaunchGridAsync(arg0, arg1, arg2, arg3);
  1578. }
  1579. static CUresult _WRAPLIB_API_CALL cuLaunchGridAsync_error(CUfunction, int, int, CUstream) {
  1580. return on_init_failed<CUresult >(222);
  1581. }
  1582. static CUresult _WRAPLIB_API_CALL cuParamSetTexRef_init(CUfunction arg0, int arg1, CUtexref arg2) {
  1583. load_library();
  1584. return cuParamSetTexRef(arg0, arg1, arg2);
  1585. }
  1586. static CUresult _WRAPLIB_API_CALL cuParamSetTexRef_error(CUfunction, int, CUtexref) {
  1587. return on_init_failed<CUresult >(223);
  1588. }
  1589. static CUresult _WRAPLIB_API_CALL cuGraphCreate_init(CUgraph *arg0, unsigned int arg1) {
  1590. load_library();
  1591. return cuGraphCreate(arg0, arg1);
  1592. }
  1593. static CUresult _WRAPLIB_API_CALL cuGraphCreate_error(CUgraph *, unsigned int) {
  1594. return on_init_failed<CUresult >(224);
  1595. }
  1596. static CUresult _WRAPLIB_API_CALL cuGraphAddKernelNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_KERNEL_NODE_PARAMS *arg4) {
  1597. load_library();
  1598. return cuGraphAddKernelNode(arg0, arg1, arg2, arg3, arg4);
  1599. }
  1600. static CUresult _WRAPLIB_API_CALL cuGraphAddKernelNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_KERNEL_NODE_PARAMS *) {
  1601. return on_init_failed<CUresult >(225);
  1602. }
  1603. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetParams_init(CUgraphNode arg0, CUDA_KERNEL_NODE_PARAMS *arg1) {
  1604. load_library();
  1605. return cuGraphKernelNodeGetParams(arg0, arg1);
  1606. }
  1607. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetParams_error(CUgraphNode, CUDA_KERNEL_NODE_PARAMS *) {
  1608. return on_init_failed<CUresult >(226);
  1609. }
  1610. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetParams_init(CUgraphNode arg0, const CUDA_KERNEL_NODE_PARAMS *arg1) {
  1611. load_library();
  1612. return cuGraphKernelNodeSetParams(arg0, arg1);
  1613. }
  1614. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetParams_error(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS *) {
  1615. return on_init_failed<CUresult >(227);
  1616. }
  1617. static CUresult _WRAPLIB_API_CALL cuGraphAddMemcpyNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_MEMCPY3D *arg4, CUcontext arg5) {
  1618. load_library();
  1619. return cuGraphAddMemcpyNode(arg0, arg1, arg2, arg3, arg4, arg5);
  1620. }
  1621. static CUresult _WRAPLIB_API_CALL cuGraphAddMemcpyNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_MEMCPY3D *, CUcontext) {
  1622. return on_init_failed<CUresult >(228);
  1623. }
  1624. static CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeGetParams_init(CUgraphNode arg0, CUDA_MEMCPY3D *arg1) {
  1625. load_library();
  1626. return cuGraphMemcpyNodeGetParams(arg0, arg1);
  1627. }
  1628. static CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeGetParams_error(CUgraphNode, CUDA_MEMCPY3D *) {
  1629. return on_init_failed<CUresult >(229);
  1630. }
  1631. static CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeSetParams_init(CUgraphNode arg0, const CUDA_MEMCPY3D *arg1) {
  1632. load_library();
  1633. return cuGraphMemcpyNodeSetParams(arg0, arg1);
  1634. }
  1635. static CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeSetParams_error(CUgraphNode, const CUDA_MEMCPY3D *) {
  1636. return on_init_failed<CUresult >(230);
  1637. }
  1638. static CUresult _WRAPLIB_API_CALL cuGraphAddMemsetNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_MEMSET_NODE_PARAMS *arg4, CUcontext arg5) {
  1639. load_library();
  1640. return cuGraphAddMemsetNode(arg0, arg1, arg2, arg3, arg4, arg5);
  1641. }
  1642. static CUresult _WRAPLIB_API_CALL cuGraphAddMemsetNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_MEMSET_NODE_PARAMS *, CUcontext) {
  1643. return on_init_failed<CUresult >(231);
  1644. }
  1645. static CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeGetParams_init(CUgraphNode arg0, CUDA_MEMSET_NODE_PARAMS *arg1) {
  1646. load_library();
  1647. return cuGraphMemsetNodeGetParams(arg0, arg1);
  1648. }
  1649. static CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeGetParams_error(CUgraphNode, CUDA_MEMSET_NODE_PARAMS *) {
  1650. return on_init_failed<CUresult >(232);
  1651. }
  1652. static CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeSetParams_init(CUgraphNode arg0, const CUDA_MEMSET_NODE_PARAMS *arg1) {
  1653. load_library();
  1654. return cuGraphMemsetNodeSetParams(arg0, arg1);
  1655. }
  1656. static CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeSetParams_error(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS *) {
  1657. return on_init_failed<CUresult >(233);
  1658. }
  1659. static CUresult _WRAPLIB_API_CALL cuGraphAddHostNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_HOST_NODE_PARAMS *arg4) {
  1660. load_library();
  1661. return cuGraphAddHostNode(arg0, arg1, arg2, arg3, arg4);
  1662. }
  1663. static CUresult _WRAPLIB_API_CALL cuGraphAddHostNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_HOST_NODE_PARAMS *) {
  1664. return on_init_failed<CUresult >(234);
  1665. }
  1666. static CUresult _WRAPLIB_API_CALL cuGraphHostNodeGetParams_init(CUgraphNode arg0, CUDA_HOST_NODE_PARAMS *arg1) {
  1667. load_library();
  1668. return cuGraphHostNodeGetParams(arg0, arg1);
  1669. }
  1670. static CUresult _WRAPLIB_API_CALL cuGraphHostNodeGetParams_error(CUgraphNode, CUDA_HOST_NODE_PARAMS *) {
  1671. return on_init_failed<CUresult >(235);
  1672. }
  1673. static CUresult _WRAPLIB_API_CALL cuGraphHostNodeSetParams_init(CUgraphNode arg0, const CUDA_HOST_NODE_PARAMS *arg1) {
  1674. load_library();
  1675. return cuGraphHostNodeSetParams(arg0, arg1);
  1676. }
  1677. static CUresult _WRAPLIB_API_CALL cuGraphHostNodeSetParams_error(CUgraphNode, const CUDA_HOST_NODE_PARAMS *) {
  1678. return on_init_failed<CUresult >(236);
  1679. }
  1680. static CUresult _WRAPLIB_API_CALL cuGraphAddChildGraphNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUgraph arg4) {
  1681. load_library();
  1682. return cuGraphAddChildGraphNode(arg0, arg1, arg2, arg3, arg4);
  1683. }
  1684. static CUresult _WRAPLIB_API_CALL cuGraphAddChildGraphNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUgraph) {
  1685. return on_init_failed<CUresult >(237);
  1686. }
  1687. static CUresult _WRAPLIB_API_CALL cuGraphChildGraphNodeGetGraph_init(CUgraphNode arg0, CUgraph *arg1) {
  1688. load_library();
  1689. return cuGraphChildGraphNodeGetGraph(arg0, arg1);
  1690. }
  1691. static CUresult _WRAPLIB_API_CALL cuGraphChildGraphNodeGetGraph_error(CUgraphNode, CUgraph *) {
  1692. return on_init_failed<CUresult >(238);
  1693. }
  1694. static CUresult _WRAPLIB_API_CALL cuGraphAddEmptyNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3) {
  1695. load_library();
  1696. return cuGraphAddEmptyNode(arg0, arg1, arg2, arg3);
  1697. }
  1698. static CUresult _WRAPLIB_API_CALL cuGraphAddEmptyNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t) {
  1699. return on_init_failed<CUresult >(239);
  1700. }
  1701. static CUresult _WRAPLIB_API_CALL cuGraphAddEventRecordNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUevent arg4) {
  1702. load_library();
  1703. return cuGraphAddEventRecordNode(arg0, arg1, arg2, arg3, arg4);
  1704. }
  1705. static CUresult _WRAPLIB_API_CALL cuGraphAddEventRecordNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUevent) {
  1706. return on_init_failed<CUresult >(240);
  1707. }
  1708. static CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeGetEvent_init(CUgraphNode arg0, CUevent *arg1) {
  1709. load_library();
  1710. return cuGraphEventRecordNodeGetEvent(arg0, arg1);
  1711. }
  1712. static CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeGetEvent_error(CUgraphNode, CUevent *) {
  1713. return on_init_failed<CUresult >(241);
  1714. }
  1715. static CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeSetEvent_init(CUgraphNode arg0, CUevent arg1) {
  1716. load_library();
  1717. return cuGraphEventRecordNodeSetEvent(arg0, arg1);
  1718. }
  1719. static CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeSetEvent_error(CUgraphNode, CUevent) {
  1720. return on_init_failed<CUresult >(242);
  1721. }
  1722. static CUresult _WRAPLIB_API_CALL cuGraphAddEventWaitNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUevent arg4) {
  1723. load_library();
  1724. return cuGraphAddEventWaitNode(arg0, arg1, arg2, arg3, arg4);
  1725. }
  1726. static CUresult _WRAPLIB_API_CALL cuGraphAddEventWaitNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUevent) {
  1727. return on_init_failed<CUresult >(243);
  1728. }
  1729. static CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeGetEvent_init(CUgraphNode arg0, CUevent *arg1) {
  1730. load_library();
  1731. return cuGraphEventWaitNodeGetEvent(arg0, arg1);
  1732. }
  1733. static CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeGetEvent_error(CUgraphNode, CUevent *) {
  1734. return on_init_failed<CUresult >(244);
  1735. }
  1736. static CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeSetEvent_init(CUgraphNode arg0, CUevent arg1) {
  1737. load_library();
  1738. return cuGraphEventWaitNodeSetEvent(arg0, arg1);
  1739. }
  1740. static CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeSetEvent_error(CUgraphNode, CUevent) {
  1741. return on_init_failed<CUresult >(245);
  1742. }
  1743. static CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresSignalNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg4) {
  1744. load_library();
  1745. return cuGraphAddExternalSemaphoresSignalNode(arg0, arg1, arg2, arg3, arg4);
  1746. }
  1747. static CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresSignalNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *) {
  1748. return on_init_failed<CUresult >(246);
  1749. }
  1750. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeGetParams_init(CUgraphNode arg0, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg1) {
  1751. load_library();
  1752. return cuGraphExternalSemaphoresSignalNodeGetParams(arg0, arg1);
  1753. }
  1754. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeGetParams_error(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *) {
  1755. return on_init_failed<CUresult >(247);
  1756. }
  1757. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeSetParams_init(CUgraphNode arg0, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg1) {
  1758. load_library();
  1759. return cuGraphExternalSemaphoresSignalNodeSetParams(arg0, arg1);
  1760. }
  1761. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeSetParams_error(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *) {
  1762. return on_init_failed<CUresult >(248);
  1763. }
  1764. static CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresWaitNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg4) {
  1765. load_library();
  1766. return cuGraphAddExternalSemaphoresWaitNode(arg0, arg1, arg2, arg3, arg4);
  1767. }
  1768. static CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresWaitNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *) {
  1769. return on_init_failed<CUresult >(249);
  1770. }
  1771. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeGetParams_init(CUgraphNode arg0, CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg1) {
  1772. load_library();
  1773. return cuGraphExternalSemaphoresWaitNodeGetParams(arg0, arg1);
  1774. }
  1775. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeGetParams_error(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS *) {
  1776. return on_init_failed<CUresult >(250);
  1777. }
  1778. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeSetParams_init(CUgraphNode arg0, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg1) {
  1779. load_library();
  1780. return cuGraphExternalSemaphoresWaitNodeSetParams(arg0, arg1);
  1781. }
  1782. static CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeSetParams_error(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *) {
  1783. return on_init_failed<CUresult >(251);
  1784. }
  1785. static CUresult _WRAPLIB_API_CALL cuGraphAddMemAllocNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUDA_MEM_ALLOC_NODE_PARAMS *arg4) {
  1786. load_library();
  1787. return cuGraphAddMemAllocNode(arg0, arg1, arg2, arg3, arg4);
  1788. }
  1789. static CUresult _WRAPLIB_API_CALL cuGraphAddMemAllocNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUDA_MEM_ALLOC_NODE_PARAMS *) {
  1790. return on_init_failed<CUresult >(252);
  1791. }
  1792. static CUresult _WRAPLIB_API_CALL cuGraphMemAllocNodeGetParams_init(CUgraphNode arg0, CUDA_MEM_ALLOC_NODE_PARAMS *arg1) {
  1793. load_library();
  1794. return cuGraphMemAllocNodeGetParams(arg0, arg1);
  1795. }
  1796. static CUresult _WRAPLIB_API_CALL cuGraphMemAllocNodeGetParams_error(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS *) {
  1797. return on_init_failed<CUresult >(253);
  1798. }
  1799. static CUresult _WRAPLIB_API_CALL cuGraphAddMemFreeNode_init(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUdeviceptr arg4) {
  1800. load_library();
  1801. return cuGraphAddMemFreeNode(arg0, arg1, arg2, arg3, arg4);
  1802. }
  1803. static CUresult _WRAPLIB_API_CALL cuGraphAddMemFreeNode_error(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUdeviceptr) {
  1804. return on_init_failed<CUresult >(254);
  1805. }
  1806. static CUresult _WRAPLIB_API_CALL cuGraphMemFreeNodeGetParams_init(CUgraphNode arg0, CUdeviceptr *arg1) {
  1807. load_library();
  1808. return cuGraphMemFreeNodeGetParams(arg0, arg1);
  1809. }
  1810. static CUresult _WRAPLIB_API_CALL cuGraphMemFreeNodeGetParams_error(CUgraphNode, CUdeviceptr *) {
  1811. return on_init_failed<CUresult >(255);
  1812. }
  1813. static CUresult _WRAPLIB_API_CALL cuDeviceGraphMemTrim_init(CUdevice arg0) {
  1814. load_library();
  1815. return cuDeviceGraphMemTrim(arg0);
  1816. }
  1817. static CUresult _WRAPLIB_API_CALL cuDeviceGraphMemTrim_error(CUdevice) {
  1818. return on_init_failed<CUresult >(256);
  1819. }
  1820. static CUresult _WRAPLIB_API_CALL cuDeviceGetGraphMemAttribute_init(CUdevice arg0, CUgraphMem_attribute arg1, void *arg2) {
  1821. load_library();
  1822. return cuDeviceGetGraphMemAttribute(arg0, arg1, arg2);
  1823. }
  1824. static CUresult _WRAPLIB_API_CALL cuDeviceGetGraphMemAttribute_error(CUdevice, CUgraphMem_attribute, void *) {
  1825. return on_init_failed<CUresult >(257);
  1826. }
  1827. static CUresult _WRAPLIB_API_CALL cuDeviceSetGraphMemAttribute_init(CUdevice arg0, CUgraphMem_attribute arg1, void *arg2) {
  1828. load_library();
  1829. return cuDeviceSetGraphMemAttribute(arg0, arg1, arg2);
  1830. }
  1831. static CUresult _WRAPLIB_API_CALL cuDeviceSetGraphMemAttribute_error(CUdevice, CUgraphMem_attribute, void *) {
  1832. return on_init_failed<CUresult >(258);
  1833. }
  1834. static CUresult _WRAPLIB_API_CALL cuGraphClone_init(CUgraph *arg0, CUgraph arg1) {
  1835. load_library();
  1836. return cuGraphClone(arg0, arg1);
  1837. }
  1838. static CUresult _WRAPLIB_API_CALL cuGraphClone_error(CUgraph *, CUgraph) {
  1839. return on_init_failed<CUresult >(259);
  1840. }
  1841. static CUresult _WRAPLIB_API_CALL cuGraphNodeFindInClone_init(CUgraphNode *arg0, CUgraphNode arg1, CUgraph arg2) {
  1842. load_library();
  1843. return cuGraphNodeFindInClone(arg0, arg1, arg2);
  1844. }
  1845. static CUresult _WRAPLIB_API_CALL cuGraphNodeFindInClone_error(CUgraphNode *, CUgraphNode, CUgraph) {
  1846. return on_init_failed<CUresult >(260);
  1847. }
  1848. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetType_init(CUgraphNode arg0, CUgraphNodeType *arg1) {
  1849. load_library();
  1850. return cuGraphNodeGetType(arg0, arg1);
  1851. }
  1852. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetType_error(CUgraphNode, CUgraphNodeType *) {
  1853. return on_init_failed<CUresult >(261);
  1854. }
  1855. static CUresult _WRAPLIB_API_CALL cuGraphGetNodes_init(CUgraph arg0, CUgraphNode *arg1, size_t *arg2) {
  1856. load_library();
  1857. return cuGraphGetNodes(arg0, arg1, arg2);
  1858. }
  1859. static CUresult _WRAPLIB_API_CALL cuGraphGetNodes_error(CUgraph, CUgraphNode *, size_t *) {
  1860. return on_init_failed<CUresult >(262);
  1861. }
  1862. static CUresult _WRAPLIB_API_CALL cuGraphGetRootNodes_init(CUgraph arg0, CUgraphNode *arg1, size_t *arg2) {
  1863. load_library();
  1864. return cuGraphGetRootNodes(arg0, arg1, arg2);
  1865. }
  1866. static CUresult _WRAPLIB_API_CALL cuGraphGetRootNodes_error(CUgraph, CUgraphNode *, size_t *) {
  1867. return on_init_failed<CUresult >(263);
  1868. }
  1869. static CUresult _WRAPLIB_API_CALL cuGraphGetEdges_init(CUgraph arg0, CUgraphNode *arg1, CUgraphNode *arg2, size_t *arg3) {
  1870. load_library();
  1871. return cuGraphGetEdges(arg0, arg1, arg2, arg3);
  1872. }
  1873. static CUresult _WRAPLIB_API_CALL cuGraphGetEdges_error(CUgraph, CUgraphNode *, CUgraphNode *, size_t *) {
  1874. return on_init_failed<CUresult >(264);
  1875. }
  1876. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependencies_init(CUgraphNode arg0, CUgraphNode *arg1, size_t *arg2) {
  1877. load_library();
  1878. return cuGraphNodeGetDependencies(arg0, arg1, arg2);
  1879. }
  1880. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependencies_error(CUgraphNode, CUgraphNode *, size_t *) {
  1881. return on_init_failed<CUresult >(265);
  1882. }
  1883. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependentNodes_init(CUgraphNode arg0, CUgraphNode *arg1, size_t *arg2) {
  1884. load_library();
  1885. return cuGraphNodeGetDependentNodes(arg0, arg1, arg2);
  1886. }
  1887. static CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependentNodes_error(CUgraphNode, CUgraphNode *, size_t *) {
  1888. return on_init_failed<CUresult >(266);
  1889. }
  1890. static CUresult _WRAPLIB_API_CALL cuGraphAddDependencies_init(CUgraph arg0, const CUgraphNode *arg1, const CUgraphNode *arg2, size_t arg3) {
  1891. load_library();
  1892. return cuGraphAddDependencies(arg0, arg1, arg2, arg3);
  1893. }
  1894. static CUresult _WRAPLIB_API_CALL cuGraphAddDependencies_error(CUgraph, const CUgraphNode *, const CUgraphNode *, size_t) {
  1895. return on_init_failed<CUresult >(267);
  1896. }
  1897. static CUresult _WRAPLIB_API_CALL cuGraphRemoveDependencies_init(CUgraph arg0, const CUgraphNode *arg1, const CUgraphNode *arg2, size_t arg3) {
  1898. load_library();
  1899. return cuGraphRemoveDependencies(arg0, arg1, arg2, arg3);
  1900. }
  1901. static CUresult _WRAPLIB_API_CALL cuGraphRemoveDependencies_error(CUgraph, const CUgraphNode *, const CUgraphNode *, size_t) {
  1902. return on_init_failed<CUresult >(268);
  1903. }
  1904. static CUresult _WRAPLIB_API_CALL cuGraphDestroyNode_init(CUgraphNode arg0) {
  1905. load_library();
  1906. return cuGraphDestroyNode(arg0);
  1907. }
  1908. static CUresult _WRAPLIB_API_CALL cuGraphDestroyNode_error(CUgraphNode) {
  1909. return on_init_failed<CUresult >(269);
  1910. }
  1911. static CUresult _WRAPLIB_API_CALL cuGraphInstantiate_v2_init(CUgraphExec *arg0, CUgraph arg1, CUgraphNode *arg2, char *arg3, size_t arg4) {
  1912. load_library();
  1913. return cuGraphInstantiate_v2(arg0, arg1, arg2, arg3, arg4);
  1914. }
  1915. static CUresult _WRAPLIB_API_CALL cuGraphInstantiate_v2_error(CUgraphExec *, CUgraph, CUgraphNode *, char *, size_t) {
  1916. return on_init_failed<CUresult >(270);
  1917. }
  1918. static CUresult _WRAPLIB_API_CALL cuGraphInstantiateWithFlags_init(CUgraphExec *arg0, CUgraph arg1, unsigned long long arg2) {
  1919. load_library();
  1920. return cuGraphInstantiateWithFlags(arg0, arg1, arg2);
  1921. }
  1922. static CUresult _WRAPLIB_API_CALL cuGraphInstantiateWithFlags_error(CUgraphExec *, CUgraph, unsigned long long) {
  1923. return on_init_failed<CUresult >(271);
  1924. }
  1925. static CUresult _WRAPLIB_API_CALL cuGraphExecKernelNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_KERNEL_NODE_PARAMS *arg2) {
  1926. load_library();
  1927. return cuGraphExecKernelNodeSetParams(arg0, arg1, arg2);
  1928. }
  1929. static CUresult _WRAPLIB_API_CALL cuGraphExecKernelNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS *) {
  1930. return on_init_failed<CUresult >(272);
  1931. }
  1932. static CUresult _WRAPLIB_API_CALL cuGraphExecMemcpyNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_MEMCPY3D *arg2, CUcontext arg3) {
  1933. load_library();
  1934. return cuGraphExecMemcpyNodeSetParams(arg0, arg1, arg2, arg3);
  1935. }
  1936. static CUresult _WRAPLIB_API_CALL cuGraphExecMemcpyNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D *, CUcontext) {
  1937. return on_init_failed<CUresult >(273);
  1938. }
  1939. static CUresult _WRAPLIB_API_CALL cuGraphExecMemsetNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_MEMSET_NODE_PARAMS *arg2, CUcontext arg3) {
  1940. load_library();
  1941. return cuGraphExecMemsetNodeSetParams(arg0, arg1, arg2, arg3);
  1942. }
  1943. static CUresult _WRAPLIB_API_CALL cuGraphExecMemsetNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS *, CUcontext) {
  1944. return on_init_failed<CUresult >(274);
  1945. }
  1946. static CUresult _WRAPLIB_API_CALL cuGraphExecHostNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_HOST_NODE_PARAMS *arg2) {
  1947. load_library();
  1948. return cuGraphExecHostNodeSetParams(arg0, arg1, arg2);
  1949. }
  1950. static CUresult _WRAPLIB_API_CALL cuGraphExecHostNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS *) {
  1951. return on_init_failed<CUresult >(275);
  1952. }
  1953. static CUresult _WRAPLIB_API_CALL cuGraphExecChildGraphNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, CUgraph arg2) {
  1954. load_library();
  1955. return cuGraphExecChildGraphNodeSetParams(arg0, arg1, arg2);
  1956. }
  1957. static CUresult _WRAPLIB_API_CALL cuGraphExecChildGraphNodeSetParams_error(CUgraphExec, CUgraphNode, CUgraph) {
  1958. return on_init_failed<CUresult >(276);
  1959. }
  1960. static CUresult _WRAPLIB_API_CALL cuGraphExecEventRecordNodeSetEvent_init(CUgraphExec arg0, CUgraphNode arg1, CUevent arg2) {
  1961. load_library();
  1962. return cuGraphExecEventRecordNodeSetEvent(arg0, arg1, arg2);
  1963. }
  1964. static CUresult _WRAPLIB_API_CALL cuGraphExecEventRecordNodeSetEvent_error(CUgraphExec, CUgraphNode, CUevent) {
  1965. return on_init_failed<CUresult >(277);
  1966. }
  1967. static CUresult _WRAPLIB_API_CALL cuGraphExecEventWaitNodeSetEvent_init(CUgraphExec arg0, CUgraphNode arg1, CUevent arg2) {
  1968. load_library();
  1969. return cuGraphExecEventWaitNodeSetEvent(arg0, arg1, arg2);
  1970. }
  1971. static CUresult _WRAPLIB_API_CALL cuGraphExecEventWaitNodeSetEvent_error(CUgraphExec, CUgraphNode, CUevent) {
  1972. return on_init_failed<CUresult >(278);
  1973. }
  1974. static CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresSignalNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg2) {
  1975. load_library();
  1976. return cuGraphExecExternalSemaphoresSignalNodeSetParams(arg0, arg1, arg2);
  1977. }
  1978. static CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresSignalNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *) {
  1979. return on_init_failed<CUresult >(279);
  1980. }
  1981. static CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresWaitNodeSetParams_init(CUgraphExec arg0, CUgraphNode arg1, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg2) {
  1982. load_library();
  1983. return cuGraphExecExternalSemaphoresWaitNodeSetParams(arg0, arg1, arg2);
  1984. }
  1985. static CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresWaitNodeSetParams_error(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *) {
  1986. return on_init_failed<CUresult >(280);
  1987. }
  1988. static CUresult _WRAPLIB_API_CALL cuGraphUpload_ptsz_init(CUgraphExec arg0, CUstream arg1) {
  1989. load_library();
  1990. return cuGraphUpload_ptsz(arg0, arg1);
  1991. }
  1992. static CUresult _WRAPLIB_API_CALL cuGraphUpload_ptsz_error(CUgraphExec, CUstream) {
  1993. return on_init_failed<CUresult >(281);
  1994. }
  1995. static CUresult _WRAPLIB_API_CALL cuGraphLaunch_ptsz_init(CUgraphExec arg0, CUstream arg1) {
  1996. load_library();
  1997. return cuGraphLaunch_ptsz(arg0, arg1);
  1998. }
  1999. static CUresult _WRAPLIB_API_CALL cuGraphLaunch_ptsz_error(CUgraphExec, CUstream) {
  2000. return on_init_failed<CUresult >(282);
  2001. }
  2002. static CUresult _WRAPLIB_API_CALL cuGraphExecDestroy_init(CUgraphExec arg0) {
  2003. load_library();
  2004. return cuGraphExecDestroy(arg0);
  2005. }
  2006. static CUresult _WRAPLIB_API_CALL cuGraphExecDestroy_error(CUgraphExec) {
  2007. return on_init_failed<CUresult >(283);
  2008. }
  2009. static CUresult _WRAPLIB_API_CALL cuGraphDestroy_init(CUgraph arg0) {
  2010. load_library();
  2011. return cuGraphDestroy(arg0);
  2012. }
  2013. static CUresult _WRAPLIB_API_CALL cuGraphDestroy_error(CUgraph) {
  2014. return on_init_failed<CUresult >(284);
  2015. }
  2016. static CUresult _WRAPLIB_API_CALL cuGraphExecUpdate_init(CUgraphExec arg0, CUgraph arg1, CUgraphNode *arg2, CUgraphExecUpdateResult *arg3) {
  2017. load_library();
  2018. return cuGraphExecUpdate(arg0, arg1, arg2, arg3);
  2019. }
  2020. static CUresult _WRAPLIB_API_CALL cuGraphExecUpdate_error(CUgraphExec, CUgraph, CUgraphNode *, CUgraphExecUpdateResult *) {
  2021. return on_init_failed<CUresult >(285);
  2022. }
  2023. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeCopyAttributes_init(CUgraphNode arg0, CUgraphNode arg1) {
  2024. load_library();
  2025. return cuGraphKernelNodeCopyAttributes(arg0, arg1);
  2026. }
  2027. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeCopyAttributes_error(CUgraphNode, CUgraphNode) {
  2028. return on_init_failed<CUresult >(286);
  2029. }
  2030. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetAttribute_init(CUgraphNode arg0, CUkernelNodeAttrID arg1, CUkernelNodeAttrValue *arg2) {
  2031. load_library();
  2032. return cuGraphKernelNodeGetAttribute(arg0, arg1, arg2);
  2033. }
  2034. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetAttribute_error(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue *) {
  2035. return on_init_failed<CUresult >(287);
  2036. }
  2037. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetAttribute_init(CUgraphNode arg0, CUkernelNodeAttrID arg1, const CUkernelNodeAttrValue *arg2) {
  2038. load_library();
  2039. return cuGraphKernelNodeSetAttribute(arg0, arg1, arg2);
  2040. }
  2041. static CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetAttribute_error(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue *) {
  2042. return on_init_failed<CUresult >(288);
  2043. }
  2044. static CUresult _WRAPLIB_API_CALL cuGraphDebugDotPrint_init(CUgraph arg0, const char *arg1, unsigned int arg2) {
  2045. load_library();
  2046. return cuGraphDebugDotPrint(arg0, arg1, arg2);
  2047. }
  2048. static CUresult _WRAPLIB_API_CALL cuGraphDebugDotPrint_error(CUgraph, const char *, unsigned int) {
  2049. return on_init_failed<CUresult >(289);
  2050. }
  2051. static CUresult _WRAPLIB_API_CALL cuUserObjectCreate_init(CUuserObject *arg0, void *arg1, CUhostFn arg2, unsigned int arg3, unsigned int arg4) {
  2052. load_library();
  2053. return cuUserObjectCreate(arg0, arg1, arg2, arg3, arg4);
  2054. }
  2055. static CUresult _WRAPLIB_API_CALL cuUserObjectCreate_error(CUuserObject *, void *, CUhostFn, unsigned int, unsigned int) {
  2056. return on_init_failed<CUresult >(290);
  2057. }
  2058. static CUresult _WRAPLIB_API_CALL cuUserObjectRetain_init(CUuserObject arg0, unsigned int arg1) {
  2059. load_library();
  2060. return cuUserObjectRetain(arg0, arg1);
  2061. }
  2062. static CUresult _WRAPLIB_API_CALL cuUserObjectRetain_error(CUuserObject, unsigned int) {
  2063. return on_init_failed<CUresult >(291);
  2064. }
  2065. static CUresult _WRAPLIB_API_CALL cuUserObjectRelease_init(CUuserObject arg0, unsigned int arg1) {
  2066. load_library();
  2067. return cuUserObjectRelease(arg0, arg1);
  2068. }
  2069. static CUresult _WRAPLIB_API_CALL cuUserObjectRelease_error(CUuserObject, unsigned int) {
  2070. return on_init_failed<CUresult >(292);
  2071. }
  2072. static CUresult _WRAPLIB_API_CALL cuGraphRetainUserObject_init(CUgraph arg0, CUuserObject arg1, unsigned int arg2, unsigned int arg3) {
  2073. load_library();
  2074. return cuGraphRetainUserObject(arg0, arg1, arg2, arg3);
  2075. }
  2076. static CUresult _WRAPLIB_API_CALL cuGraphRetainUserObject_error(CUgraph, CUuserObject, unsigned int, unsigned int) {
  2077. return on_init_failed<CUresult >(293);
  2078. }
  2079. static CUresult _WRAPLIB_API_CALL cuGraphReleaseUserObject_init(CUgraph arg0, CUuserObject arg1, unsigned int arg2) {
  2080. load_library();
  2081. return cuGraphReleaseUserObject(arg0, arg1, arg2);
  2082. }
  2083. static CUresult _WRAPLIB_API_CALL cuGraphReleaseUserObject_error(CUgraph, CUuserObject, unsigned int) {
  2084. return on_init_failed<CUresult >(294);
  2085. }
  2086. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessor_init(int *arg0, CUfunction arg1, int arg2, size_t arg3) {
  2087. load_library();
  2088. return cuOccupancyMaxActiveBlocksPerMultiprocessor(arg0, arg1, arg2, arg3);
  2089. }
  2090. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessor_error(int *, CUfunction, int, size_t) {
  2091. return on_init_failed<CUresult >(295);
  2092. }
  2093. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_init(int *arg0, CUfunction arg1, int arg2, size_t arg3, unsigned int arg4) {
  2094. load_library();
  2095. return cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(arg0, arg1, arg2, arg3, arg4);
  2096. }
  2097. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_error(int *, CUfunction, int, size_t, unsigned int) {
  2098. return on_init_failed<CUresult >(296);
  2099. }
  2100. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSize_init(int *arg0, int *arg1, CUfunction arg2, CUoccupancyB2DSize arg3, size_t arg4, int arg5) {
  2101. load_library();
  2102. return cuOccupancyMaxPotentialBlockSize(arg0, arg1, arg2, arg3, arg4, arg5);
  2103. }
  2104. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSize_error(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int) {
  2105. return on_init_failed<CUresult >(297);
  2106. }
  2107. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSizeWithFlags_init(int *arg0, int *arg1, CUfunction arg2, CUoccupancyB2DSize arg3, size_t arg4, int arg5, unsigned int arg6) {
  2108. load_library();
  2109. return cuOccupancyMaxPotentialBlockSizeWithFlags(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  2110. }
  2111. static CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSizeWithFlags_error(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int) {
  2112. return on_init_failed<CUresult >(298);
  2113. }
  2114. static CUresult _WRAPLIB_API_CALL cuOccupancyAvailableDynamicSMemPerBlock_init(size_t *arg0, CUfunction arg1, int arg2, int arg3) {
  2115. load_library();
  2116. return cuOccupancyAvailableDynamicSMemPerBlock(arg0, arg1, arg2, arg3);
  2117. }
  2118. static CUresult _WRAPLIB_API_CALL cuOccupancyAvailableDynamicSMemPerBlock_error(size_t *, CUfunction, int, int) {
  2119. return on_init_failed<CUresult >(299);
  2120. }
  2121. static CUresult _WRAPLIB_API_CALL cuTexRefSetArray_init(CUtexref arg0, CUarray arg1, unsigned int arg2) {
  2122. load_library();
  2123. return cuTexRefSetArray(arg0, arg1, arg2);
  2124. }
  2125. static CUresult _WRAPLIB_API_CALL cuTexRefSetArray_error(CUtexref, CUarray, unsigned int) {
  2126. return on_init_failed<CUresult >(300);
  2127. }
  2128. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmappedArray_init(CUtexref arg0, CUmipmappedArray arg1, unsigned int arg2) {
  2129. load_library();
  2130. return cuTexRefSetMipmappedArray(arg0, arg1, arg2);
  2131. }
  2132. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmappedArray_error(CUtexref, CUmipmappedArray, unsigned int) {
  2133. return on_init_failed<CUresult >(301);
  2134. }
  2135. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress_v2_init(size_t *arg0, CUtexref arg1, CUdeviceptr arg2, size_t arg3) {
  2136. load_library();
  2137. return cuTexRefSetAddress_v2(arg0, arg1, arg2, arg3);
  2138. }
  2139. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress_v2_error(size_t *, CUtexref, CUdeviceptr, size_t) {
  2140. return on_init_failed<CUresult >(302);
  2141. }
  2142. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v3_init(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR *arg1, CUdeviceptr arg2, size_t arg3) {
  2143. load_library();
  2144. return cuTexRefSetAddress2D_v3(arg0, arg1, arg2, arg3);
  2145. }
  2146. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v3_error(CUtexref, const CUDA_ARRAY_DESCRIPTOR *, CUdeviceptr, size_t) {
  2147. return on_init_failed<CUresult >(303);
  2148. }
  2149. static CUresult _WRAPLIB_API_CALL cuTexRefSetFormat_init(CUtexref arg0, CUarray_format arg1, int arg2) {
  2150. load_library();
  2151. return cuTexRefSetFormat(arg0, arg1, arg2);
  2152. }
  2153. static CUresult _WRAPLIB_API_CALL cuTexRefSetFormat_error(CUtexref, CUarray_format, int) {
  2154. return on_init_failed<CUresult >(304);
  2155. }
  2156. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddressMode_init(CUtexref arg0, int arg1, CUaddress_mode arg2) {
  2157. load_library();
  2158. return cuTexRefSetAddressMode(arg0, arg1, arg2);
  2159. }
  2160. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddressMode_error(CUtexref, int, CUaddress_mode) {
  2161. return on_init_failed<CUresult >(305);
  2162. }
  2163. static CUresult _WRAPLIB_API_CALL cuTexRefSetFilterMode_init(CUtexref arg0, CUfilter_mode arg1) {
  2164. load_library();
  2165. return cuTexRefSetFilterMode(arg0, arg1);
  2166. }
  2167. static CUresult _WRAPLIB_API_CALL cuTexRefSetFilterMode_error(CUtexref, CUfilter_mode) {
  2168. return on_init_failed<CUresult >(306);
  2169. }
  2170. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapFilterMode_init(CUtexref arg0, CUfilter_mode arg1) {
  2171. load_library();
  2172. return cuTexRefSetMipmapFilterMode(arg0, arg1);
  2173. }
  2174. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapFilterMode_error(CUtexref, CUfilter_mode) {
  2175. return on_init_failed<CUresult >(307);
  2176. }
  2177. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelBias_init(CUtexref arg0, float arg1) {
  2178. load_library();
  2179. return cuTexRefSetMipmapLevelBias(arg0, arg1);
  2180. }
  2181. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelBias_error(CUtexref, float) {
  2182. return on_init_failed<CUresult >(308);
  2183. }
  2184. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelClamp_init(CUtexref arg0, float arg1, float arg2) {
  2185. load_library();
  2186. return cuTexRefSetMipmapLevelClamp(arg0, arg1, arg2);
  2187. }
  2188. static CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelClamp_error(CUtexref, float, float) {
  2189. return on_init_failed<CUresult >(309);
  2190. }
  2191. static CUresult _WRAPLIB_API_CALL cuTexRefSetMaxAnisotropy_init(CUtexref arg0, unsigned int arg1) {
  2192. load_library();
  2193. return cuTexRefSetMaxAnisotropy(arg0, arg1);
  2194. }
  2195. static CUresult _WRAPLIB_API_CALL cuTexRefSetMaxAnisotropy_error(CUtexref, unsigned int) {
  2196. return on_init_failed<CUresult >(310);
  2197. }
  2198. static CUresult _WRAPLIB_API_CALL cuTexRefSetBorderColor_init(CUtexref arg0, float *arg1) {
  2199. load_library();
  2200. return cuTexRefSetBorderColor(arg0, arg1);
  2201. }
  2202. static CUresult _WRAPLIB_API_CALL cuTexRefSetBorderColor_error(CUtexref, float *) {
  2203. return on_init_failed<CUresult >(311);
  2204. }
  2205. static CUresult _WRAPLIB_API_CALL cuTexRefSetFlags_init(CUtexref arg0, unsigned int arg1) {
  2206. load_library();
  2207. return cuTexRefSetFlags(arg0, arg1);
  2208. }
  2209. static CUresult _WRAPLIB_API_CALL cuTexRefSetFlags_error(CUtexref, unsigned int) {
  2210. return on_init_failed<CUresult >(312);
  2211. }
  2212. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddress_v2_init(CUdeviceptr *arg0, CUtexref arg1) {
  2213. load_library();
  2214. return cuTexRefGetAddress_v2(arg0, arg1);
  2215. }
  2216. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddress_v2_error(CUdeviceptr *, CUtexref) {
  2217. return on_init_failed<CUresult >(313);
  2218. }
  2219. static CUresult _WRAPLIB_API_CALL cuTexRefGetArray_init(CUarray *arg0, CUtexref arg1) {
  2220. load_library();
  2221. return cuTexRefGetArray(arg0, arg1);
  2222. }
  2223. static CUresult _WRAPLIB_API_CALL cuTexRefGetArray_error(CUarray *, CUtexref) {
  2224. return on_init_failed<CUresult >(314);
  2225. }
  2226. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmappedArray_init(CUmipmappedArray *arg0, CUtexref arg1) {
  2227. load_library();
  2228. return cuTexRefGetMipmappedArray(arg0, arg1);
  2229. }
  2230. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmappedArray_error(CUmipmappedArray *, CUtexref) {
  2231. return on_init_failed<CUresult >(315);
  2232. }
  2233. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddressMode_init(CUaddress_mode *arg0, CUtexref arg1, int arg2) {
  2234. load_library();
  2235. return cuTexRefGetAddressMode(arg0, arg1, arg2);
  2236. }
  2237. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddressMode_error(CUaddress_mode *, CUtexref, int) {
  2238. return on_init_failed<CUresult >(316);
  2239. }
  2240. static CUresult _WRAPLIB_API_CALL cuTexRefGetFilterMode_init(CUfilter_mode *arg0, CUtexref arg1) {
  2241. load_library();
  2242. return cuTexRefGetFilterMode(arg0, arg1);
  2243. }
  2244. static CUresult _WRAPLIB_API_CALL cuTexRefGetFilterMode_error(CUfilter_mode *, CUtexref) {
  2245. return on_init_failed<CUresult >(317);
  2246. }
  2247. static CUresult _WRAPLIB_API_CALL cuTexRefGetFormat_init(CUarray_format *arg0, int *arg1, CUtexref arg2) {
  2248. load_library();
  2249. return cuTexRefGetFormat(arg0, arg1, arg2);
  2250. }
  2251. static CUresult _WRAPLIB_API_CALL cuTexRefGetFormat_error(CUarray_format *, int *, CUtexref) {
  2252. return on_init_failed<CUresult >(318);
  2253. }
  2254. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapFilterMode_init(CUfilter_mode *arg0, CUtexref arg1) {
  2255. load_library();
  2256. return cuTexRefGetMipmapFilterMode(arg0, arg1);
  2257. }
  2258. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapFilterMode_error(CUfilter_mode *, CUtexref) {
  2259. return on_init_failed<CUresult >(319);
  2260. }
  2261. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelBias_init(float *arg0, CUtexref arg1) {
  2262. load_library();
  2263. return cuTexRefGetMipmapLevelBias(arg0, arg1);
  2264. }
  2265. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelBias_error(float *, CUtexref) {
  2266. return on_init_failed<CUresult >(320);
  2267. }
  2268. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelClamp_init(float *arg0, float *arg1, CUtexref arg2) {
  2269. load_library();
  2270. return cuTexRefGetMipmapLevelClamp(arg0, arg1, arg2);
  2271. }
  2272. static CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelClamp_error(float *, float *, CUtexref) {
  2273. return on_init_failed<CUresult >(321);
  2274. }
  2275. static CUresult _WRAPLIB_API_CALL cuTexRefGetMaxAnisotropy_init(int *arg0, CUtexref arg1) {
  2276. load_library();
  2277. return cuTexRefGetMaxAnisotropy(arg0, arg1);
  2278. }
  2279. static CUresult _WRAPLIB_API_CALL cuTexRefGetMaxAnisotropy_error(int *, CUtexref) {
  2280. return on_init_failed<CUresult >(322);
  2281. }
  2282. static CUresult _WRAPLIB_API_CALL cuTexRefGetBorderColor_init(float *arg0, CUtexref arg1) {
  2283. load_library();
  2284. return cuTexRefGetBorderColor(arg0, arg1);
  2285. }
  2286. static CUresult _WRAPLIB_API_CALL cuTexRefGetBorderColor_error(float *, CUtexref) {
  2287. return on_init_failed<CUresult >(323);
  2288. }
  2289. static CUresult _WRAPLIB_API_CALL cuTexRefGetFlags_init(unsigned int *arg0, CUtexref arg1) {
  2290. load_library();
  2291. return cuTexRefGetFlags(arg0, arg1);
  2292. }
  2293. static CUresult _WRAPLIB_API_CALL cuTexRefGetFlags_error(unsigned int *, CUtexref) {
  2294. return on_init_failed<CUresult >(324);
  2295. }
  2296. static CUresult _WRAPLIB_API_CALL cuTexRefCreate_init(CUtexref *arg0) {
  2297. load_library();
  2298. return cuTexRefCreate(arg0);
  2299. }
  2300. static CUresult _WRAPLIB_API_CALL cuTexRefCreate_error(CUtexref *) {
  2301. return on_init_failed<CUresult >(325);
  2302. }
  2303. static CUresult _WRAPLIB_API_CALL cuTexRefDestroy_init(CUtexref arg0) {
  2304. load_library();
  2305. return cuTexRefDestroy(arg0);
  2306. }
  2307. static CUresult _WRAPLIB_API_CALL cuTexRefDestroy_error(CUtexref) {
  2308. return on_init_failed<CUresult >(326);
  2309. }
  2310. static CUresult _WRAPLIB_API_CALL cuSurfRefSetArray_init(CUsurfref arg0, CUarray arg1, unsigned int arg2) {
  2311. load_library();
  2312. return cuSurfRefSetArray(arg0, arg1, arg2);
  2313. }
  2314. static CUresult _WRAPLIB_API_CALL cuSurfRefSetArray_error(CUsurfref, CUarray, unsigned int) {
  2315. return on_init_failed<CUresult >(327);
  2316. }
  2317. static CUresult _WRAPLIB_API_CALL cuSurfRefGetArray_init(CUarray *arg0, CUsurfref arg1) {
  2318. load_library();
  2319. return cuSurfRefGetArray(arg0, arg1);
  2320. }
  2321. static CUresult _WRAPLIB_API_CALL cuSurfRefGetArray_error(CUarray *, CUsurfref) {
  2322. return on_init_failed<CUresult >(328);
  2323. }
  2324. static CUresult _WRAPLIB_API_CALL cuTexObjectCreate_init(CUtexObject *arg0, const CUDA_RESOURCE_DESC *arg1, const CUDA_TEXTURE_DESC *arg2, const CUDA_RESOURCE_VIEW_DESC *arg3) {
  2325. load_library();
  2326. return cuTexObjectCreate(arg0, arg1, arg2, arg3);
  2327. }
  2328. static CUresult _WRAPLIB_API_CALL cuTexObjectCreate_error(CUtexObject *, const CUDA_RESOURCE_DESC *, const CUDA_TEXTURE_DESC *, const CUDA_RESOURCE_VIEW_DESC *) {
  2329. return on_init_failed<CUresult >(329);
  2330. }
  2331. static CUresult _WRAPLIB_API_CALL cuTexObjectDestroy_init(CUtexObject arg0) {
  2332. load_library();
  2333. return cuTexObjectDestroy(arg0);
  2334. }
  2335. static CUresult _WRAPLIB_API_CALL cuTexObjectDestroy_error(CUtexObject) {
  2336. return on_init_failed<CUresult >(330);
  2337. }
  2338. static CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceDesc_init(CUDA_RESOURCE_DESC *arg0, CUtexObject arg1) {
  2339. load_library();
  2340. return cuTexObjectGetResourceDesc(arg0, arg1);
  2341. }
  2342. static CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceDesc_error(CUDA_RESOURCE_DESC *, CUtexObject) {
  2343. return on_init_failed<CUresult >(331);
  2344. }
  2345. static CUresult _WRAPLIB_API_CALL cuTexObjectGetTextureDesc_init(CUDA_TEXTURE_DESC *arg0, CUtexObject arg1) {
  2346. load_library();
  2347. return cuTexObjectGetTextureDesc(arg0, arg1);
  2348. }
  2349. static CUresult _WRAPLIB_API_CALL cuTexObjectGetTextureDesc_error(CUDA_TEXTURE_DESC *, CUtexObject) {
  2350. return on_init_failed<CUresult >(332);
  2351. }
  2352. static CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceViewDesc_init(CUDA_RESOURCE_VIEW_DESC *arg0, CUtexObject arg1) {
  2353. load_library();
  2354. return cuTexObjectGetResourceViewDesc(arg0, arg1);
  2355. }
  2356. static CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceViewDesc_error(CUDA_RESOURCE_VIEW_DESC *, CUtexObject) {
  2357. return on_init_failed<CUresult >(333);
  2358. }
  2359. static CUresult _WRAPLIB_API_CALL cuSurfObjectCreate_init(CUsurfObject *arg0, const CUDA_RESOURCE_DESC *arg1) {
  2360. load_library();
  2361. return cuSurfObjectCreate(arg0, arg1);
  2362. }
  2363. static CUresult _WRAPLIB_API_CALL cuSurfObjectCreate_error(CUsurfObject *, const CUDA_RESOURCE_DESC *) {
  2364. return on_init_failed<CUresult >(334);
  2365. }
  2366. static CUresult _WRAPLIB_API_CALL cuSurfObjectDestroy_init(CUsurfObject arg0) {
  2367. load_library();
  2368. return cuSurfObjectDestroy(arg0);
  2369. }
  2370. static CUresult _WRAPLIB_API_CALL cuSurfObjectDestroy_error(CUsurfObject) {
  2371. return on_init_failed<CUresult >(335);
  2372. }
  2373. static CUresult _WRAPLIB_API_CALL cuSurfObjectGetResourceDesc_init(CUDA_RESOURCE_DESC *arg0, CUsurfObject arg1) {
  2374. load_library();
  2375. return cuSurfObjectGetResourceDesc(arg0, arg1);
  2376. }
  2377. static CUresult _WRAPLIB_API_CALL cuSurfObjectGetResourceDesc_error(CUDA_RESOURCE_DESC *, CUsurfObject) {
  2378. return on_init_failed<CUresult >(336);
  2379. }
  2380. static CUresult _WRAPLIB_API_CALL cuDeviceCanAccessPeer_init(int *arg0, CUdevice arg1, CUdevice arg2) {
  2381. load_library();
  2382. return cuDeviceCanAccessPeer(arg0, arg1, arg2);
  2383. }
  2384. static CUresult _WRAPLIB_API_CALL cuDeviceCanAccessPeer_error(int *, CUdevice, CUdevice) {
  2385. return on_init_failed<CUresult >(337);
  2386. }
  2387. static CUresult _WRAPLIB_API_CALL cuCtxEnablePeerAccess_init(CUcontext arg0, unsigned int arg1) {
  2388. load_library();
  2389. return cuCtxEnablePeerAccess(arg0, arg1);
  2390. }
  2391. static CUresult _WRAPLIB_API_CALL cuCtxEnablePeerAccess_error(CUcontext, unsigned int) {
  2392. return on_init_failed<CUresult >(338);
  2393. }
  2394. static CUresult _WRAPLIB_API_CALL cuCtxDisablePeerAccess_init(CUcontext arg0) {
  2395. load_library();
  2396. return cuCtxDisablePeerAccess(arg0);
  2397. }
  2398. static CUresult _WRAPLIB_API_CALL cuCtxDisablePeerAccess_error(CUcontext) {
  2399. return on_init_failed<CUresult >(339);
  2400. }
  2401. static CUresult _WRAPLIB_API_CALL cuDeviceGetP2PAttribute_init(int *arg0, CUdevice_P2PAttribute arg1, CUdevice arg2, CUdevice arg3) {
  2402. load_library();
  2403. return cuDeviceGetP2PAttribute(arg0, arg1, arg2, arg3);
  2404. }
  2405. static CUresult _WRAPLIB_API_CALL cuDeviceGetP2PAttribute_error(int *, CUdevice_P2PAttribute, CUdevice, CUdevice) {
  2406. return on_init_failed<CUresult >(340);
  2407. }
  2408. static CUresult _WRAPLIB_API_CALL cuGraphicsUnregisterResource_init(CUgraphicsResource arg0) {
  2409. load_library();
  2410. return cuGraphicsUnregisterResource(arg0);
  2411. }
  2412. static CUresult _WRAPLIB_API_CALL cuGraphicsUnregisterResource_error(CUgraphicsResource) {
  2413. return on_init_failed<CUresult >(341);
  2414. }
  2415. static CUresult _WRAPLIB_API_CALL cuGraphicsSubResourceGetMappedArray_init(CUarray *arg0, CUgraphicsResource arg1, unsigned int arg2, unsigned int arg3) {
  2416. load_library();
  2417. return cuGraphicsSubResourceGetMappedArray(arg0, arg1, arg2, arg3);
  2418. }
  2419. static CUresult _WRAPLIB_API_CALL cuGraphicsSubResourceGetMappedArray_error(CUarray *, CUgraphicsResource, unsigned int, unsigned int) {
  2420. return on_init_failed<CUresult >(342);
  2421. }
  2422. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedMipmappedArray_init(CUmipmappedArray *arg0, CUgraphicsResource arg1) {
  2423. load_library();
  2424. return cuGraphicsResourceGetMappedMipmappedArray(arg0, arg1);
  2425. }
  2426. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedMipmappedArray_error(CUmipmappedArray *, CUgraphicsResource) {
  2427. return on_init_failed<CUresult >(343);
  2428. }
  2429. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer_v2_init(CUdeviceptr *arg0, size_t *arg1, CUgraphicsResource arg2) {
  2430. load_library();
  2431. return cuGraphicsResourceGetMappedPointer_v2(arg0, arg1, arg2);
  2432. }
  2433. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer_v2_error(CUdeviceptr *, size_t *, CUgraphicsResource) {
  2434. return on_init_failed<CUresult >(344);
  2435. }
  2436. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags_v2_init(CUgraphicsResource arg0, unsigned int arg1) {
  2437. load_library();
  2438. return cuGraphicsResourceSetMapFlags_v2(arg0, arg1);
  2439. }
  2440. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags_v2_error(CUgraphicsResource, unsigned int) {
  2441. return on_init_failed<CUresult >(345);
  2442. }
  2443. static CUresult _WRAPLIB_API_CALL cuGraphicsMapResources_ptsz_init(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  2444. load_library();
  2445. return cuGraphicsMapResources_ptsz(arg0, arg1, arg2);
  2446. }
  2447. static CUresult _WRAPLIB_API_CALL cuGraphicsMapResources_ptsz_error(unsigned int, CUgraphicsResource *, CUstream) {
  2448. return on_init_failed<CUresult >(346);
  2449. }
  2450. static CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources_ptsz_init(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  2451. load_library();
  2452. return cuGraphicsUnmapResources_ptsz(arg0, arg1, arg2);
  2453. }
  2454. static CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources_ptsz_error(unsigned int, CUgraphicsResource *, CUstream) {
  2455. return on_init_failed<CUresult >(347);
  2456. }
  2457. static CUresult _WRAPLIB_API_CALL cuGetProcAddress_init(const char *arg0, void **arg1, int arg2, cuuint64_t arg3) {
  2458. load_library();
  2459. return cuGetProcAddress(arg0, arg1, arg2, arg3);
  2460. }
  2461. static CUresult _WRAPLIB_API_CALL cuGetProcAddress_error(const char *, void **, int, cuuint64_t) {
  2462. return on_init_failed<CUresult >(348);
  2463. }
  2464. static CUresult _WRAPLIB_API_CALL cuGetExportTable_init(const void **arg0, const CUuuid *arg1) {
  2465. load_library();
  2466. return cuGetExportTable(arg0, arg1);
  2467. }
  2468. static CUresult _WRAPLIB_API_CALL cuGetExportTable_error(const void **, const CUuuid *) {
  2469. return on_init_failed<CUresult >(349);
  2470. }
  2471. static CUresult _WRAPLIB_API_CALL cuMemHostRegister_init(void *arg0, size_t arg1, unsigned int arg2) {
  2472. load_library();
  2473. return cuMemHostRegister(arg0, arg1, arg2);
  2474. }
  2475. static CUresult _WRAPLIB_API_CALL cuMemHostRegister_error(void *, size_t, unsigned int) {
  2476. return on_init_failed<CUresult >(350);
  2477. }
  2478. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags_init(CUgraphicsResource arg0, unsigned int arg1) {
  2479. load_library();
  2480. return cuGraphicsResourceSetMapFlags(arg0, arg1);
  2481. }
  2482. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags_error(CUgraphicsResource, unsigned int) {
  2483. return on_init_failed<CUresult >(351);
  2484. }
  2485. static CUresult _WRAPLIB_API_CALL cuLinkCreate_init(unsigned int arg0, CUjit_option *arg1, void **arg2, CUlinkState *arg3) {
  2486. load_library();
  2487. return cuLinkCreate(arg0, arg1, arg2, arg3);
  2488. }
  2489. static CUresult _WRAPLIB_API_CALL cuLinkCreate_error(unsigned int, CUjit_option *, void **, CUlinkState *) {
  2490. return on_init_failed<CUresult >(352);
  2491. }
  2492. static CUresult _WRAPLIB_API_CALL cuLinkAddData_init(CUlinkState arg0, CUjitInputType arg1, void *arg2, size_t arg3, const char *arg4, unsigned int arg5, CUjit_option *arg6, void **arg7) {
  2493. load_library();
  2494. return cuLinkAddData(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  2495. }
  2496. static CUresult _WRAPLIB_API_CALL cuLinkAddData_error(CUlinkState, CUjitInputType, void *, size_t, const char *, unsigned int, CUjit_option *, void **) {
  2497. return on_init_failed<CUresult >(353);
  2498. }
  2499. static CUresult _WRAPLIB_API_CALL cuLinkAddFile_init(CUlinkState arg0, CUjitInputType arg1, const char *arg2, unsigned int arg3, CUjit_option *arg4, void **arg5) {
  2500. load_library();
  2501. return cuLinkAddFile(arg0, arg1, arg2, arg3, arg4, arg5);
  2502. }
  2503. static CUresult _WRAPLIB_API_CALL cuLinkAddFile_error(CUlinkState, CUjitInputType, const char *, unsigned int, CUjit_option *, void **) {
  2504. return on_init_failed<CUresult >(354);
  2505. }
  2506. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v2_init(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR *arg1, CUdeviceptr arg2, size_t arg3) {
  2507. load_library();
  2508. return cuTexRefSetAddress2D_v2(arg0, arg1, arg2, arg3);
  2509. }
  2510. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v2_error(CUtexref, const CUDA_ARRAY_DESCRIPTOR *, CUdeviceptr, size_t) {
  2511. return on_init_failed<CUresult >(355);
  2512. }
  2513. static CUresult _WRAPLIB_API_CALL cuDeviceTotalMem_init(unsigned int *arg0, CUdevice arg1) {
  2514. load_library();
  2515. return cuDeviceTotalMem(arg0, arg1);
  2516. }
  2517. static CUresult _WRAPLIB_API_CALL cuDeviceTotalMem_error(unsigned int *, CUdevice) {
  2518. return on_init_failed<CUresult >(356);
  2519. }
  2520. static CUresult _WRAPLIB_API_CALL cuCtxCreate_init(CUcontext *arg0, unsigned int arg1, CUdevice arg2) {
  2521. load_library();
  2522. return cuCtxCreate(arg0, arg1, arg2);
  2523. }
  2524. static CUresult _WRAPLIB_API_CALL cuCtxCreate_error(CUcontext *, unsigned int, CUdevice) {
  2525. return on_init_failed<CUresult >(357);
  2526. }
  2527. static CUresult _WRAPLIB_API_CALL cuModuleGetGlobal_init(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUmodule arg2, const char *arg3) {
  2528. load_library();
  2529. return cuModuleGetGlobal(arg0, arg1, arg2, arg3);
  2530. }
  2531. static CUresult _WRAPLIB_API_CALL cuModuleGetGlobal_error(CUdeviceptr_v1 *, unsigned int *, CUmodule, const char *) {
  2532. return on_init_failed<CUresult >(358);
  2533. }
  2534. static CUresult _WRAPLIB_API_CALL cuMemGetInfo_init(unsigned int *arg0, unsigned int *arg1) {
  2535. load_library();
  2536. return cuMemGetInfo(arg0, arg1);
  2537. }
  2538. static CUresult _WRAPLIB_API_CALL cuMemGetInfo_error(unsigned int *, unsigned int *) {
  2539. return on_init_failed<CUresult >(359);
  2540. }
  2541. static CUresult _WRAPLIB_API_CALL cuMemAlloc_init(CUdeviceptr_v1 *arg0, unsigned int arg1) {
  2542. load_library();
  2543. return cuMemAlloc(arg0, arg1);
  2544. }
  2545. static CUresult _WRAPLIB_API_CALL cuMemAlloc_error(CUdeviceptr_v1 *, unsigned int) {
  2546. return on_init_failed<CUresult >(360);
  2547. }
  2548. static CUresult _WRAPLIB_API_CALL cuMemAllocPitch_init(CUdeviceptr_v1 *arg0, unsigned int *arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4) {
  2549. load_library();
  2550. return cuMemAllocPitch(arg0, arg1, arg2, arg3, arg4);
  2551. }
  2552. static CUresult _WRAPLIB_API_CALL cuMemAllocPitch_error(CUdeviceptr_v1 *, unsigned int *, unsigned int, unsigned int, unsigned int) {
  2553. return on_init_failed<CUresult >(361);
  2554. }
  2555. static CUresult _WRAPLIB_API_CALL cuMemFree_init(CUdeviceptr_v1 arg0) {
  2556. load_library();
  2557. return cuMemFree(arg0);
  2558. }
  2559. static CUresult _WRAPLIB_API_CALL cuMemFree_error(CUdeviceptr_v1) {
  2560. return on_init_failed<CUresult >(362);
  2561. }
  2562. static CUresult _WRAPLIB_API_CALL cuMemGetAddressRange_init(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUdeviceptr_v1 arg2) {
  2563. load_library();
  2564. return cuMemGetAddressRange(arg0, arg1, arg2);
  2565. }
  2566. static CUresult _WRAPLIB_API_CALL cuMemGetAddressRange_error(CUdeviceptr_v1 *, unsigned int *, CUdeviceptr_v1) {
  2567. return on_init_failed<CUresult >(363);
  2568. }
  2569. static CUresult _WRAPLIB_API_CALL cuMemAllocHost_init(void **arg0, unsigned int arg1) {
  2570. load_library();
  2571. return cuMemAllocHost(arg0, arg1);
  2572. }
  2573. static CUresult _WRAPLIB_API_CALL cuMemAllocHost_error(void **, unsigned int) {
  2574. return on_init_failed<CUresult >(364);
  2575. }
  2576. static CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer_init(CUdeviceptr_v1 *arg0, void *arg1, unsigned int arg2) {
  2577. load_library();
  2578. return cuMemHostGetDevicePointer(arg0, arg1, arg2);
  2579. }
  2580. static CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer_error(CUdeviceptr_v1 *, void *, unsigned int) {
  2581. return on_init_failed<CUresult >(365);
  2582. }
  2583. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_init(CUdeviceptr_v1 arg0, const void *arg1, unsigned int arg2) {
  2584. load_library();
  2585. return cuMemcpyHtoD(arg0, arg1, arg2);
  2586. }
  2587. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_error(CUdeviceptr_v1, const void *, unsigned int) {
  2588. return on_init_failed<CUresult >(366);
  2589. }
  2590. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_init(void *arg0, CUdeviceptr_v1 arg1, unsigned int arg2) {
  2591. load_library();
  2592. return cuMemcpyDtoH(arg0, arg1, arg2);
  2593. }
  2594. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_error(void *, CUdeviceptr_v1, unsigned int) {
  2595. return on_init_failed<CUresult >(367);
  2596. }
  2597. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_init(CUdeviceptr_v1 arg0, CUdeviceptr_v1 arg1, unsigned int arg2) {
  2598. load_library();
  2599. return cuMemcpyDtoD(arg0, arg1, arg2);
  2600. }
  2601. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_error(CUdeviceptr_v1, CUdeviceptr_v1, unsigned int) {
  2602. return on_init_failed<CUresult >(368);
  2603. }
  2604. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_init(CUarray arg0, unsigned int arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  2605. load_library();
  2606. return cuMemcpyDtoA(arg0, arg1, arg2, arg3);
  2607. }
  2608. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_error(CUarray, unsigned int, CUdeviceptr_v1, unsigned int) {
  2609. return on_init_failed<CUresult >(369);
  2610. }
  2611. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_init(CUdeviceptr_v1 arg0, CUarray arg1, unsigned int arg2, unsigned int arg3) {
  2612. load_library();
  2613. return cuMemcpyAtoD(arg0, arg1, arg2, arg3);
  2614. }
  2615. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_error(CUdeviceptr_v1, CUarray, unsigned int, unsigned int) {
  2616. return on_init_failed<CUresult >(370);
  2617. }
  2618. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_init(CUarray arg0, unsigned int arg1, const void *arg2, unsigned int arg3) {
  2619. load_library();
  2620. return cuMemcpyHtoA(arg0, arg1, arg2, arg3);
  2621. }
  2622. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_error(CUarray, unsigned int, const void *, unsigned int) {
  2623. return on_init_failed<CUresult >(371);
  2624. }
  2625. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_init(void *arg0, CUarray arg1, unsigned int arg2, unsigned int arg3) {
  2626. load_library();
  2627. return cuMemcpyAtoH(arg0, arg1, arg2, arg3);
  2628. }
  2629. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_error(void *, CUarray, unsigned int, unsigned int) {
  2630. return on_init_failed<CUresult >(372);
  2631. }
  2632. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_init(CUarray arg0, unsigned int arg1, CUarray arg2, unsigned int arg3, unsigned int arg4) {
  2633. load_library();
  2634. return cuMemcpyAtoA(arg0, arg1, arg2, arg3, arg4);
  2635. }
  2636. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_error(CUarray, unsigned int, CUarray, unsigned int, unsigned int) {
  2637. return on_init_failed<CUresult >(373);
  2638. }
  2639. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_init(CUarray arg0, unsigned int arg1, const void *arg2, unsigned int arg3, CUstream arg4) {
  2640. load_library();
  2641. return cuMemcpyHtoAAsync(arg0, arg1, arg2, arg3, arg4);
  2642. }
  2643. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_error(CUarray, unsigned int, const void *, unsigned int, CUstream) {
  2644. return on_init_failed<CUresult >(374);
  2645. }
  2646. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_init(void *arg0, CUarray arg1, unsigned int arg2, unsigned int arg3, CUstream arg4) {
  2647. load_library();
  2648. return cuMemcpyAtoHAsync(arg0, arg1, arg2, arg3, arg4);
  2649. }
  2650. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_error(void *, CUarray, unsigned int, unsigned int, CUstream) {
  2651. return on_init_failed<CUresult >(375);
  2652. }
  2653. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_init(const CUDA_MEMCPY2D_v1 *arg0) {
  2654. load_library();
  2655. return cuMemcpy2D(arg0);
  2656. }
  2657. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_error(const CUDA_MEMCPY2D_v1 *) {
  2658. return on_init_failed<CUresult >(376);
  2659. }
  2660. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_init(const CUDA_MEMCPY2D_v1 *arg0) {
  2661. load_library();
  2662. return cuMemcpy2DUnaligned(arg0);
  2663. }
  2664. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_error(const CUDA_MEMCPY2D_v1 *) {
  2665. return on_init_failed<CUresult >(377);
  2666. }
  2667. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_init(const CUDA_MEMCPY3D_v1 *arg0) {
  2668. load_library();
  2669. return cuMemcpy3D(arg0);
  2670. }
  2671. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_error(const CUDA_MEMCPY3D_v1 *) {
  2672. return on_init_failed<CUresult >(378);
  2673. }
  2674. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_init(CUdeviceptr_v1 arg0, const void *arg1, unsigned int arg2, CUstream arg3) {
  2675. load_library();
  2676. return cuMemcpyHtoDAsync(arg0, arg1, arg2, arg3);
  2677. }
  2678. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_error(CUdeviceptr_v1, const void *, unsigned int, CUstream) {
  2679. return on_init_failed<CUresult >(379);
  2680. }
  2681. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_init(void *arg0, CUdeviceptr_v1 arg1, unsigned int arg2, CUstream arg3) {
  2682. load_library();
  2683. return cuMemcpyDtoHAsync(arg0, arg1, arg2, arg3);
  2684. }
  2685. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_error(void *, CUdeviceptr_v1, unsigned int, CUstream) {
  2686. return on_init_failed<CUresult >(380);
  2687. }
  2688. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_init(CUdeviceptr_v1 arg0, CUdeviceptr_v1 arg1, unsigned int arg2, CUstream arg3) {
  2689. load_library();
  2690. return cuMemcpyDtoDAsync(arg0, arg1, arg2, arg3);
  2691. }
  2692. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_error(CUdeviceptr_v1, CUdeviceptr_v1, unsigned int, CUstream) {
  2693. return on_init_failed<CUresult >(381);
  2694. }
  2695. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_init(const CUDA_MEMCPY2D_v1 *arg0, CUstream arg1) {
  2696. load_library();
  2697. return cuMemcpy2DAsync(arg0, arg1);
  2698. }
  2699. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_error(const CUDA_MEMCPY2D_v1 *, CUstream) {
  2700. return on_init_failed<CUresult >(382);
  2701. }
  2702. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_init(const CUDA_MEMCPY3D_v1 *arg0, CUstream arg1) {
  2703. load_library();
  2704. return cuMemcpy3DAsync(arg0, arg1);
  2705. }
  2706. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_error(const CUDA_MEMCPY3D_v1 *, CUstream) {
  2707. return on_init_failed<CUresult >(383);
  2708. }
  2709. static CUresult _WRAPLIB_API_CALL cuMemsetD8_init(CUdeviceptr_v1 arg0, unsigned char arg1, unsigned int arg2) {
  2710. load_library();
  2711. return cuMemsetD8(arg0, arg1, arg2);
  2712. }
  2713. static CUresult _WRAPLIB_API_CALL cuMemsetD8_error(CUdeviceptr_v1, unsigned char, unsigned int) {
  2714. return on_init_failed<CUresult >(384);
  2715. }
  2716. static CUresult _WRAPLIB_API_CALL cuMemsetD16_init(CUdeviceptr_v1 arg0, unsigned short arg1, unsigned int arg2) {
  2717. load_library();
  2718. return cuMemsetD16(arg0, arg1, arg2);
  2719. }
  2720. static CUresult _WRAPLIB_API_CALL cuMemsetD16_error(CUdeviceptr_v1, unsigned short, unsigned int) {
  2721. return on_init_failed<CUresult >(385);
  2722. }
  2723. static CUresult _WRAPLIB_API_CALL cuMemsetD32_init(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned int arg2) {
  2724. load_library();
  2725. return cuMemsetD32(arg0, arg1, arg2);
  2726. }
  2727. static CUresult _WRAPLIB_API_CALL cuMemsetD32_error(CUdeviceptr_v1, unsigned int, unsigned int) {
  2728. return on_init_failed<CUresult >(386);
  2729. }
  2730. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_init(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned char arg2, unsigned int arg3, unsigned int arg4) {
  2731. load_library();
  2732. return cuMemsetD2D8(arg0, arg1, arg2, arg3, arg4);
  2733. }
  2734. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_error(CUdeviceptr_v1, unsigned int, unsigned char, unsigned int, unsigned int) {
  2735. return on_init_failed<CUresult >(387);
  2736. }
  2737. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_init(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned short arg2, unsigned int arg3, unsigned int arg4) {
  2738. load_library();
  2739. return cuMemsetD2D16(arg0, arg1, arg2, arg3, arg4);
  2740. }
  2741. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_error(CUdeviceptr_v1, unsigned int, unsigned short, unsigned int, unsigned int) {
  2742. return on_init_failed<CUresult >(388);
  2743. }
  2744. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_init(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4) {
  2745. load_library();
  2746. return cuMemsetD2D32(arg0, arg1, arg2, arg3, arg4);
  2747. }
  2748. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_error(CUdeviceptr_v1, unsigned int, unsigned int, unsigned int, unsigned int) {
  2749. return on_init_failed<CUresult >(389);
  2750. }
  2751. static CUresult _WRAPLIB_API_CALL cuArrayCreate_init(CUarray *arg0, const CUDA_ARRAY_DESCRIPTOR_v1 *arg1) {
  2752. load_library();
  2753. return cuArrayCreate(arg0, arg1);
  2754. }
  2755. static CUresult _WRAPLIB_API_CALL cuArrayCreate_error(CUarray *, const CUDA_ARRAY_DESCRIPTOR_v1 *) {
  2756. return on_init_failed<CUresult >(390);
  2757. }
  2758. static CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor_init(CUDA_ARRAY_DESCRIPTOR_v1 *arg0, CUarray arg1) {
  2759. load_library();
  2760. return cuArrayGetDescriptor(arg0, arg1);
  2761. }
  2762. static CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor_error(CUDA_ARRAY_DESCRIPTOR_v1 *, CUarray) {
  2763. return on_init_failed<CUresult >(391);
  2764. }
  2765. static CUresult _WRAPLIB_API_CALL cuArray3DCreate_init(CUarray *arg0, const CUDA_ARRAY3D_DESCRIPTOR_v1 *arg1) {
  2766. load_library();
  2767. return cuArray3DCreate(arg0, arg1);
  2768. }
  2769. static CUresult _WRAPLIB_API_CALL cuArray3DCreate_error(CUarray *, const CUDA_ARRAY3D_DESCRIPTOR_v1 *) {
  2770. return on_init_failed<CUresult >(392);
  2771. }
  2772. static CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor_init(CUDA_ARRAY3D_DESCRIPTOR_v1 *arg0, CUarray arg1) {
  2773. load_library();
  2774. return cuArray3DGetDescriptor(arg0, arg1);
  2775. }
  2776. static CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor_error(CUDA_ARRAY3D_DESCRIPTOR_v1 *, CUarray) {
  2777. return on_init_failed<CUresult >(393);
  2778. }
  2779. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress_init(unsigned int *arg0, CUtexref arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  2780. load_library();
  2781. return cuTexRefSetAddress(arg0, arg1, arg2, arg3);
  2782. }
  2783. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress_error(unsigned int *, CUtexref, CUdeviceptr_v1, unsigned int) {
  2784. return on_init_failed<CUresult >(394);
  2785. }
  2786. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_init(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR_v1 *arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  2787. load_library();
  2788. return cuTexRefSetAddress2D(arg0, arg1, arg2, arg3);
  2789. }
  2790. static CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_error(CUtexref, const CUDA_ARRAY_DESCRIPTOR_v1 *, CUdeviceptr_v1, unsigned int) {
  2791. return on_init_failed<CUresult >(395);
  2792. }
  2793. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddress_init(CUdeviceptr_v1 *arg0, CUtexref arg1) {
  2794. load_library();
  2795. return cuTexRefGetAddress(arg0, arg1);
  2796. }
  2797. static CUresult _WRAPLIB_API_CALL cuTexRefGetAddress_error(CUdeviceptr_v1 *, CUtexref) {
  2798. return on_init_failed<CUresult >(396);
  2799. }
  2800. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer_init(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUgraphicsResource arg2) {
  2801. load_library();
  2802. return cuGraphicsResourceGetMappedPointer(arg0, arg1, arg2);
  2803. }
  2804. static CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer_error(CUdeviceptr_v1 *, unsigned int *, CUgraphicsResource) {
  2805. return on_init_failed<CUresult >(397);
  2806. }
  2807. static CUresult _WRAPLIB_API_CALL cuCtxDestroy_init(CUcontext arg0) {
  2808. load_library();
  2809. return cuCtxDestroy(arg0);
  2810. }
  2811. static CUresult _WRAPLIB_API_CALL cuCtxDestroy_error(CUcontext) {
  2812. return on_init_failed<CUresult >(398);
  2813. }
  2814. static CUresult _WRAPLIB_API_CALL cuCtxPopCurrent_init(CUcontext *arg0) {
  2815. load_library();
  2816. return cuCtxPopCurrent(arg0);
  2817. }
  2818. static CUresult _WRAPLIB_API_CALL cuCtxPopCurrent_error(CUcontext *) {
  2819. return on_init_failed<CUresult >(399);
  2820. }
  2821. static CUresult _WRAPLIB_API_CALL cuCtxPushCurrent_init(CUcontext arg0) {
  2822. load_library();
  2823. return cuCtxPushCurrent(arg0);
  2824. }
  2825. static CUresult _WRAPLIB_API_CALL cuCtxPushCurrent_error(CUcontext) {
  2826. return on_init_failed<CUresult >(400);
  2827. }
  2828. static CUresult _WRAPLIB_API_CALL cuStreamDestroy_init(CUstream arg0) {
  2829. load_library();
  2830. return cuStreamDestroy(arg0);
  2831. }
  2832. static CUresult _WRAPLIB_API_CALL cuStreamDestroy_error(CUstream) {
  2833. return on_init_failed<CUresult >(401);
  2834. }
  2835. static CUresult _WRAPLIB_API_CALL cuEventDestroy_init(CUevent arg0) {
  2836. load_library();
  2837. return cuEventDestroy(arg0);
  2838. }
  2839. static CUresult _WRAPLIB_API_CALL cuEventDestroy_error(CUevent) {
  2840. return on_init_failed<CUresult >(402);
  2841. }
  2842. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease_init(CUdevice arg0) {
  2843. load_library();
  2844. return cuDevicePrimaryCtxRelease(arg0);
  2845. }
  2846. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease_error(CUdevice) {
  2847. return on_init_failed<CUresult >(403);
  2848. }
  2849. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset_init(CUdevice arg0) {
  2850. load_library();
  2851. return cuDevicePrimaryCtxReset(arg0);
  2852. }
  2853. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset_error(CUdevice) {
  2854. return on_init_failed<CUresult >(404);
  2855. }
  2856. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags_init(CUdevice arg0, unsigned int arg1) {
  2857. load_library();
  2858. return cuDevicePrimaryCtxSetFlags(arg0, arg1);
  2859. }
  2860. static CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags_error(CUdevice, unsigned int) {
  2861. return on_init_failed<CUresult >(405);
  2862. }
  2863. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2_init(CUdeviceptr arg0, const void *arg1, size_t arg2) {
  2864. load_library();
  2865. return cuMemcpyHtoD_v2(arg0, arg1, arg2);
  2866. }
  2867. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2_error(CUdeviceptr, const void *, size_t) {
  2868. return on_init_failed<CUresult >(406);
  2869. }
  2870. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2_init(void *arg0, CUdeviceptr arg1, size_t arg2) {
  2871. load_library();
  2872. return cuMemcpyDtoH_v2(arg0, arg1, arg2);
  2873. }
  2874. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2_error(void *, CUdeviceptr, size_t) {
  2875. return on_init_failed<CUresult >(407);
  2876. }
  2877. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  2878. load_library();
  2879. return cuMemcpyDtoD_v2(arg0, arg1, arg2);
  2880. }
  2881. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2_error(CUdeviceptr, CUdeviceptr, size_t) {
  2882. return on_init_failed<CUresult >(408);
  2883. }
  2884. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2_init(CUarray arg0, size_t arg1, CUdeviceptr arg2, size_t arg3) {
  2885. load_library();
  2886. return cuMemcpyDtoA_v2(arg0, arg1, arg2, arg3);
  2887. }
  2888. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2_error(CUarray, size_t, CUdeviceptr, size_t) {
  2889. return on_init_failed<CUresult >(409);
  2890. }
  2891. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2_init(CUdeviceptr arg0, CUarray arg1, size_t arg2, size_t arg3) {
  2892. load_library();
  2893. return cuMemcpyAtoD_v2(arg0, arg1, arg2, arg3);
  2894. }
  2895. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2_error(CUdeviceptr, CUarray, size_t, size_t) {
  2896. return on_init_failed<CUresult >(410);
  2897. }
  2898. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2_init(CUarray arg0, size_t arg1, const void *arg2, size_t arg3) {
  2899. load_library();
  2900. return cuMemcpyHtoA_v2(arg0, arg1, arg2, arg3);
  2901. }
  2902. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2_error(CUarray, size_t, const void *, size_t) {
  2903. return on_init_failed<CUresult >(411);
  2904. }
  2905. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2_init(void *arg0, CUarray arg1, size_t arg2, size_t arg3) {
  2906. load_library();
  2907. return cuMemcpyAtoH_v2(arg0, arg1, arg2, arg3);
  2908. }
  2909. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2_error(void *, CUarray, size_t, size_t) {
  2910. return on_init_failed<CUresult >(412);
  2911. }
  2912. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2_init(CUarray arg0, size_t arg1, CUarray arg2, size_t arg3, size_t arg4) {
  2913. load_library();
  2914. return cuMemcpyAtoA_v2(arg0, arg1, arg2, arg3, arg4);
  2915. }
  2916. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2_error(CUarray, size_t, CUarray, size_t, size_t) {
  2917. return on_init_failed<CUresult >(413);
  2918. }
  2919. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2_init(CUarray arg0, size_t arg1, const void *arg2, size_t arg3, CUstream arg4) {
  2920. load_library();
  2921. return cuMemcpyHtoAAsync_v2(arg0, arg1, arg2, arg3, arg4);
  2922. }
  2923. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2_error(CUarray, size_t, const void *, size_t, CUstream) {
  2924. return on_init_failed<CUresult >(414);
  2925. }
  2926. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2_init(void *arg0, CUarray arg1, size_t arg2, size_t arg3, CUstream arg4) {
  2927. load_library();
  2928. return cuMemcpyAtoHAsync_v2(arg0, arg1, arg2, arg3, arg4);
  2929. }
  2930. static CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2_error(void *, CUarray, size_t, size_t, CUstream) {
  2931. return on_init_failed<CUresult >(415);
  2932. }
  2933. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2_init(const CUDA_MEMCPY2D *arg0) {
  2934. load_library();
  2935. return cuMemcpy2D_v2(arg0);
  2936. }
  2937. static CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2_error(const CUDA_MEMCPY2D *) {
  2938. return on_init_failed<CUresult >(416);
  2939. }
  2940. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2_init(const CUDA_MEMCPY2D *arg0) {
  2941. load_library();
  2942. return cuMemcpy2DUnaligned_v2(arg0);
  2943. }
  2944. static CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2_error(const CUDA_MEMCPY2D *) {
  2945. return on_init_failed<CUresult >(417);
  2946. }
  2947. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2_init(const CUDA_MEMCPY3D *arg0) {
  2948. load_library();
  2949. return cuMemcpy3D_v2(arg0);
  2950. }
  2951. static CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2_error(const CUDA_MEMCPY3D *) {
  2952. return on_init_failed<CUresult >(418);
  2953. }
  2954. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2_init(CUdeviceptr arg0, const void *arg1, size_t arg2, CUstream arg3) {
  2955. load_library();
  2956. return cuMemcpyHtoDAsync_v2(arg0, arg1, arg2, arg3);
  2957. }
  2958. static CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2_error(CUdeviceptr, const void *, size_t, CUstream) {
  2959. return on_init_failed<CUresult >(419);
  2960. }
  2961. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2_init(void *arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  2962. load_library();
  2963. return cuMemcpyDtoHAsync_v2(arg0, arg1, arg2, arg3);
  2964. }
  2965. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2_error(void *, CUdeviceptr, size_t, CUstream) {
  2966. return on_init_failed<CUresult >(420);
  2967. }
  2968. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  2969. load_library();
  2970. return cuMemcpyDtoDAsync_v2(arg0, arg1, arg2, arg3);
  2971. }
  2972. static CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2_error(CUdeviceptr, CUdeviceptr, size_t, CUstream) {
  2973. return on_init_failed<CUresult >(421);
  2974. }
  2975. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2_init(const CUDA_MEMCPY2D *arg0, CUstream arg1) {
  2976. load_library();
  2977. return cuMemcpy2DAsync_v2(arg0, arg1);
  2978. }
  2979. static CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2_error(const CUDA_MEMCPY2D *, CUstream) {
  2980. return on_init_failed<CUresult >(422);
  2981. }
  2982. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2_init(const CUDA_MEMCPY3D *arg0, CUstream arg1) {
  2983. load_library();
  2984. return cuMemcpy3DAsync_v2(arg0, arg1);
  2985. }
  2986. static CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2_error(const CUDA_MEMCPY3D *, CUstream) {
  2987. return on_init_failed<CUresult >(423);
  2988. }
  2989. static CUresult _WRAPLIB_API_CALL cuMemsetD8_v2_init(CUdeviceptr arg0, unsigned char arg1, size_t arg2) {
  2990. load_library();
  2991. return cuMemsetD8_v2(arg0, arg1, arg2);
  2992. }
  2993. static CUresult _WRAPLIB_API_CALL cuMemsetD8_v2_error(CUdeviceptr, unsigned char, size_t) {
  2994. return on_init_failed<CUresult >(424);
  2995. }
  2996. static CUresult _WRAPLIB_API_CALL cuMemsetD16_v2_init(CUdeviceptr arg0, unsigned short arg1, size_t arg2) {
  2997. load_library();
  2998. return cuMemsetD16_v2(arg0, arg1, arg2);
  2999. }
  3000. static CUresult _WRAPLIB_API_CALL cuMemsetD16_v2_error(CUdeviceptr, unsigned short, size_t) {
  3001. return on_init_failed<CUresult >(425);
  3002. }
  3003. static CUresult _WRAPLIB_API_CALL cuMemsetD32_v2_init(CUdeviceptr arg0, unsigned int arg1, size_t arg2) {
  3004. load_library();
  3005. return cuMemsetD32_v2(arg0, arg1, arg2);
  3006. }
  3007. static CUresult _WRAPLIB_API_CALL cuMemsetD32_v2_error(CUdeviceptr, unsigned int, size_t) {
  3008. return on_init_failed<CUresult >(426);
  3009. }
  3010. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2_init(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4) {
  3011. load_library();
  3012. return cuMemsetD2D8_v2(arg0, arg1, arg2, arg3, arg4);
  3013. }
  3014. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2_error(CUdeviceptr, size_t, unsigned char, size_t, size_t) {
  3015. return on_init_failed<CUresult >(427);
  3016. }
  3017. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2_init(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4) {
  3018. load_library();
  3019. return cuMemsetD2D16_v2(arg0, arg1, arg2, arg3, arg4);
  3020. }
  3021. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2_error(CUdeviceptr, size_t, unsigned short, size_t, size_t) {
  3022. return on_init_failed<CUresult >(428);
  3023. }
  3024. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2_init(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4) {
  3025. load_library();
  3026. return cuMemsetD2D32_v2(arg0, arg1, arg2, arg3, arg4);
  3027. }
  3028. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2_error(CUdeviceptr, size_t, unsigned int, size_t, size_t) {
  3029. return on_init_failed<CUresult >(429);
  3030. }
  3031. static CUresult _WRAPLIB_API_CALL cuMemcpy_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  3032. load_library();
  3033. return cuMemcpy(arg0, arg1, arg2);
  3034. }
  3035. static CUresult _WRAPLIB_API_CALL cuMemcpy_error(CUdeviceptr, CUdeviceptr, size_t) {
  3036. return on_init_failed<CUresult >(430);
  3037. }
  3038. static CUresult _WRAPLIB_API_CALL cuMemcpyAsync_init(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  3039. load_library();
  3040. return cuMemcpyAsync(arg0, arg1, arg2, arg3);
  3041. }
  3042. static CUresult _WRAPLIB_API_CALL cuMemcpyAsync_error(CUdeviceptr, CUdeviceptr, size_t, CUstream) {
  3043. return on_init_failed<CUresult >(431);
  3044. }
  3045. static CUresult _WRAPLIB_API_CALL cuMemcpyPeer_init(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4) {
  3046. load_library();
  3047. return cuMemcpyPeer(arg0, arg1, arg2, arg3, arg4);
  3048. }
  3049. static CUresult _WRAPLIB_API_CALL cuMemcpyPeer_error(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t) {
  3050. return on_init_failed<CUresult >(432);
  3051. }
  3052. static CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync_init(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4, CUstream arg5) {
  3053. load_library();
  3054. return cuMemcpyPeerAsync(arg0, arg1, arg2, arg3, arg4, arg5);
  3055. }
  3056. static CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync_error(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream) {
  3057. return on_init_failed<CUresult >(433);
  3058. }
  3059. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer_init(const CUDA_MEMCPY3D_PEER *arg0) {
  3060. load_library();
  3061. return cuMemcpy3DPeer(arg0);
  3062. }
  3063. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer_error(const CUDA_MEMCPY3D_PEER *) {
  3064. return on_init_failed<CUresult >(434);
  3065. }
  3066. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync_init(const CUDA_MEMCPY3D_PEER *arg0, CUstream arg1) {
  3067. load_library();
  3068. return cuMemcpy3DPeerAsync(arg0, arg1);
  3069. }
  3070. static CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync_error(const CUDA_MEMCPY3D_PEER *, CUstream) {
  3071. return on_init_failed<CUresult >(435);
  3072. }
  3073. static CUresult _WRAPLIB_API_CALL cuMemsetD8Async_init(CUdeviceptr arg0, unsigned char arg1, size_t arg2, CUstream arg3) {
  3074. load_library();
  3075. return cuMemsetD8Async(arg0, arg1, arg2, arg3);
  3076. }
  3077. static CUresult _WRAPLIB_API_CALL cuMemsetD8Async_error(CUdeviceptr, unsigned char, size_t, CUstream) {
  3078. return on_init_failed<CUresult >(436);
  3079. }
  3080. static CUresult _WRAPLIB_API_CALL cuMemsetD16Async_init(CUdeviceptr arg0, unsigned short arg1, size_t arg2, CUstream arg3) {
  3081. load_library();
  3082. return cuMemsetD16Async(arg0, arg1, arg2, arg3);
  3083. }
  3084. static CUresult _WRAPLIB_API_CALL cuMemsetD16Async_error(CUdeviceptr, unsigned short, size_t, CUstream) {
  3085. return on_init_failed<CUresult >(437);
  3086. }
  3087. static CUresult _WRAPLIB_API_CALL cuMemsetD32Async_init(CUdeviceptr arg0, unsigned int arg1, size_t arg2, CUstream arg3) {
  3088. load_library();
  3089. return cuMemsetD32Async(arg0, arg1, arg2, arg3);
  3090. }
  3091. static CUresult _WRAPLIB_API_CALL cuMemsetD32Async_error(CUdeviceptr, unsigned int, size_t, CUstream) {
  3092. return on_init_failed<CUresult >(438);
  3093. }
  3094. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async_init(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4, CUstream arg5) {
  3095. load_library();
  3096. return cuMemsetD2D8Async(arg0, arg1, arg2, arg3, arg4, arg5);
  3097. }
  3098. static CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async_error(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream) {
  3099. return on_init_failed<CUresult >(439);
  3100. }
  3101. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async_init(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4, CUstream arg5) {
  3102. load_library();
  3103. return cuMemsetD2D16Async(arg0, arg1, arg2, arg3, arg4, arg5);
  3104. }
  3105. static CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async_error(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream) {
  3106. return on_init_failed<CUresult >(440);
  3107. }
  3108. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async_init(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4, CUstream arg5) {
  3109. load_library();
  3110. return cuMemsetD2D32Async(arg0, arg1, arg2, arg3, arg4, arg5);
  3111. }
  3112. static CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async_error(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream) {
  3113. return on_init_failed<CUresult >(441);
  3114. }
  3115. static CUresult _WRAPLIB_API_CALL cuStreamGetPriority_init(CUstream arg0, int *arg1) {
  3116. load_library();
  3117. return cuStreamGetPriority(arg0, arg1);
  3118. }
  3119. static CUresult _WRAPLIB_API_CALL cuStreamGetPriority_error(CUstream, int *) {
  3120. return on_init_failed<CUresult >(442);
  3121. }
  3122. static CUresult _WRAPLIB_API_CALL cuStreamGetFlags_init(CUstream arg0, unsigned int *arg1) {
  3123. load_library();
  3124. return cuStreamGetFlags(arg0, arg1);
  3125. }
  3126. static CUresult _WRAPLIB_API_CALL cuStreamGetFlags_error(CUstream, unsigned int *) {
  3127. return on_init_failed<CUresult >(443);
  3128. }
  3129. static CUresult _WRAPLIB_API_CALL cuStreamGetCtx_init(CUstream arg0, CUcontext *arg1) {
  3130. load_library();
  3131. return cuStreamGetCtx(arg0, arg1);
  3132. }
  3133. static CUresult _WRAPLIB_API_CALL cuStreamGetCtx_error(CUstream, CUcontext *) {
  3134. return on_init_failed<CUresult >(444);
  3135. }
  3136. static CUresult _WRAPLIB_API_CALL cuStreamWaitEvent_init(CUstream arg0, CUevent arg1, unsigned int arg2) {
  3137. load_library();
  3138. return cuStreamWaitEvent(arg0, arg1, arg2);
  3139. }
  3140. static CUresult _WRAPLIB_API_CALL cuStreamWaitEvent_error(CUstream, CUevent, unsigned int) {
  3141. return on_init_failed<CUresult >(445);
  3142. }
  3143. static CUresult _WRAPLIB_API_CALL cuStreamAddCallback_init(CUstream arg0, CUstreamCallback arg1, void *arg2, unsigned int arg3) {
  3144. load_library();
  3145. return cuStreamAddCallback(arg0, arg1, arg2, arg3);
  3146. }
  3147. static CUresult _WRAPLIB_API_CALL cuStreamAddCallback_error(CUstream, CUstreamCallback, void *, unsigned int) {
  3148. return on_init_failed<CUresult >(446);
  3149. }
  3150. static CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync_init(CUstream arg0, CUdeviceptr arg1, size_t arg2, unsigned int arg3) {
  3151. load_library();
  3152. return cuStreamAttachMemAsync(arg0, arg1, arg2, arg3);
  3153. }
  3154. static CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync_error(CUstream, CUdeviceptr, size_t, unsigned int) {
  3155. return on_init_failed<CUresult >(447);
  3156. }
  3157. static CUresult _WRAPLIB_API_CALL cuStreamQuery_init(CUstream arg0) {
  3158. load_library();
  3159. return cuStreamQuery(arg0);
  3160. }
  3161. static CUresult _WRAPLIB_API_CALL cuStreamQuery_error(CUstream) {
  3162. return on_init_failed<CUresult >(448);
  3163. }
  3164. static CUresult _WRAPLIB_API_CALL cuStreamSynchronize_init(CUstream arg0) {
  3165. load_library();
  3166. return cuStreamSynchronize(arg0);
  3167. }
  3168. static CUresult _WRAPLIB_API_CALL cuStreamSynchronize_error(CUstream) {
  3169. return on_init_failed<CUresult >(449);
  3170. }
  3171. static CUresult _WRAPLIB_API_CALL cuEventRecord_init(CUevent arg0, CUstream arg1) {
  3172. load_library();
  3173. return cuEventRecord(arg0, arg1);
  3174. }
  3175. static CUresult _WRAPLIB_API_CALL cuEventRecord_error(CUevent, CUstream) {
  3176. return on_init_failed<CUresult >(450);
  3177. }
  3178. static CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags_init(CUevent arg0, CUstream arg1, unsigned int arg2) {
  3179. load_library();
  3180. return cuEventRecordWithFlags(arg0, arg1, arg2);
  3181. }
  3182. static CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags_error(CUevent, CUstream, unsigned int) {
  3183. return on_init_failed<CUresult >(451);
  3184. }
  3185. static CUresult _WRAPLIB_API_CALL cuLaunchKernel_init(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9, void **arg10) {
  3186. load_library();
  3187. return cuLaunchKernel(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  3188. }
  3189. static CUresult _WRAPLIB_API_CALL cuLaunchKernel_error(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **) {
  3190. return on_init_failed<CUresult >(452);
  3191. }
  3192. static CUresult _WRAPLIB_API_CALL cuLaunchHostFunc_init(CUstream arg0, CUhostFn arg1, void *arg2) {
  3193. load_library();
  3194. return cuLaunchHostFunc(arg0, arg1, arg2);
  3195. }
  3196. static CUresult _WRAPLIB_API_CALL cuLaunchHostFunc_error(CUstream, CUhostFn, void *) {
  3197. return on_init_failed<CUresult >(453);
  3198. }
  3199. static CUresult _WRAPLIB_API_CALL cuGraphicsMapResources_init(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  3200. load_library();
  3201. return cuGraphicsMapResources(arg0, arg1, arg2);
  3202. }
  3203. static CUresult _WRAPLIB_API_CALL cuGraphicsMapResources_error(unsigned int, CUgraphicsResource *, CUstream) {
  3204. return on_init_failed<CUresult >(454);
  3205. }
  3206. static CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources_init(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  3207. load_library();
  3208. return cuGraphicsUnmapResources(arg0, arg1, arg2);
  3209. }
  3210. static CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources_error(unsigned int, CUgraphicsResource *, CUstream) {
  3211. return on_init_failed<CUresult >(455);
  3212. }
  3213. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue32_init(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  3214. load_library();
  3215. return cuStreamWriteValue32(arg0, arg1, arg2, arg3);
  3216. }
  3217. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue32_error(CUstream, CUdeviceptr, cuuint32_t, unsigned int) {
  3218. return on_init_failed<CUresult >(456);
  3219. }
  3220. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue32_init(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  3221. load_library();
  3222. return cuStreamWaitValue32(arg0, arg1, arg2, arg3);
  3223. }
  3224. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue32_error(CUstream, CUdeviceptr, cuuint32_t, unsigned int) {
  3225. return on_init_failed<CUresult >(457);
  3226. }
  3227. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue64_init(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  3228. load_library();
  3229. return cuStreamWriteValue64(arg0, arg1, arg2, arg3);
  3230. }
  3231. static CUresult _WRAPLIB_API_CALL cuStreamWriteValue64_error(CUstream, CUdeviceptr, cuuint64_t, unsigned int) {
  3232. return on_init_failed<CUresult >(458);
  3233. }
  3234. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue64_init(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  3235. load_library();
  3236. return cuStreamWaitValue64(arg0, arg1, arg2, arg3);
  3237. }
  3238. static CUresult _WRAPLIB_API_CALL cuStreamWaitValue64_error(CUstream, CUdeviceptr, cuuint64_t, unsigned int) {
  3239. return on_init_failed<CUresult >(459);
  3240. }
  3241. static CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp_init(CUstream arg0, unsigned int arg1, CUstreamBatchMemOpParams *arg2, unsigned int arg3) {
  3242. load_library();
  3243. return cuStreamBatchMemOp(arg0, arg1, arg2, arg3);
  3244. }
  3245. static CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp_error(CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int) {
  3246. return on_init_failed<CUresult >(460);
  3247. }
  3248. static CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync_init(CUdeviceptr arg0, size_t arg1, CUdevice arg2, CUstream arg3) {
  3249. load_library();
  3250. return cuMemPrefetchAsync(arg0, arg1, arg2, arg3);
  3251. }
  3252. static CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync_error(CUdeviceptr, size_t, CUdevice, CUstream) {
  3253. return on_init_failed<CUresult >(461);
  3254. }
  3255. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel_init(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9) {
  3256. load_library();
  3257. return cuLaunchCooperativeKernel(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  3258. }
  3259. static CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel_error(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **) {
  3260. return on_init_failed<CUresult >(462);
  3261. }
  3262. static CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync_init(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  3263. load_library();
  3264. return cuSignalExternalSemaphoresAsync(arg0, arg1, arg2, arg3);
  3265. }
  3266. static CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync_error(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *, unsigned int, CUstream) {
  3267. return on_init_failed<CUresult >(463);
  3268. }
  3269. static CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync_init(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  3270. load_library();
  3271. return cuWaitExternalSemaphoresAsync(arg0, arg1, arg2, arg3);
  3272. }
  3273. static CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync_error(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *, unsigned int, CUstream) {
  3274. return on_init_failed<CUresult >(464);
  3275. }
  3276. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_init(CUstream arg0) {
  3277. load_library();
  3278. return cuStreamBeginCapture(arg0);
  3279. }
  3280. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_error(CUstream) {
  3281. return on_init_failed<CUresult >(465);
  3282. }
  3283. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_ptsz_init(CUstream arg0) {
  3284. load_library();
  3285. return cuStreamBeginCapture_ptsz(arg0);
  3286. }
  3287. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_ptsz_error(CUstream) {
  3288. return on_init_failed<CUresult >(466);
  3289. }
  3290. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2_init(CUstream arg0, CUstreamCaptureMode arg1) {
  3291. load_library();
  3292. return cuStreamBeginCapture_v2(arg0, arg1);
  3293. }
  3294. static CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2_error(CUstream, CUstreamCaptureMode) {
  3295. return on_init_failed<CUresult >(467);
  3296. }
  3297. static CUresult _WRAPLIB_API_CALL cuStreamEndCapture_init(CUstream arg0, CUgraph *arg1) {
  3298. load_library();
  3299. return cuStreamEndCapture(arg0, arg1);
  3300. }
  3301. static CUresult _WRAPLIB_API_CALL cuStreamEndCapture_error(CUstream, CUgraph *) {
  3302. return on_init_failed<CUresult >(468);
  3303. }
  3304. static CUresult _WRAPLIB_API_CALL cuStreamIsCapturing_init(CUstream arg0, CUstreamCaptureStatus *arg1) {
  3305. load_library();
  3306. return cuStreamIsCapturing(arg0, arg1);
  3307. }
  3308. static CUresult _WRAPLIB_API_CALL cuStreamIsCapturing_error(CUstream, CUstreamCaptureStatus *) {
  3309. return on_init_failed<CUresult >(469);
  3310. }
  3311. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_init(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2) {
  3312. load_library();
  3313. return cuStreamGetCaptureInfo(arg0, arg1, arg2);
  3314. }
  3315. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_error(CUstream, CUstreamCaptureStatus *, cuuint64_t *) {
  3316. return on_init_failed<CUresult >(470);
  3317. }
  3318. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2_init(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2, CUgraph *arg3, const CUgraphNode **arg4, size_t *arg5) {
  3319. load_library();
  3320. return cuStreamGetCaptureInfo_v2(arg0, arg1, arg2, arg3, arg4, arg5);
  3321. }
  3322. static CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2_error(CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, const CUgraphNode **, size_t *) {
  3323. return on_init_failed<CUresult >(471);
  3324. }
  3325. static CUresult _WRAPLIB_API_CALL cuGraphUpload_init(CUgraphExec arg0, CUstream arg1) {
  3326. load_library();
  3327. return cuGraphUpload(arg0, arg1);
  3328. }
  3329. static CUresult _WRAPLIB_API_CALL cuGraphUpload_error(CUgraphExec, CUstream) {
  3330. return on_init_failed<CUresult >(472);
  3331. }
  3332. static CUresult _WRAPLIB_API_CALL cuGraphLaunch_init(CUgraphExec arg0, CUstream arg1) {
  3333. load_library();
  3334. return cuGraphLaunch(arg0, arg1);
  3335. }
  3336. static CUresult _WRAPLIB_API_CALL cuGraphLaunch_error(CUgraphExec, CUstream) {
  3337. return on_init_failed<CUresult >(473);
  3338. }
  3339. static CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes_init(CUstream arg0, CUstream arg1) {
  3340. load_library();
  3341. return cuStreamCopyAttributes(arg0, arg1);
  3342. }
  3343. static CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes_error(CUstream, CUstream) {
  3344. return on_init_failed<CUresult >(474);
  3345. }
  3346. static CUresult _WRAPLIB_API_CALL cuStreamGetAttribute_init(CUstream arg0, CUstreamAttrID arg1, CUstreamAttrValue *arg2) {
  3347. load_library();
  3348. return cuStreamGetAttribute(arg0, arg1, arg2);
  3349. }
  3350. static CUresult _WRAPLIB_API_CALL cuStreamGetAttribute_error(CUstream, CUstreamAttrID, CUstreamAttrValue *) {
  3351. return on_init_failed<CUresult >(475);
  3352. }
  3353. static CUresult _WRAPLIB_API_CALL cuStreamSetAttribute_init(CUstream arg0, CUstreamAttrID arg1, const CUstreamAttrValue *arg2) {
  3354. load_library();
  3355. return cuStreamSetAttribute(arg0, arg1, arg2);
  3356. }
  3357. static CUresult _WRAPLIB_API_CALL cuStreamSetAttribute_error(CUstream, CUstreamAttrID, const CUstreamAttrValue *) {
  3358. return on_init_failed<CUresult >(476);
  3359. }
  3360. static CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle_init(CUdeviceptr *arg0, CUipcMemHandle arg1, unsigned int arg2) {
  3361. load_library();
  3362. return cuIpcOpenMemHandle(arg0, arg1, arg2);
  3363. }
  3364. static CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle_error(CUdeviceptr *, CUipcMemHandle, unsigned int) {
  3365. return on_init_failed<CUresult >(477);
  3366. }
  3367. static CUresult _WRAPLIB_API_CALL cuGraphInstantiate_init(CUgraphExec *arg0, CUgraph arg1, CUgraphNode *arg2, char *arg3, size_t arg4) {
  3368. load_library();
  3369. return cuGraphInstantiate(arg0, arg1, arg2, arg3, arg4);
  3370. }
  3371. static CUresult _WRAPLIB_API_CALL cuGraphInstantiate_error(CUgraphExec *, CUgraph, CUgraphNode *, char *, size_t) {
  3372. return on_init_failed<CUresult >(478);
  3373. }
  3374. static CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync_init(CUarrayMapInfo *arg0, unsigned int arg1, CUstream arg2) {
  3375. load_library();
  3376. return cuMemMapArrayAsync(arg0, arg1, arg2);
  3377. }
  3378. static CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync_error(CUarrayMapInfo *, unsigned int, CUstream) {
  3379. return on_init_failed<CUresult >(479);
  3380. }
  3381. static CUresult _WRAPLIB_API_CALL cuMemFreeAsync_init(CUdeviceptr arg0, CUstream arg1) {
  3382. load_library();
  3383. return cuMemFreeAsync(arg0, arg1);
  3384. }
  3385. static CUresult _WRAPLIB_API_CALL cuMemFreeAsync_error(CUdeviceptr, CUstream) {
  3386. return on_init_failed<CUresult >(480);
  3387. }
  3388. static CUresult _WRAPLIB_API_CALL cuMemAllocAsync_init(CUdeviceptr *arg0, size_t arg1, CUstream arg2) {
  3389. load_library();
  3390. return cuMemAllocAsync(arg0, arg1, arg2);
  3391. }
  3392. static CUresult _WRAPLIB_API_CALL cuMemAllocAsync_error(CUdeviceptr *, size_t, CUstream) {
  3393. return on_init_failed<CUresult >(481);
  3394. }
  3395. static CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync_init(CUdeviceptr *arg0, size_t arg1, CUmemoryPool arg2, CUstream arg3) {
  3396. load_library();
  3397. return cuMemAllocFromPoolAsync(arg0, arg1, arg2, arg3);
  3398. }
  3399. static CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync_error(CUdeviceptr *, size_t, CUmemoryPool, CUstream) {
  3400. return on_init_failed<CUresult >(482);
  3401. }
  3402. static CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies_init(CUstream arg0, CUgraphNode *arg1, size_t arg2, unsigned int arg3) {
  3403. load_library();
  3404. return cuStreamUpdateCaptureDependencies(arg0, arg1, arg2, arg3);
  3405. }
  3406. static CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies_error(CUstream, CUgraphNode *, size_t, unsigned int) {
  3407. return on_init_failed<CUresult >(483);
  3408. }
  3409. static CUresult _WRAPLIB_API_CALL cuProfilerInitialize_init(const char *arg0, const char *arg1, CUoutput_mode arg2) {
  3410. load_library();
  3411. return cuProfilerInitialize(arg0, arg1, arg2);
  3412. }
  3413. static CUresult _WRAPLIB_API_CALL cuProfilerInitialize_error(const char *, const char *, CUoutput_mode) {
  3414. return on_init_failed<CUresult >(484);
  3415. }
  3416. static CUresult _WRAPLIB_API_CALL cuProfilerStart_init() {
  3417. load_library();
  3418. return cuProfilerStart();
  3419. }
  3420. static CUresult _WRAPLIB_API_CALL cuProfilerStart_error() {
  3421. return on_init_failed<CUresult >(485);
  3422. }
  3423. static CUresult _WRAPLIB_API_CALL cuProfilerStop_init() {
  3424. load_library();
  3425. return cuProfilerStop();
  3426. }
  3427. static CUresult _WRAPLIB_API_CALL cuProfilerStop_error() {
  3428. return on_init_failed<CUresult >(486);
  3429. }
  3430. static constexpr size_t NR_FUNC = 487;
  3431. static void* g_func_table[NR_FUNC] = {(void*)(&cuGetErrorString_init),
  3432. (void*)(&cuGetErrorName_init),
  3433. (void*)(&cuInit_init),
  3434. (void*)(&cuDriverGetVersion_init),
  3435. (void*)(&cuDeviceGet_init),
  3436. (void*)(&cuDeviceGetCount_init),
  3437. (void*)(&cuDeviceGetName_init),
  3438. (void*)(&cuDeviceGetUuid_init),
  3439. (void*)(&cuDeviceGetUuid_v2_init),
  3440. (void*)(&cuDeviceGetLuid_init),
  3441. (void*)(&cuDeviceTotalMem_v2_init),
  3442. (void*)(&cuDeviceGetTexture1DLinearMaxWidth_init),
  3443. (void*)(&cuDeviceGetAttribute_init),
  3444. (void*)(&cuDeviceGetNvSciSyncAttributes_init),
  3445. (void*)(&cuDeviceSetMemPool_init),
  3446. (void*)(&cuDeviceGetMemPool_init),
  3447. (void*)(&cuDeviceGetDefaultMemPool_init),
  3448. (void*)(&cuFlushGPUDirectRDMAWrites_init),
  3449. (void*)(&cuDeviceGetProperties_init),
  3450. (void*)(&cuDeviceComputeCapability_init),
  3451. (void*)(&cuDevicePrimaryCtxRetain_init),
  3452. (void*)(&cuDevicePrimaryCtxRelease_v2_init),
  3453. (void*)(&cuDevicePrimaryCtxSetFlags_v2_init),
  3454. (void*)(&cuDevicePrimaryCtxGetState_init),
  3455. (void*)(&cuDevicePrimaryCtxReset_v2_init),
  3456. (void*)(&cuDeviceGetExecAffinitySupport_init),
  3457. (void*)(&cuCtxCreate_v2_init),
  3458. (void*)(&cuCtxCreate_v3_init),
  3459. (void*)(&cuCtxDestroy_v2_init),
  3460. (void*)(&cuCtxPushCurrent_v2_init),
  3461. (void*)(&cuCtxPopCurrent_v2_init),
  3462. (void*)(&cuCtxSetCurrent_init),
  3463. (void*)(&cuCtxGetCurrent_init),
  3464. (void*)(&cuCtxGetDevice_init),
  3465. (void*)(&cuCtxGetFlags_init),
  3466. (void*)(&cuCtxSynchronize_init),
  3467. (void*)(&cuCtxSetLimit_init),
  3468. (void*)(&cuCtxGetLimit_init),
  3469. (void*)(&cuCtxGetCacheConfig_init),
  3470. (void*)(&cuCtxSetCacheConfig_init),
  3471. (void*)(&cuCtxGetSharedMemConfig_init),
  3472. (void*)(&cuCtxSetSharedMemConfig_init),
  3473. (void*)(&cuCtxGetApiVersion_init),
  3474. (void*)(&cuCtxGetStreamPriorityRange_init),
  3475. (void*)(&cuCtxResetPersistingL2Cache_init),
  3476. (void*)(&cuCtxGetExecAffinity_init),
  3477. (void*)(&cuCtxAttach_init),
  3478. (void*)(&cuCtxDetach_init),
  3479. (void*)(&cuModuleLoad_init),
  3480. (void*)(&cuModuleLoadData_init),
  3481. (void*)(&cuModuleLoadDataEx_init),
  3482. (void*)(&cuModuleLoadFatBinary_init),
  3483. (void*)(&cuModuleUnload_init),
  3484. (void*)(&cuModuleGetFunction_init),
  3485. (void*)(&cuModuleGetGlobal_v2_init),
  3486. (void*)(&cuModuleGetTexRef_init),
  3487. (void*)(&cuModuleGetSurfRef_init),
  3488. (void*)(&cuLinkCreate_v2_init),
  3489. (void*)(&cuLinkAddData_v2_init),
  3490. (void*)(&cuLinkAddFile_v2_init),
  3491. (void*)(&cuLinkComplete_init),
  3492. (void*)(&cuLinkDestroy_init),
  3493. (void*)(&cuMemGetInfo_v2_init),
  3494. (void*)(&cuMemAlloc_v2_init),
  3495. (void*)(&cuMemAllocPitch_v2_init),
  3496. (void*)(&cuMemFree_v2_init),
  3497. (void*)(&cuMemGetAddressRange_v2_init),
  3498. (void*)(&cuMemAllocHost_v2_init),
  3499. (void*)(&cuMemFreeHost_init),
  3500. (void*)(&cuMemHostAlloc_init),
  3501. (void*)(&cuMemHostGetDevicePointer_v2_init),
  3502. (void*)(&cuMemHostGetFlags_init),
  3503. (void*)(&cuMemAllocManaged_init),
  3504. (void*)(&cuDeviceGetByPCIBusId_init),
  3505. (void*)(&cuDeviceGetPCIBusId_init),
  3506. (void*)(&cuIpcGetEventHandle_init),
  3507. (void*)(&cuIpcOpenEventHandle_init),
  3508. (void*)(&cuIpcGetMemHandle_init),
  3509. (void*)(&cuIpcOpenMemHandle_v2_init),
  3510. (void*)(&cuIpcCloseMemHandle_init),
  3511. (void*)(&cuMemHostRegister_v2_init),
  3512. (void*)(&cuMemHostUnregister_init),
  3513. (void*)(&cuMemcpy_ptds_init),
  3514. (void*)(&cuMemcpyPeer_ptds_init),
  3515. (void*)(&cuMemcpyHtoD_v2_ptds_init),
  3516. (void*)(&cuMemcpyDtoH_v2_ptds_init),
  3517. (void*)(&cuMemcpyDtoD_v2_ptds_init),
  3518. (void*)(&cuMemcpyDtoA_v2_ptds_init),
  3519. (void*)(&cuMemcpyAtoD_v2_ptds_init),
  3520. (void*)(&cuMemcpyHtoA_v2_ptds_init),
  3521. (void*)(&cuMemcpyAtoH_v2_ptds_init),
  3522. (void*)(&cuMemcpyAtoA_v2_ptds_init),
  3523. (void*)(&cuMemcpy2D_v2_ptds_init),
  3524. (void*)(&cuMemcpy2DUnaligned_v2_ptds_init),
  3525. (void*)(&cuMemcpy3D_v2_ptds_init),
  3526. (void*)(&cuMemcpy3DPeer_ptds_init),
  3527. (void*)(&cuMemcpyAsync_ptsz_init),
  3528. (void*)(&cuMemcpyPeerAsync_ptsz_init),
  3529. (void*)(&cuMemcpyHtoDAsync_v2_ptsz_init),
  3530. (void*)(&cuMemcpyDtoHAsync_v2_ptsz_init),
  3531. (void*)(&cuMemcpyDtoDAsync_v2_ptsz_init),
  3532. (void*)(&cuMemcpyHtoAAsync_v2_ptsz_init),
  3533. (void*)(&cuMemcpyAtoHAsync_v2_ptsz_init),
  3534. (void*)(&cuMemcpy2DAsync_v2_ptsz_init),
  3535. (void*)(&cuMemcpy3DAsync_v2_ptsz_init),
  3536. (void*)(&cuMemcpy3DPeerAsync_ptsz_init),
  3537. (void*)(&cuMemsetD8_v2_ptds_init),
  3538. (void*)(&cuMemsetD16_v2_ptds_init),
  3539. (void*)(&cuMemsetD32_v2_ptds_init),
  3540. (void*)(&cuMemsetD2D8_v2_ptds_init),
  3541. (void*)(&cuMemsetD2D16_v2_ptds_init),
  3542. (void*)(&cuMemsetD2D32_v2_ptds_init),
  3543. (void*)(&cuMemsetD8Async_ptsz_init),
  3544. (void*)(&cuMemsetD16Async_ptsz_init),
  3545. (void*)(&cuMemsetD32Async_ptsz_init),
  3546. (void*)(&cuMemsetD2D8Async_ptsz_init),
  3547. (void*)(&cuMemsetD2D16Async_ptsz_init),
  3548. (void*)(&cuMemsetD2D32Async_ptsz_init),
  3549. (void*)(&cuArrayCreate_v2_init),
  3550. (void*)(&cuArrayGetDescriptor_v2_init),
  3551. (void*)(&cuArrayGetSparseProperties_init),
  3552. (void*)(&cuMipmappedArrayGetSparseProperties_init),
  3553. (void*)(&cuArrayGetPlane_init),
  3554. (void*)(&cuArrayDestroy_init),
  3555. (void*)(&cuArray3DCreate_v2_init),
  3556. (void*)(&cuArray3DGetDescriptor_v2_init),
  3557. (void*)(&cuMipmappedArrayCreate_init),
  3558. (void*)(&cuMipmappedArrayGetLevel_init),
  3559. (void*)(&cuMipmappedArrayDestroy_init),
  3560. (void*)(&cuMemAddressReserve_init),
  3561. (void*)(&cuMemAddressFree_init),
  3562. (void*)(&cuMemCreate_init),
  3563. (void*)(&cuMemRelease_init),
  3564. (void*)(&cuMemMap_init),
  3565. (void*)(&cuMemMapArrayAsync_ptsz_init),
  3566. (void*)(&cuMemUnmap_init),
  3567. (void*)(&cuMemSetAccess_init),
  3568. (void*)(&cuMemGetAccess_init),
  3569. (void*)(&cuMemExportToShareableHandle_init),
  3570. (void*)(&cuMemImportFromShareableHandle_init),
  3571. (void*)(&cuMemGetAllocationGranularity_init),
  3572. (void*)(&cuMemGetAllocationPropertiesFromHandle_init),
  3573. (void*)(&cuMemRetainAllocationHandle_init),
  3574. (void*)(&cuMemFreeAsync_ptsz_init),
  3575. (void*)(&cuMemAllocAsync_ptsz_init),
  3576. (void*)(&cuMemPoolTrimTo_init),
  3577. (void*)(&cuMemPoolSetAttribute_init),
  3578. (void*)(&cuMemPoolGetAttribute_init),
  3579. (void*)(&cuMemPoolSetAccess_init),
  3580. (void*)(&cuMemPoolGetAccess_init),
  3581. (void*)(&cuMemPoolCreate_init),
  3582. (void*)(&cuMemPoolDestroy_init),
  3583. (void*)(&cuMemAllocFromPoolAsync_ptsz_init),
  3584. (void*)(&cuMemPoolExportToShareableHandle_init),
  3585. (void*)(&cuMemPoolImportFromShareableHandle_init),
  3586. (void*)(&cuMemPoolExportPointer_init),
  3587. (void*)(&cuMemPoolImportPointer_init),
  3588. (void*)(&cuPointerGetAttribute_init),
  3589. (void*)(&cuMemPrefetchAsync_ptsz_init),
  3590. (void*)(&cuMemAdvise_init),
  3591. (void*)(&cuMemRangeGetAttribute_init),
  3592. (void*)(&cuMemRangeGetAttributes_init),
  3593. (void*)(&cuPointerSetAttribute_init),
  3594. (void*)(&cuPointerGetAttributes_init),
  3595. (void*)(&cuStreamCreate_init),
  3596. (void*)(&cuStreamCreateWithPriority_init),
  3597. (void*)(&cuStreamGetPriority_ptsz_init),
  3598. (void*)(&cuStreamGetFlags_ptsz_init),
  3599. (void*)(&cuStreamGetCtx_ptsz_init),
  3600. (void*)(&cuStreamWaitEvent_ptsz_init),
  3601. (void*)(&cuStreamAddCallback_ptsz_init),
  3602. (void*)(&cuStreamBeginCapture_v2_ptsz_init),
  3603. (void*)(&cuThreadExchangeStreamCaptureMode_init),
  3604. (void*)(&cuStreamEndCapture_ptsz_init),
  3605. (void*)(&cuStreamIsCapturing_ptsz_init),
  3606. (void*)(&cuStreamGetCaptureInfo_ptsz_init),
  3607. (void*)(&cuStreamGetCaptureInfo_v2_ptsz_init),
  3608. (void*)(&cuStreamUpdateCaptureDependencies_ptsz_init),
  3609. (void*)(&cuStreamAttachMemAsync_ptsz_init),
  3610. (void*)(&cuStreamQuery_ptsz_init),
  3611. (void*)(&cuStreamSynchronize_ptsz_init),
  3612. (void*)(&cuStreamDestroy_v2_init),
  3613. (void*)(&cuStreamCopyAttributes_ptsz_init),
  3614. (void*)(&cuStreamGetAttribute_ptsz_init),
  3615. (void*)(&cuStreamSetAttribute_ptsz_init),
  3616. (void*)(&cuEventCreate_init),
  3617. (void*)(&cuEventRecord_ptsz_init),
  3618. (void*)(&cuEventRecordWithFlags_ptsz_init),
  3619. (void*)(&cuEventQuery_init),
  3620. (void*)(&cuEventSynchronize_init),
  3621. (void*)(&cuEventDestroy_v2_init),
  3622. (void*)(&cuEventElapsedTime_init),
  3623. (void*)(&cuImportExternalMemory_init),
  3624. (void*)(&cuExternalMemoryGetMappedBuffer_init),
  3625. (void*)(&cuExternalMemoryGetMappedMipmappedArray_init),
  3626. (void*)(&cuDestroyExternalMemory_init),
  3627. (void*)(&cuImportExternalSemaphore_init),
  3628. (void*)(&cuSignalExternalSemaphoresAsync_ptsz_init),
  3629. (void*)(&cuWaitExternalSemaphoresAsync_ptsz_init),
  3630. (void*)(&cuDestroyExternalSemaphore_init),
  3631. (void*)(&cuStreamWaitValue32_ptsz_init),
  3632. (void*)(&cuStreamWaitValue64_ptsz_init),
  3633. (void*)(&cuStreamWriteValue32_ptsz_init),
  3634. (void*)(&cuStreamWriteValue64_ptsz_init),
  3635. (void*)(&cuStreamBatchMemOp_ptsz_init),
  3636. (void*)(&cuFuncGetAttribute_init),
  3637. (void*)(&cuFuncSetAttribute_init),
  3638. (void*)(&cuFuncSetCacheConfig_init),
  3639. (void*)(&cuFuncSetSharedMemConfig_init),
  3640. (void*)(&cuFuncGetModule_init),
  3641. (void*)(&cuLaunchKernel_ptsz_init),
  3642. (void*)(&cuLaunchCooperativeKernel_ptsz_init),
  3643. (void*)(&cuLaunchCooperativeKernelMultiDevice_init),
  3644. (void*)(&cuLaunchHostFunc_ptsz_init),
  3645. (void*)(&cuFuncSetBlockShape_init),
  3646. (void*)(&cuFuncSetSharedSize_init),
  3647. (void*)(&cuParamSetSize_init),
  3648. (void*)(&cuParamSeti_init),
  3649. (void*)(&cuParamSetf_init),
  3650. (void*)(&cuParamSetv_init),
  3651. (void*)(&cuLaunch_init),
  3652. (void*)(&cuLaunchGrid_init),
  3653. (void*)(&cuLaunchGridAsync_init),
  3654. (void*)(&cuParamSetTexRef_init),
  3655. (void*)(&cuGraphCreate_init),
  3656. (void*)(&cuGraphAddKernelNode_init),
  3657. (void*)(&cuGraphKernelNodeGetParams_init),
  3658. (void*)(&cuGraphKernelNodeSetParams_init),
  3659. (void*)(&cuGraphAddMemcpyNode_init),
  3660. (void*)(&cuGraphMemcpyNodeGetParams_init),
  3661. (void*)(&cuGraphMemcpyNodeSetParams_init),
  3662. (void*)(&cuGraphAddMemsetNode_init),
  3663. (void*)(&cuGraphMemsetNodeGetParams_init),
  3664. (void*)(&cuGraphMemsetNodeSetParams_init),
  3665. (void*)(&cuGraphAddHostNode_init),
  3666. (void*)(&cuGraphHostNodeGetParams_init),
  3667. (void*)(&cuGraphHostNodeSetParams_init),
  3668. (void*)(&cuGraphAddChildGraphNode_init),
  3669. (void*)(&cuGraphChildGraphNodeGetGraph_init),
  3670. (void*)(&cuGraphAddEmptyNode_init),
  3671. (void*)(&cuGraphAddEventRecordNode_init),
  3672. (void*)(&cuGraphEventRecordNodeGetEvent_init),
  3673. (void*)(&cuGraphEventRecordNodeSetEvent_init),
  3674. (void*)(&cuGraphAddEventWaitNode_init),
  3675. (void*)(&cuGraphEventWaitNodeGetEvent_init),
  3676. (void*)(&cuGraphEventWaitNodeSetEvent_init),
  3677. (void*)(&cuGraphAddExternalSemaphoresSignalNode_init),
  3678. (void*)(&cuGraphExternalSemaphoresSignalNodeGetParams_init),
  3679. (void*)(&cuGraphExternalSemaphoresSignalNodeSetParams_init),
  3680. (void*)(&cuGraphAddExternalSemaphoresWaitNode_init),
  3681. (void*)(&cuGraphExternalSemaphoresWaitNodeGetParams_init),
  3682. (void*)(&cuGraphExternalSemaphoresWaitNodeSetParams_init),
  3683. (void*)(&cuGraphAddMemAllocNode_init),
  3684. (void*)(&cuGraphMemAllocNodeGetParams_init),
  3685. (void*)(&cuGraphAddMemFreeNode_init),
  3686. (void*)(&cuGraphMemFreeNodeGetParams_init),
  3687. (void*)(&cuDeviceGraphMemTrim_init),
  3688. (void*)(&cuDeviceGetGraphMemAttribute_init),
  3689. (void*)(&cuDeviceSetGraphMemAttribute_init),
  3690. (void*)(&cuGraphClone_init),
  3691. (void*)(&cuGraphNodeFindInClone_init),
  3692. (void*)(&cuGraphNodeGetType_init),
  3693. (void*)(&cuGraphGetNodes_init),
  3694. (void*)(&cuGraphGetRootNodes_init),
  3695. (void*)(&cuGraphGetEdges_init),
  3696. (void*)(&cuGraphNodeGetDependencies_init),
  3697. (void*)(&cuGraphNodeGetDependentNodes_init),
  3698. (void*)(&cuGraphAddDependencies_init),
  3699. (void*)(&cuGraphRemoveDependencies_init),
  3700. (void*)(&cuGraphDestroyNode_init),
  3701. (void*)(&cuGraphInstantiate_v2_init),
  3702. (void*)(&cuGraphInstantiateWithFlags_init),
  3703. (void*)(&cuGraphExecKernelNodeSetParams_init),
  3704. (void*)(&cuGraphExecMemcpyNodeSetParams_init),
  3705. (void*)(&cuGraphExecMemsetNodeSetParams_init),
  3706. (void*)(&cuGraphExecHostNodeSetParams_init),
  3707. (void*)(&cuGraphExecChildGraphNodeSetParams_init),
  3708. (void*)(&cuGraphExecEventRecordNodeSetEvent_init),
  3709. (void*)(&cuGraphExecEventWaitNodeSetEvent_init),
  3710. (void*)(&cuGraphExecExternalSemaphoresSignalNodeSetParams_init),
  3711. (void*)(&cuGraphExecExternalSemaphoresWaitNodeSetParams_init),
  3712. (void*)(&cuGraphUpload_ptsz_init),
  3713. (void*)(&cuGraphLaunch_ptsz_init),
  3714. (void*)(&cuGraphExecDestroy_init),
  3715. (void*)(&cuGraphDestroy_init),
  3716. (void*)(&cuGraphExecUpdate_init),
  3717. (void*)(&cuGraphKernelNodeCopyAttributes_init),
  3718. (void*)(&cuGraphKernelNodeGetAttribute_init),
  3719. (void*)(&cuGraphKernelNodeSetAttribute_init),
  3720. (void*)(&cuGraphDebugDotPrint_init),
  3721. (void*)(&cuUserObjectCreate_init),
  3722. (void*)(&cuUserObjectRetain_init),
  3723. (void*)(&cuUserObjectRelease_init),
  3724. (void*)(&cuGraphRetainUserObject_init),
  3725. (void*)(&cuGraphReleaseUserObject_init),
  3726. (void*)(&cuOccupancyMaxActiveBlocksPerMultiprocessor_init),
  3727. (void*)(&cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_init),
  3728. (void*)(&cuOccupancyMaxPotentialBlockSize_init),
  3729. (void*)(&cuOccupancyMaxPotentialBlockSizeWithFlags_init),
  3730. (void*)(&cuOccupancyAvailableDynamicSMemPerBlock_init),
  3731. (void*)(&cuTexRefSetArray_init),
  3732. (void*)(&cuTexRefSetMipmappedArray_init),
  3733. (void*)(&cuTexRefSetAddress_v2_init),
  3734. (void*)(&cuTexRefSetAddress2D_v3_init),
  3735. (void*)(&cuTexRefSetFormat_init),
  3736. (void*)(&cuTexRefSetAddressMode_init),
  3737. (void*)(&cuTexRefSetFilterMode_init),
  3738. (void*)(&cuTexRefSetMipmapFilterMode_init),
  3739. (void*)(&cuTexRefSetMipmapLevelBias_init),
  3740. (void*)(&cuTexRefSetMipmapLevelClamp_init),
  3741. (void*)(&cuTexRefSetMaxAnisotropy_init),
  3742. (void*)(&cuTexRefSetBorderColor_init),
  3743. (void*)(&cuTexRefSetFlags_init),
  3744. (void*)(&cuTexRefGetAddress_v2_init),
  3745. (void*)(&cuTexRefGetArray_init),
  3746. (void*)(&cuTexRefGetMipmappedArray_init),
  3747. (void*)(&cuTexRefGetAddressMode_init),
  3748. (void*)(&cuTexRefGetFilterMode_init),
  3749. (void*)(&cuTexRefGetFormat_init),
  3750. (void*)(&cuTexRefGetMipmapFilterMode_init),
  3751. (void*)(&cuTexRefGetMipmapLevelBias_init),
  3752. (void*)(&cuTexRefGetMipmapLevelClamp_init),
  3753. (void*)(&cuTexRefGetMaxAnisotropy_init),
  3754. (void*)(&cuTexRefGetBorderColor_init),
  3755. (void*)(&cuTexRefGetFlags_init),
  3756. (void*)(&cuTexRefCreate_init),
  3757. (void*)(&cuTexRefDestroy_init),
  3758. (void*)(&cuSurfRefSetArray_init),
  3759. (void*)(&cuSurfRefGetArray_init),
  3760. (void*)(&cuTexObjectCreate_init),
  3761. (void*)(&cuTexObjectDestroy_init),
  3762. (void*)(&cuTexObjectGetResourceDesc_init),
  3763. (void*)(&cuTexObjectGetTextureDesc_init),
  3764. (void*)(&cuTexObjectGetResourceViewDesc_init),
  3765. (void*)(&cuSurfObjectCreate_init),
  3766. (void*)(&cuSurfObjectDestroy_init),
  3767. (void*)(&cuSurfObjectGetResourceDesc_init),
  3768. (void*)(&cuDeviceCanAccessPeer_init),
  3769. (void*)(&cuCtxEnablePeerAccess_init),
  3770. (void*)(&cuCtxDisablePeerAccess_init),
  3771. (void*)(&cuDeviceGetP2PAttribute_init),
  3772. (void*)(&cuGraphicsUnregisterResource_init),
  3773. (void*)(&cuGraphicsSubResourceGetMappedArray_init),
  3774. (void*)(&cuGraphicsResourceGetMappedMipmappedArray_init),
  3775. (void*)(&cuGraphicsResourceGetMappedPointer_v2_init),
  3776. (void*)(&cuGraphicsResourceSetMapFlags_v2_init),
  3777. (void*)(&cuGraphicsMapResources_ptsz_init),
  3778. (void*)(&cuGraphicsUnmapResources_ptsz_init),
  3779. (void*)(&cuGetProcAddress_init),
  3780. (void*)(&cuGetExportTable_init),
  3781. (void*)(&cuMemHostRegister_init),
  3782. (void*)(&cuGraphicsResourceSetMapFlags_init),
  3783. (void*)(&cuLinkCreate_init),
  3784. (void*)(&cuLinkAddData_init),
  3785. (void*)(&cuLinkAddFile_init),
  3786. (void*)(&cuTexRefSetAddress2D_v2_init),
  3787. (void*)(&cuDeviceTotalMem_init),
  3788. (void*)(&cuCtxCreate_init),
  3789. (void*)(&cuModuleGetGlobal_init),
  3790. (void*)(&cuMemGetInfo_init),
  3791. (void*)(&cuMemAlloc_init),
  3792. (void*)(&cuMemAllocPitch_init),
  3793. (void*)(&cuMemFree_init),
  3794. (void*)(&cuMemGetAddressRange_init),
  3795. (void*)(&cuMemAllocHost_init),
  3796. (void*)(&cuMemHostGetDevicePointer_init),
  3797. (void*)(&cuMemcpyHtoD_init),
  3798. (void*)(&cuMemcpyDtoH_init),
  3799. (void*)(&cuMemcpyDtoD_init),
  3800. (void*)(&cuMemcpyDtoA_init),
  3801. (void*)(&cuMemcpyAtoD_init),
  3802. (void*)(&cuMemcpyHtoA_init),
  3803. (void*)(&cuMemcpyAtoH_init),
  3804. (void*)(&cuMemcpyAtoA_init),
  3805. (void*)(&cuMemcpyHtoAAsync_init),
  3806. (void*)(&cuMemcpyAtoHAsync_init),
  3807. (void*)(&cuMemcpy2D_init),
  3808. (void*)(&cuMemcpy2DUnaligned_init),
  3809. (void*)(&cuMemcpy3D_init),
  3810. (void*)(&cuMemcpyHtoDAsync_init),
  3811. (void*)(&cuMemcpyDtoHAsync_init),
  3812. (void*)(&cuMemcpyDtoDAsync_init),
  3813. (void*)(&cuMemcpy2DAsync_init),
  3814. (void*)(&cuMemcpy3DAsync_init),
  3815. (void*)(&cuMemsetD8_init),
  3816. (void*)(&cuMemsetD16_init),
  3817. (void*)(&cuMemsetD32_init),
  3818. (void*)(&cuMemsetD2D8_init),
  3819. (void*)(&cuMemsetD2D16_init),
  3820. (void*)(&cuMemsetD2D32_init),
  3821. (void*)(&cuArrayCreate_init),
  3822. (void*)(&cuArrayGetDescriptor_init),
  3823. (void*)(&cuArray3DCreate_init),
  3824. (void*)(&cuArray3DGetDescriptor_init),
  3825. (void*)(&cuTexRefSetAddress_init),
  3826. (void*)(&cuTexRefSetAddress2D_init),
  3827. (void*)(&cuTexRefGetAddress_init),
  3828. (void*)(&cuGraphicsResourceGetMappedPointer_init),
  3829. (void*)(&cuCtxDestroy_init),
  3830. (void*)(&cuCtxPopCurrent_init),
  3831. (void*)(&cuCtxPushCurrent_init),
  3832. (void*)(&cuStreamDestroy_init),
  3833. (void*)(&cuEventDestroy_init),
  3834. (void*)(&cuDevicePrimaryCtxRelease_init),
  3835. (void*)(&cuDevicePrimaryCtxReset_init),
  3836. (void*)(&cuDevicePrimaryCtxSetFlags_init),
  3837. (void*)(&cuMemcpyHtoD_v2_init),
  3838. (void*)(&cuMemcpyDtoH_v2_init),
  3839. (void*)(&cuMemcpyDtoD_v2_init),
  3840. (void*)(&cuMemcpyDtoA_v2_init),
  3841. (void*)(&cuMemcpyAtoD_v2_init),
  3842. (void*)(&cuMemcpyHtoA_v2_init),
  3843. (void*)(&cuMemcpyAtoH_v2_init),
  3844. (void*)(&cuMemcpyAtoA_v2_init),
  3845. (void*)(&cuMemcpyHtoAAsync_v2_init),
  3846. (void*)(&cuMemcpyAtoHAsync_v2_init),
  3847. (void*)(&cuMemcpy2D_v2_init),
  3848. (void*)(&cuMemcpy2DUnaligned_v2_init),
  3849. (void*)(&cuMemcpy3D_v2_init),
  3850. (void*)(&cuMemcpyHtoDAsync_v2_init),
  3851. (void*)(&cuMemcpyDtoHAsync_v2_init),
  3852. (void*)(&cuMemcpyDtoDAsync_v2_init),
  3853. (void*)(&cuMemcpy2DAsync_v2_init),
  3854. (void*)(&cuMemcpy3DAsync_v2_init),
  3855. (void*)(&cuMemsetD8_v2_init),
  3856. (void*)(&cuMemsetD16_v2_init),
  3857. (void*)(&cuMemsetD32_v2_init),
  3858. (void*)(&cuMemsetD2D8_v2_init),
  3859. (void*)(&cuMemsetD2D16_v2_init),
  3860. (void*)(&cuMemsetD2D32_v2_init),
  3861. (void*)(&cuMemcpy_init),
  3862. (void*)(&cuMemcpyAsync_init),
  3863. (void*)(&cuMemcpyPeer_init),
  3864. (void*)(&cuMemcpyPeerAsync_init),
  3865. (void*)(&cuMemcpy3DPeer_init),
  3866. (void*)(&cuMemcpy3DPeerAsync_init),
  3867. (void*)(&cuMemsetD8Async_init),
  3868. (void*)(&cuMemsetD16Async_init),
  3869. (void*)(&cuMemsetD32Async_init),
  3870. (void*)(&cuMemsetD2D8Async_init),
  3871. (void*)(&cuMemsetD2D16Async_init),
  3872. (void*)(&cuMemsetD2D32Async_init),
  3873. (void*)(&cuStreamGetPriority_init),
  3874. (void*)(&cuStreamGetFlags_init),
  3875. (void*)(&cuStreamGetCtx_init),
  3876. (void*)(&cuStreamWaitEvent_init),
  3877. (void*)(&cuStreamAddCallback_init),
  3878. (void*)(&cuStreamAttachMemAsync_init),
  3879. (void*)(&cuStreamQuery_init),
  3880. (void*)(&cuStreamSynchronize_init),
  3881. (void*)(&cuEventRecord_init),
  3882. (void*)(&cuEventRecordWithFlags_init),
  3883. (void*)(&cuLaunchKernel_init),
  3884. (void*)(&cuLaunchHostFunc_init),
  3885. (void*)(&cuGraphicsMapResources_init),
  3886. (void*)(&cuGraphicsUnmapResources_init),
  3887. (void*)(&cuStreamWriteValue32_init),
  3888. (void*)(&cuStreamWaitValue32_init),
  3889. (void*)(&cuStreamWriteValue64_init),
  3890. (void*)(&cuStreamWaitValue64_init),
  3891. (void*)(&cuStreamBatchMemOp_init),
  3892. (void*)(&cuMemPrefetchAsync_init),
  3893. (void*)(&cuLaunchCooperativeKernel_init),
  3894. (void*)(&cuSignalExternalSemaphoresAsync_init),
  3895. (void*)(&cuWaitExternalSemaphoresAsync_init),
  3896. (void*)(&cuStreamBeginCapture_init),
  3897. (void*)(&cuStreamBeginCapture_ptsz_init),
  3898. (void*)(&cuStreamBeginCapture_v2_init),
  3899. (void*)(&cuStreamEndCapture_init),
  3900. (void*)(&cuStreamIsCapturing_init),
  3901. (void*)(&cuStreamGetCaptureInfo_init),
  3902. (void*)(&cuStreamGetCaptureInfo_v2_init),
  3903. (void*)(&cuGraphUpload_init),
  3904. (void*)(&cuGraphLaunch_init),
  3905. (void*)(&cuStreamCopyAttributes_init),
  3906. (void*)(&cuStreamGetAttribute_init),
  3907. (void*)(&cuStreamSetAttribute_init),
  3908. (void*)(&cuIpcOpenMemHandle_init),
  3909. (void*)(&cuGraphInstantiate_init),
  3910. (void*)(&cuMemMapArrayAsync_init),
  3911. (void*)(&cuMemFreeAsync_init),
  3912. (void*)(&cuMemAllocAsync_init),
  3913. (void*)(&cuMemAllocFromPoolAsync_init),
  3914. (void*)(&cuStreamUpdateCaptureDependencies_init),
  3915. (void*)(&cuProfilerInitialize_init),
  3916. (void*)(&cuProfilerStart_init),
  3917. (void*)(&cuProfilerStop_init)};
  3918. static void* g_func_table_error[NR_FUNC] = {(void*)(&cuGetErrorString_error),
  3919. (void*)(&cuGetErrorName_error),
  3920. (void*)(&cuInit_error),
  3921. (void*)(&cuDriverGetVersion_error),
  3922. (void*)(&cuDeviceGet_error),
  3923. (void*)(&cuDeviceGetCount_error),
  3924. (void*)(&cuDeviceGetName_error),
  3925. (void*)(&cuDeviceGetUuid_error),
  3926. (void*)(&cuDeviceGetUuid_v2_error),
  3927. (void*)(&cuDeviceGetLuid_error),
  3928. (void*)(&cuDeviceTotalMem_v2_error),
  3929. (void*)(&cuDeviceGetTexture1DLinearMaxWidth_error),
  3930. (void*)(&cuDeviceGetAttribute_error),
  3931. (void*)(&cuDeviceGetNvSciSyncAttributes_error),
  3932. (void*)(&cuDeviceSetMemPool_error),
  3933. (void*)(&cuDeviceGetMemPool_error),
  3934. (void*)(&cuDeviceGetDefaultMemPool_error),
  3935. (void*)(&cuFlushGPUDirectRDMAWrites_error),
  3936. (void*)(&cuDeviceGetProperties_error),
  3937. (void*)(&cuDeviceComputeCapability_error),
  3938. (void*)(&cuDevicePrimaryCtxRetain_error),
  3939. (void*)(&cuDevicePrimaryCtxRelease_v2_error),
  3940. (void*)(&cuDevicePrimaryCtxSetFlags_v2_error),
  3941. (void*)(&cuDevicePrimaryCtxGetState_error),
  3942. (void*)(&cuDevicePrimaryCtxReset_v2_error),
  3943. (void*)(&cuDeviceGetExecAffinitySupport_error),
  3944. (void*)(&cuCtxCreate_v2_error),
  3945. (void*)(&cuCtxCreate_v3_error),
  3946. (void*)(&cuCtxDestroy_v2_error),
  3947. (void*)(&cuCtxPushCurrent_v2_error),
  3948. (void*)(&cuCtxPopCurrent_v2_error),
  3949. (void*)(&cuCtxSetCurrent_error),
  3950. (void*)(&cuCtxGetCurrent_error),
  3951. (void*)(&cuCtxGetDevice_error),
  3952. (void*)(&cuCtxGetFlags_error),
  3953. (void*)(&cuCtxSynchronize_error),
  3954. (void*)(&cuCtxSetLimit_error),
  3955. (void*)(&cuCtxGetLimit_error),
  3956. (void*)(&cuCtxGetCacheConfig_error),
  3957. (void*)(&cuCtxSetCacheConfig_error),
  3958. (void*)(&cuCtxGetSharedMemConfig_error),
  3959. (void*)(&cuCtxSetSharedMemConfig_error),
  3960. (void*)(&cuCtxGetApiVersion_error),
  3961. (void*)(&cuCtxGetStreamPriorityRange_error),
  3962. (void*)(&cuCtxResetPersistingL2Cache_error),
  3963. (void*)(&cuCtxGetExecAffinity_error),
  3964. (void*)(&cuCtxAttach_error),
  3965. (void*)(&cuCtxDetach_error),
  3966. (void*)(&cuModuleLoad_error),
  3967. (void*)(&cuModuleLoadData_error),
  3968. (void*)(&cuModuleLoadDataEx_error),
  3969. (void*)(&cuModuleLoadFatBinary_error),
  3970. (void*)(&cuModuleUnload_error),
  3971. (void*)(&cuModuleGetFunction_error),
  3972. (void*)(&cuModuleGetGlobal_v2_error),
  3973. (void*)(&cuModuleGetTexRef_error),
  3974. (void*)(&cuModuleGetSurfRef_error),
  3975. (void*)(&cuLinkCreate_v2_error),
  3976. (void*)(&cuLinkAddData_v2_error),
  3977. (void*)(&cuLinkAddFile_v2_error),
  3978. (void*)(&cuLinkComplete_error),
  3979. (void*)(&cuLinkDestroy_error),
  3980. (void*)(&cuMemGetInfo_v2_error),
  3981. (void*)(&cuMemAlloc_v2_error),
  3982. (void*)(&cuMemAllocPitch_v2_error),
  3983. (void*)(&cuMemFree_v2_error),
  3984. (void*)(&cuMemGetAddressRange_v2_error),
  3985. (void*)(&cuMemAllocHost_v2_error),
  3986. (void*)(&cuMemFreeHost_error),
  3987. (void*)(&cuMemHostAlloc_error),
  3988. (void*)(&cuMemHostGetDevicePointer_v2_error),
  3989. (void*)(&cuMemHostGetFlags_error),
  3990. (void*)(&cuMemAllocManaged_error),
  3991. (void*)(&cuDeviceGetByPCIBusId_error),
  3992. (void*)(&cuDeviceGetPCIBusId_error),
  3993. (void*)(&cuIpcGetEventHandle_error),
  3994. (void*)(&cuIpcOpenEventHandle_error),
  3995. (void*)(&cuIpcGetMemHandle_error),
  3996. (void*)(&cuIpcOpenMemHandle_v2_error),
  3997. (void*)(&cuIpcCloseMemHandle_error),
  3998. (void*)(&cuMemHostRegister_v2_error),
  3999. (void*)(&cuMemHostUnregister_error),
  4000. (void*)(&cuMemcpy_ptds_error),
  4001. (void*)(&cuMemcpyPeer_ptds_error),
  4002. (void*)(&cuMemcpyHtoD_v2_ptds_error),
  4003. (void*)(&cuMemcpyDtoH_v2_ptds_error),
  4004. (void*)(&cuMemcpyDtoD_v2_ptds_error),
  4005. (void*)(&cuMemcpyDtoA_v2_ptds_error),
  4006. (void*)(&cuMemcpyAtoD_v2_ptds_error),
  4007. (void*)(&cuMemcpyHtoA_v2_ptds_error),
  4008. (void*)(&cuMemcpyAtoH_v2_ptds_error),
  4009. (void*)(&cuMemcpyAtoA_v2_ptds_error),
  4010. (void*)(&cuMemcpy2D_v2_ptds_error),
  4011. (void*)(&cuMemcpy2DUnaligned_v2_ptds_error),
  4012. (void*)(&cuMemcpy3D_v2_ptds_error),
  4013. (void*)(&cuMemcpy3DPeer_ptds_error),
  4014. (void*)(&cuMemcpyAsync_ptsz_error),
  4015. (void*)(&cuMemcpyPeerAsync_ptsz_error),
  4016. (void*)(&cuMemcpyHtoDAsync_v2_ptsz_error),
  4017. (void*)(&cuMemcpyDtoHAsync_v2_ptsz_error),
  4018. (void*)(&cuMemcpyDtoDAsync_v2_ptsz_error),
  4019. (void*)(&cuMemcpyHtoAAsync_v2_ptsz_error),
  4020. (void*)(&cuMemcpyAtoHAsync_v2_ptsz_error),
  4021. (void*)(&cuMemcpy2DAsync_v2_ptsz_error),
  4022. (void*)(&cuMemcpy3DAsync_v2_ptsz_error),
  4023. (void*)(&cuMemcpy3DPeerAsync_ptsz_error),
  4024. (void*)(&cuMemsetD8_v2_ptds_error),
  4025. (void*)(&cuMemsetD16_v2_ptds_error),
  4026. (void*)(&cuMemsetD32_v2_ptds_error),
  4027. (void*)(&cuMemsetD2D8_v2_ptds_error),
  4028. (void*)(&cuMemsetD2D16_v2_ptds_error),
  4029. (void*)(&cuMemsetD2D32_v2_ptds_error),
  4030. (void*)(&cuMemsetD8Async_ptsz_error),
  4031. (void*)(&cuMemsetD16Async_ptsz_error),
  4032. (void*)(&cuMemsetD32Async_ptsz_error),
  4033. (void*)(&cuMemsetD2D8Async_ptsz_error),
  4034. (void*)(&cuMemsetD2D16Async_ptsz_error),
  4035. (void*)(&cuMemsetD2D32Async_ptsz_error),
  4036. (void*)(&cuArrayCreate_v2_error),
  4037. (void*)(&cuArrayGetDescriptor_v2_error),
  4038. (void*)(&cuArrayGetSparseProperties_error),
  4039. (void*)(&cuMipmappedArrayGetSparseProperties_error),
  4040. (void*)(&cuArrayGetPlane_error),
  4041. (void*)(&cuArrayDestroy_error),
  4042. (void*)(&cuArray3DCreate_v2_error),
  4043. (void*)(&cuArray3DGetDescriptor_v2_error),
  4044. (void*)(&cuMipmappedArrayCreate_error),
  4045. (void*)(&cuMipmappedArrayGetLevel_error),
  4046. (void*)(&cuMipmappedArrayDestroy_error),
  4047. (void*)(&cuMemAddressReserve_error),
  4048. (void*)(&cuMemAddressFree_error),
  4049. (void*)(&cuMemCreate_error),
  4050. (void*)(&cuMemRelease_error),
  4051. (void*)(&cuMemMap_error),
  4052. (void*)(&cuMemMapArrayAsync_ptsz_error),
  4053. (void*)(&cuMemUnmap_error),
  4054. (void*)(&cuMemSetAccess_error),
  4055. (void*)(&cuMemGetAccess_error),
  4056. (void*)(&cuMemExportToShareableHandle_error),
  4057. (void*)(&cuMemImportFromShareableHandle_error),
  4058. (void*)(&cuMemGetAllocationGranularity_error),
  4059. (void*)(&cuMemGetAllocationPropertiesFromHandle_error),
  4060. (void*)(&cuMemRetainAllocationHandle_error),
  4061. (void*)(&cuMemFreeAsync_ptsz_error),
  4062. (void*)(&cuMemAllocAsync_ptsz_error),
  4063. (void*)(&cuMemPoolTrimTo_error),
  4064. (void*)(&cuMemPoolSetAttribute_error),
  4065. (void*)(&cuMemPoolGetAttribute_error),
  4066. (void*)(&cuMemPoolSetAccess_error),
  4067. (void*)(&cuMemPoolGetAccess_error),
  4068. (void*)(&cuMemPoolCreate_error),
  4069. (void*)(&cuMemPoolDestroy_error),
  4070. (void*)(&cuMemAllocFromPoolAsync_ptsz_error),
  4071. (void*)(&cuMemPoolExportToShareableHandle_error),
  4072. (void*)(&cuMemPoolImportFromShareableHandle_error),
  4073. (void*)(&cuMemPoolExportPointer_error),
  4074. (void*)(&cuMemPoolImportPointer_error),
  4075. (void*)(&cuPointerGetAttribute_error),
  4076. (void*)(&cuMemPrefetchAsync_ptsz_error),
  4077. (void*)(&cuMemAdvise_error),
  4078. (void*)(&cuMemRangeGetAttribute_error),
  4079. (void*)(&cuMemRangeGetAttributes_error),
  4080. (void*)(&cuPointerSetAttribute_error),
  4081. (void*)(&cuPointerGetAttributes_error),
  4082. (void*)(&cuStreamCreate_error),
  4083. (void*)(&cuStreamCreateWithPriority_error),
  4084. (void*)(&cuStreamGetPriority_ptsz_error),
  4085. (void*)(&cuStreamGetFlags_ptsz_error),
  4086. (void*)(&cuStreamGetCtx_ptsz_error),
  4087. (void*)(&cuStreamWaitEvent_ptsz_error),
  4088. (void*)(&cuStreamAddCallback_ptsz_error),
  4089. (void*)(&cuStreamBeginCapture_v2_ptsz_error),
  4090. (void*)(&cuThreadExchangeStreamCaptureMode_error),
  4091. (void*)(&cuStreamEndCapture_ptsz_error),
  4092. (void*)(&cuStreamIsCapturing_ptsz_error),
  4093. (void*)(&cuStreamGetCaptureInfo_ptsz_error),
  4094. (void*)(&cuStreamGetCaptureInfo_v2_ptsz_error),
  4095. (void*)(&cuStreamUpdateCaptureDependencies_ptsz_error),
  4096. (void*)(&cuStreamAttachMemAsync_ptsz_error),
  4097. (void*)(&cuStreamQuery_ptsz_error),
  4098. (void*)(&cuStreamSynchronize_ptsz_error),
  4099. (void*)(&cuStreamDestroy_v2_error),
  4100. (void*)(&cuStreamCopyAttributes_ptsz_error),
  4101. (void*)(&cuStreamGetAttribute_ptsz_error),
  4102. (void*)(&cuStreamSetAttribute_ptsz_error),
  4103. (void*)(&cuEventCreate_error),
  4104. (void*)(&cuEventRecord_ptsz_error),
  4105. (void*)(&cuEventRecordWithFlags_ptsz_error),
  4106. (void*)(&cuEventQuery_error),
  4107. (void*)(&cuEventSynchronize_error),
  4108. (void*)(&cuEventDestroy_v2_error),
  4109. (void*)(&cuEventElapsedTime_error),
  4110. (void*)(&cuImportExternalMemory_error),
  4111. (void*)(&cuExternalMemoryGetMappedBuffer_error),
  4112. (void*)(&cuExternalMemoryGetMappedMipmappedArray_error),
  4113. (void*)(&cuDestroyExternalMemory_error),
  4114. (void*)(&cuImportExternalSemaphore_error),
  4115. (void*)(&cuSignalExternalSemaphoresAsync_ptsz_error),
  4116. (void*)(&cuWaitExternalSemaphoresAsync_ptsz_error),
  4117. (void*)(&cuDestroyExternalSemaphore_error),
  4118. (void*)(&cuStreamWaitValue32_ptsz_error),
  4119. (void*)(&cuStreamWaitValue64_ptsz_error),
  4120. (void*)(&cuStreamWriteValue32_ptsz_error),
  4121. (void*)(&cuStreamWriteValue64_ptsz_error),
  4122. (void*)(&cuStreamBatchMemOp_ptsz_error),
  4123. (void*)(&cuFuncGetAttribute_error),
  4124. (void*)(&cuFuncSetAttribute_error),
  4125. (void*)(&cuFuncSetCacheConfig_error),
  4126. (void*)(&cuFuncSetSharedMemConfig_error),
  4127. (void*)(&cuFuncGetModule_error),
  4128. (void*)(&cuLaunchKernel_ptsz_error),
  4129. (void*)(&cuLaunchCooperativeKernel_ptsz_error),
  4130. (void*)(&cuLaunchCooperativeKernelMultiDevice_error),
  4131. (void*)(&cuLaunchHostFunc_ptsz_error),
  4132. (void*)(&cuFuncSetBlockShape_error),
  4133. (void*)(&cuFuncSetSharedSize_error),
  4134. (void*)(&cuParamSetSize_error),
  4135. (void*)(&cuParamSeti_error),
  4136. (void*)(&cuParamSetf_error),
  4137. (void*)(&cuParamSetv_error),
  4138. (void*)(&cuLaunch_error),
  4139. (void*)(&cuLaunchGrid_error),
  4140. (void*)(&cuLaunchGridAsync_error),
  4141. (void*)(&cuParamSetTexRef_error),
  4142. (void*)(&cuGraphCreate_error),
  4143. (void*)(&cuGraphAddKernelNode_error),
  4144. (void*)(&cuGraphKernelNodeGetParams_error),
  4145. (void*)(&cuGraphKernelNodeSetParams_error),
  4146. (void*)(&cuGraphAddMemcpyNode_error),
  4147. (void*)(&cuGraphMemcpyNodeGetParams_error),
  4148. (void*)(&cuGraphMemcpyNodeSetParams_error),
  4149. (void*)(&cuGraphAddMemsetNode_error),
  4150. (void*)(&cuGraphMemsetNodeGetParams_error),
  4151. (void*)(&cuGraphMemsetNodeSetParams_error),
  4152. (void*)(&cuGraphAddHostNode_error),
  4153. (void*)(&cuGraphHostNodeGetParams_error),
  4154. (void*)(&cuGraphHostNodeSetParams_error),
  4155. (void*)(&cuGraphAddChildGraphNode_error),
  4156. (void*)(&cuGraphChildGraphNodeGetGraph_error),
  4157. (void*)(&cuGraphAddEmptyNode_error),
  4158. (void*)(&cuGraphAddEventRecordNode_error),
  4159. (void*)(&cuGraphEventRecordNodeGetEvent_error),
  4160. (void*)(&cuGraphEventRecordNodeSetEvent_error),
  4161. (void*)(&cuGraphAddEventWaitNode_error),
  4162. (void*)(&cuGraphEventWaitNodeGetEvent_error),
  4163. (void*)(&cuGraphEventWaitNodeSetEvent_error),
  4164. (void*)(&cuGraphAddExternalSemaphoresSignalNode_error),
  4165. (void*)(&cuGraphExternalSemaphoresSignalNodeGetParams_error),
  4166. (void*)(&cuGraphExternalSemaphoresSignalNodeSetParams_error),
  4167. (void*)(&cuGraphAddExternalSemaphoresWaitNode_error),
  4168. (void*)(&cuGraphExternalSemaphoresWaitNodeGetParams_error),
  4169. (void*)(&cuGraphExternalSemaphoresWaitNodeSetParams_error),
  4170. (void*)(&cuGraphAddMemAllocNode_error),
  4171. (void*)(&cuGraphMemAllocNodeGetParams_error),
  4172. (void*)(&cuGraphAddMemFreeNode_error),
  4173. (void*)(&cuGraphMemFreeNodeGetParams_error),
  4174. (void*)(&cuDeviceGraphMemTrim_error),
  4175. (void*)(&cuDeviceGetGraphMemAttribute_error),
  4176. (void*)(&cuDeviceSetGraphMemAttribute_error),
  4177. (void*)(&cuGraphClone_error),
  4178. (void*)(&cuGraphNodeFindInClone_error),
  4179. (void*)(&cuGraphNodeGetType_error),
  4180. (void*)(&cuGraphGetNodes_error),
  4181. (void*)(&cuGraphGetRootNodes_error),
  4182. (void*)(&cuGraphGetEdges_error),
  4183. (void*)(&cuGraphNodeGetDependencies_error),
  4184. (void*)(&cuGraphNodeGetDependentNodes_error),
  4185. (void*)(&cuGraphAddDependencies_error),
  4186. (void*)(&cuGraphRemoveDependencies_error),
  4187. (void*)(&cuGraphDestroyNode_error),
  4188. (void*)(&cuGraphInstantiate_v2_error),
  4189. (void*)(&cuGraphInstantiateWithFlags_error),
  4190. (void*)(&cuGraphExecKernelNodeSetParams_error),
  4191. (void*)(&cuGraphExecMemcpyNodeSetParams_error),
  4192. (void*)(&cuGraphExecMemsetNodeSetParams_error),
  4193. (void*)(&cuGraphExecHostNodeSetParams_error),
  4194. (void*)(&cuGraphExecChildGraphNodeSetParams_error),
  4195. (void*)(&cuGraphExecEventRecordNodeSetEvent_error),
  4196. (void*)(&cuGraphExecEventWaitNodeSetEvent_error),
  4197. (void*)(&cuGraphExecExternalSemaphoresSignalNodeSetParams_error),
  4198. (void*)(&cuGraphExecExternalSemaphoresWaitNodeSetParams_error),
  4199. (void*)(&cuGraphUpload_ptsz_error),
  4200. (void*)(&cuGraphLaunch_ptsz_error),
  4201. (void*)(&cuGraphExecDestroy_error),
  4202. (void*)(&cuGraphDestroy_error),
  4203. (void*)(&cuGraphExecUpdate_error),
  4204. (void*)(&cuGraphKernelNodeCopyAttributes_error),
  4205. (void*)(&cuGraphKernelNodeGetAttribute_error),
  4206. (void*)(&cuGraphKernelNodeSetAttribute_error),
  4207. (void*)(&cuGraphDebugDotPrint_error),
  4208. (void*)(&cuUserObjectCreate_error),
  4209. (void*)(&cuUserObjectRetain_error),
  4210. (void*)(&cuUserObjectRelease_error),
  4211. (void*)(&cuGraphRetainUserObject_error),
  4212. (void*)(&cuGraphReleaseUserObject_error),
  4213. (void*)(&cuOccupancyMaxActiveBlocksPerMultiprocessor_error),
  4214. (void*)(&cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_error),
  4215. (void*)(&cuOccupancyMaxPotentialBlockSize_error),
  4216. (void*)(&cuOccupancyMaxPotentialBlockSizeWithFlags_error),
  4217. (void*)(&cuOccupancyAvailableDynamicSMemPerBlock_error),
  4218. (void*)(&cuTexRefSetArray_error),
  4219. (void*)(&cuTexRefSetMipmappedArray_error),
  4220. (void*)(&cuTexRefSetAddress_v2_error),
  4221. (void*)(&cuTexRefSetAddress2D_v3_error),
  4222. (void*)(&cuTexRefSetFormat_error),
  4223. (void*)(&cuTexRefSetAddressMode_error),
  4224. (void*)(&cuTexRefSetFilterMode_error),
  4225. (void*)(&cuTexRefSetMipmapFilterMode_error),
  4226. (void*)(&cuTexRefSetMipmapLevelBias_error),
  4227. (void*)(&cuTexRefSetMipmapLevelClamp_error),
  4228. (void*)(&cuTexRefSetMaxAnisotropy_error),
  4229. (void*)(&cuTexRefSetBorderColor_error),
  4230. (void*)(&cuTexRefSetFlags_error),
  4231. (void*)(&cuTexRefGetAddress_v2_error),
  4232. (void*)(&cuTexRefGetArray_error),
  4233. (void*)(&cuTexRefGetMipmappedArray_error),
  4234. (void*)(&cuTexRefGetAddressMode_error),
  4235. (void*)(&cuTexRefGetFilterMode_error),
  4236. (void*)(&cuTexRefGetFormat_error),
  4237. (void*)(&cuTexRefGetMipmapFilterMode_error),
  4238. (void*)(&cuTexRefGetMipmapLevelBias_error),
  4239. (void*)(&cuTexRefGetMipmapLevelClamp_error),
  4240. (void*)(&cuTexRefGetMaxAnisotropy_error),
  4241. (void*)(&cuTexRefGetBorderColor_error),
  4242. (void*)(&cuTexRefGetFlags_error),
  4243. (void*)(&cuTexRefCreate_error),
  4244. (void*)(&cuTexRefDestroy_error),
  4245. (void*)(&cuSurfRefSetArray_error),
  4246. (void*)(&cuSurfRefGetArray_error),
  4247. (void*)(&cuTexObjectCreate_error),
  4248. (void*)(&cuTexObjectDestroy_error),
  4249. (void*)(&cuTexObjectGetResourceDesc_error),
  4250. (void*)(&cuTexObjectGetTextureDesc_error),
  4251. (void*)(&cuTexObjectGetResourceViewDesc_error),
  4252. (void*)(&cuSurfObjectCreate_error),
  4253. (void*)(&cuSurfObjectDestroy_error),
  4254. (void*)(&cuSurfObjectGetResourceDesc_error),
  4255. (void*)(&cuDeviceCanAccessPeer_error),
  4256. (void*)(&cuCtxEnablePeerAccess_error),
  4257. (void*)(&cuCtxDisablePeerAccess_error),
  4258. (void*)(&cuDeviceGetP2PAttribute_error),
  4259. (void*)(&cuGraphicsUnregisterResource_error),
  4260. (void*)(&cuGraphicsSubResourceGetMappedArray_error),
  4261. (void*)(&cuGraphicsResourceGetMappedMipmappedArray_error),
  4262. (void*)(&cuGraphicsResourceGetMappedPointer_v2_error),
  4263. (void*)(&cuGraphicsResourceSetMapFlags_v2_error),
  4264. (void*)(&cuGraphicsMapResources_ptsz_error),
  4265. (void*)(&cuGraphicsUnmapResources_ptsz_error),
  4266. (void*)(&cuGetProcAddress_error),
  4267. (void*)(&cuGetExportTable_error),
  4268. (void*)(&cuMemHostRegister_error),
  4269. (void*)(&cuGraphicsResourceSetMapFlags_error),
  4270. (void*)(&cuLinkCreate_error),
  4271. (void*)(&cuLinkAddData_error),
  4272. (void*)(&cuLinkAddFile_error),
  4273. (void*)(&cuTexRefSetAddress2D_v2_error),
  4274. (void*)(&cuDeviceTotalMem_error),
  4275. (void*)(&cuCtxCreate_error),
  4276. (void*)(&cuModuleGetGlobal_error),
  4277. (void*)(&cuMemGetInfo_error),
  4278. (void*)(&cuMemAlloc_error),
  4279. (void*)(&cuMemAllocPitch_error),
  4280. (void*)(&cuMemFree_error),
  4281. (void*)(&cuMemGetAddressRange_error),
  4282. (void*)(&cuMemAllocHost_error),
  4283. (void*)(&cuMemHostGetDevicePointer_error),
  4284. (void*)(&cuMemcpyHtoD_error),
  4285. (void*)(&cuMemcpyDtoH_error),
  4286. (void*)(&cuMemcpyDtoD_error),
  4287. (void*)(&cuMemcpyDtoA_error),
  4288. (void*)(&cuMemcpyAtoD_error),
  4289. (void*)(&cuMemcpyHtoA_error),
  4290. (void*)(&cuMemcpyAtoH_error),
  4291. (void*)(&cuMemcpyAtoA_error),
  4292. (void*)(&cuMemcpyHtoAAsync_error),
  4293. (void*)(&cuMemcpyAtoHAsync_error),
  4294. (void*)(&cuMemcpy2D_error),
  4295. (void*)(&cuMemcpy2DUnaligned_error),
  4296. (void*)(&cuMemcpy3D_error),
  4297. (void*)(&cuMemcpyHtoDAsync_error),
  4298. (void*)(&cuMemcpyDtoHAsync_error),
  4299. (void*)(&cuMemcpyDtoDAsync_error),
  4300. (void*)(&cuMemcpy2DAsync_error),
  4301. (void*)(&cuMemcpy3DAsync_error),
  4302. (void*)(&cuMemsetD8_error),
  4303. (void*)(&cuMemsetD16_error),
  4304. (void*)(&cuMemsetD32_error),
  4305. (void*)(&cuMemsetD2D8_error),
  4306. (void*)(&cuMemsetD2D16_error),
  4307. (void*)(&cuMemsetD2D32_error),
  4308. (void*)(&cuArrayCreate_error),
  4309. (void*)(&cuArrayGetDescriptor_error),
  4310. (void*)(&cuArray3DCreate_error),
  4311. (void*)(&cuArray3DGetDescriptor_error),
  4312. (void*)(&cuTexRefSetAddress_error),
  4313. (void*)(&cuTexRefSetAddress2D_error),
  4314. (void*)(&cuTexRefGetAddress_error),
  4315. (void*)(&cuGraphicsResourceGetMappedPointer_error),
  4316. (void*)(&cuCtxDestroy_error),
  4317. (void*)(&cuCtxPopCurrent_error),
  4318. (void*)(&cuCtxPushCurrent_error),
  4319. (void*)(&cuStreamDestroy_error),
  4320. (void*)(&cuEventDestroy_error),
  4321. (void*)(&cuDevicePrimaryCtxRelease_error),
  4322. (void*)(&cuDevicePrimaryCtxReset_error),
  4323. (void*)(&cuDevicePrimaryCtxSetFlags_error),
  4324. (void*)(&cuMemcpyHtoD_v2_error),
  4325. (void*)(&cuMemcpyDtoH_v2_error),
  4326. (void*)(&cuMemcpyDtoD_v2_error),
  4327. (void*)(&cuMemcpyDtoA_v2_error),
  4328. (void*)(&cuMemcpyAtoD_v2_error),
  4329. (void*)(&cuMemcpyHtoA_v2_error),
  4330. (void*)(&cuMemcpyAtoH_v2_error),
  4331. (void*)(&cuMemcpyAtoA_v2_error),
  4332. (void*)(&cuMemcpyHtoAAsync_v2_error),
  4333. (void*)(&cuMemcpyAtoHAsync_v2_error),
  4334. (void*)(&cuMemcpy2D_v2_error),
  4335. (void*)(&cuMemcpy2DUnaligned_v2_error),
  4336. (void*)(&cuMemcpy3D_v2_error),
  4337. (void*)(&cuMemcpyHtoDAsync_v2_error),
  4338. (void*)(&cuMemcpyDtoHAsync_v2_error),
  4339. (void*)(&cuMemcpyDtoDAsync_v2_error),
  4340. (void*)(&cuMemcpy2DAsync_v2_error),
  4341. (void*)(&cuMemcpy3DAsync_v2_error),
  4342. (void*)(&cuMemsetD8_v2_error),
  4343. (void*)(&cuMemsetD16_v2_error),
  4344. (void*)(&cuMemsetD32_v2_error),
  4345. (void*)(&cuMemsetD2D8_v2_error),
  4346. (void*)(&cuMemsetD2D16_v2_error),
  4347. (void*)(&cuMemsetD2D32_v2_error),
  4348. (void*)(&cuMemcpy_error),
  4349. (void*)(&cuMemcpyAsync_error),
  4350. (void*)(&cuMemcpyPeer_error),
  4351. (void*)(&cuMemcpyPeerAsync_error),
  4352. (void*)(&cuMemcpy3DPeer_error),
  4353. (void*)(&cuMemcpy3DPeerAsync_error),
  4354. (void*)(&cuMemsetD8Async_error),
  4355. (void*)(&cuMemsetD16Async_error),
  4356. (void*)(&cuMemsetD32Async_error),
  4357. (void*)(&cuMemsetD2D8Async_error),
  4358. (void*)(&cuMemsetD2D16Async_error),
  4359. (void*)(&cuMemsetD2D32Async_error),
  4360. (void*)(&cuStreamGetPriority_error),
  4361. (void*)(&cuStreamGetFlags_error),
  4362. (void*)(&cuStreamGetCtx_error),
  4363. (void*)(&cuStreamWaitEvent_error),
  4364. (void*)(&cuStreamAddCallback_error),
  4365. (void*)(&cuStreamAttachMemAsync_error),
  4366. (void*)(&cuStreamQuery_error),
  4367. (void*)(&cuStreamSynchronize_error),
  4368. (void*)(&cuEventRecord_error),
  4369. (void*)(&cuEventRecordWithFlags_error),
  4370. (void*)(&cuLaunchKernel_error),
  4371. (void*)(&cuLaunchHostFunc_error),
  4372. (void*)(&cuGraphicsMapResources_error),
  4373. (void*)(&cuGraphicsUnmapResources_error),
  4374. (void*)(&cuStreamWriteValue32_error),
  4375. (void*)(&cuStreamWaitValue32_error),
  4376. (void*)(&cuStreamWriteValue64_error),
  4377. (void*)(&cuStreamWaitValue64_error),
  4378. (void*)(&cuStreamBatchMemOp_error),
  4379. (void*)(&cuMemPrefetchAsync_error),
  4380. (void*)(&cuLaunchCooperativeKernel_error),
  4381. (void*)(&cuSignalExternalSemaphoresAsync_error),
  4382. (void*)(&cuWaitExternalSemaphoresAsync_error),
  4383. (void*)(&cuStreamBeginCapture_error),
  4384. (void*)(&cuStreamBeginCapture_ptsz_error),
  4385. (void*)(&cuStreamBeginCapture_v2_error),
  4386. (void*)(&cuStreamEndCapture_error),
  4387. (void*)(&cuStreamIsCapturing_error),
  4388. (void*)(&cuStreamGetCaptureInfo_error),
  4389. (void*)(&cuStreamGetCaptureInfo_v2_error),
  4390. (void*)(&cuGraphUpload_error),
  4391. (void*)(&cuGraphLaunch_error),
  4392. (void*)(&cuStreamCopyAttributes_error),
  4393. (void*)(&cuStreamGetAttribute_error),
  4394. (void*)(&cuStreamSetAttribute_error),
  4395. (void*)(&cuIpcOpenMemHandle_error),
  4396. (void*)(&cuGraphInstantiate_error),
  4397. (void*)(&cuMemMapArrayAsync_error),
  4398. (void*)(&cuMemFreeAsync_error),
  4399. (void*)(&cuMemAllocAsync_error),
  4400. (void*)(&cuMemAllocFromPoolAsync_error),
  4401. (void*)(&cuStreamUpdateCaptureDependencies_error),
  4402. (void*)(&cuProfilerInitialize_error),
  4403. (void*)(&cuProfilerStart_error),
  4404. (void*)(&cuProfilerStop_error)};
  4405. static const char* const g_func_name[NR_FUNC] = {"cuGetErrorString",
  4406. "cuGetErrorName",
  4407. "cuInit",
  4408. "cuDriverGetVersion",
  4409. "cuDeviceGet",
  4410. "cuDeviceGetCount",
  4411. "cuDeviceGetName",
  4412. "cuDeviceGetUuid",
  4413. "cuDeviceGetUuid_v2",
  4414. "cuDeviceGetLuid",
  4415. "cuDeviceTotalMem_v2",
  4416. "cuDeviceGetTexture1DLinearMaxWidth",
  4417. "cuDeviceGetAttribute",
  4418. "cuDeviceGetNvSciSyncAttributes",
  4419. "cuDeviceSetMemPool",
  4420. "cuDeviceGetMemPool",
  4421. "cuDeviceGetDefaultMemPool",
  4422. "cuFlushGPUDirectRDMAWrites",
  4423. "cuDeviceGetProperties",
  4424. "cuDeviceComputeCapability",
  4425. "cuDevicePrimaryCtxRetain",
  4426. "cuDevicePrimaryCtxRelease_v2",
  4427. "cuDevicePrimaryCtxSetFlags_v2",
  4428. "cuDevicePrimaryCtxGetState",
  4429. "cuDevicePrimaryCtxReset_v2",
  4430. "cuDeviceGetExecAffinitySupport",
  4431. "cuCtxCreate_v2",
  4432. "cuCtxCreate_v3",
  4433. "cuCtxDestroy_v2",
  4434. "cuCtxPushCurrent_v2",
  4435. "cuCtxPopCurrent_v2",
  4436. "cuCtxSetCurrent",
  4437. "cuCtxGetCurrent",
  4438. "cuCtxGetDevice",
  4439. "cuCtxGetFlags",
  4440. "cuCtxSynchronize",
  4441. "cuCtxSetLimit",
  4442. "cuCtxGetLimit",
  4443. "cuCtxGetCacheConfig",
  4444. "cuCtxSetCacheConfig",
  4445. "cuCtxGetSharedMemConfig",
  4446. "cuCtxSetSharedMemConfig",
  4447. "cuCtxGetApiVersion",
  4448. "cuCtxGetStreamPriorityRange",
  4449. "cuCtxResetPersistingL2Cache",
  4450. "cuCtxGetExecAffinity",
  4451. "cuCtxAttach",
  4452. "cuCtxDetach",
  4453. "cuModuleLoad",
  4454. "cuModuleLoadData",
  4455. "cuModuleLoadDataEx",
  4456. "cuModuleLoadFatBinary",
  4457. "cuModuleUnload",
  4458. "cuModuleGetFunction",
  4459. "cuModuleGetGlobal_v2",
  4460. "cuModuleGetTexRef",
  4461. "cuModuleGetSurfRef",
  4462. "cuLinkCreate_v2",
  4463. "cuLinkAddData_v2",
  4464. "cuLinkAddFile_v2",
  4465. "cuLinkComplete",
  4466. "cuLinkDestroy",
  4467. "cuMemGetInfo_v2",
  4468. "cuMemAlloc_v2",
  4469. "cuMemAllocPitch_v2",
  4470. "cuMemFree_v2",
  4471. "cuMemGetAddressRange_v2",
  4472. "cuMemAllocHost_v2",
  4473. "cuMemFreeHost",
  4474. "cuMemHostAlloc",
  4475. "cuMemHostGetDevicePointer_v2",
  4476. "cuMemHostGetFlags",
  4477. "cuMemAllocManaged",
  4478. "cuDeviceGetByPCIBusId",
  4479. "cuDeviceGetPCIBusId",
  4480. "cuIpcGetEventHandle",
  4481. "cuIpcOpenEventHandle",
  4482. "cuIpcGetMemHandle",
  4483. "cuIpcOpenMemHandle_v2",
  4484. "cuIpcCloseMemHandle",
  4485. "cuMemHostRegister_v2",
  4486. "cuMemHostUnregister",
  4487. "cuMemcpy_ptds",
  4488. "cuMemcpyPeer_ptds",
  4489. "cuMemcpyHtoD_v2_ptds",
  4490. "cuMemcpyDtoH_v2_ptds",
  4491. "cuMemcpyDtoD_v2_ptds",
  4492. "cuMemcpyDtoA_v2_ptds",
  4493. "cuMemcpyAtoD_v2_ptds",
  4494. "cuMemcpyHtoA_v2_ptds",
  4495. "cuMemcpyAtoH_v2_ptds",
  4496. "cuMemcpyAtoA_v2_ptds",
  4497. "cuMemcpy2D_v2_ptds",
  4498. "cuMemcpy2DUnaligned_v2_ptds",
  4499. "cuMemcpy3D_v2_ptds",
  4500. "cuMemcpy3DPeer_ptds",
  4501. "cuMemcpyAsync_ptsz",
  4502. "cuMemcpyPeerAsync_ptsz",
  4503. "cuMemcpyHtoDAsync_v2_ptsz",
  4504. "cuMemcpyDtoHAsync_v2_ptsz",
  4505. "cuMemcpyDtoDAsync_v2_ptsz",
  4506. "cuMemcpyHtoAAsync_v2_ptsz",
  4507. "cuMemcpyAtoHAsync_v2_ptsz",
  4508. "cuMemcpy2DAsync_v2_ptsz",
  4509. "cuMemcpy3DAsync_v2_ptsz",
  4510. "cuMemcpy3DPeerAsync_ptsz",
  4511. "cuMemsetD8_v2_ptds",
  4512. "cuMemsetD16_v2_ptds",
  4513. "cuMemsetD32_v2_ptds",
  4514. "cuMemsetD2D8_v2_ptds",
  4515. "cuMemsetD2D16_v2_ptds",
  4516. "cuMemsetD2D32_v2_ptds",
  4517. "cuMemsetD8Async_ptsz",
  4518. "cuMemsetD16Async_ptsz",
  4519. "cuMemsetD32Async_ptsz",
  4520. "cuMemsetD2D8Async_ptsz",
  4521. "cuMemsetD2D16Async_ptsz",
  4522. "cuMemsetD2D32Async_ptsz",
  4523. "cuArrayCreate_v2",
  4524. "cuArrayGetDescriptor_v2",
  4525. "cuArrayGetSparseProperties",
  4526. "cuMipmappedArrayGetSparseProperties",
  4527. "cuArrayGetPlane",
  4528. "cuArrayDestroy",
  4529. "cuArray3DCreate_v2",
  4530. "cuArray3DGetDescriptor_v2",
  4531. "cuMipmappedArrayCreate",
  4532. "cuMipmappedArrayGetLevel",
  4533. "cuMipmappedArrayDestroy",
  4534. "cuMemAddressReserve",
  4535. "cuMemAddressFree",
  4536. "cuMemCreate",
  4537. "cuMemRelease",
  4538. "cuMemMap",
  4539. "cuMemMapArrayAsync_ptsz",
  4540. "cuMemUnmap",
  4541. "cuMemSetAccess",
  4542. "cuMemGetAccess",
  4543. "cuMemExportToShareableHandle",
  4544. "cuMemImportFromShareableHandle",
  4545. "cuMemGetAllocationGranularity",
  4546. "cuMemGetAllocationPropertiesFromHandle",
  4547. "cuMemRetainAllocationHandle",
  4548. "cuMemFreeAsync_ptsz",
  4549. "cuMemAllocAsync_ptsz",
  4550. "cuMemPoolTrimTo",
  4551. "cuMemPoolSetAttribute",
  4552. "cuMemPoolGetAttribute",
  4553. "cuMemPoolSetAccess",
  4554. "cuMemPoolGetAccess",
  4555. "cuMemPoolCreate",
  4556. "cuMemPoolDestroy",
  4557. "cuMemAllocFromPoolAsync_ptsz",
  4558. "cuMemPoolExportToShareableHandle",
  4559. "cuMemPoolImportFromShareableHandle",
  4560. "cuMemPoolExportPointer",
  4561. "cuMemPoolImportPointer",
  4562. "cuPointerGetAttribute",
  4563. "cuMemPrefetchAsync_ptsz",
  4564. "cuMemAdvise",
  4565. "cuMemRangeGetAttribute",
  4566. "cuMemRangeGetAttributes",
  4567. "cuPointerSetAttribute",
  4568. "cuPointerGetAttributes",
  4569. "cuStreamCreate",
  4570. "cuStreamCreateWithPriority",
  4571. "cuStreamGetPriority_ptsz",
  4572. "cuStreamGetFlags_ptsz",
  4573. "cuStreamGetCtx_ptsz",
  4574. "cuStreamWaitEvent_ptsz",
  4575. "cuStreamAddCallback_ptsz",
  4576. "cuStreamBeginCapture_v2_ptsz",
  4577. "cuThreadExchangeStreamCaptureMode",
  4578. "cuStreamEndCapture_ptsz",
  4579. "cuStreamIsCapturing_ptsz",
  4580. "cuStreamGetCaptureInfo_ptsz",
  4581. "cuStreamGetCaptureInfo_v2_ptsz",
  4582. "cuStreamUpdateCaptureDependencies_ptsz",
  4583. "cuStreamAttachMemAsync_ptsz",
  4584. "cuStreamQuery_ptsz",
  4585. "cuStreamSynchronize_ptsz",
  4586. "cuStreamDestroy_v2",
  4587. "cuStreamCopyAttributes_ptsz",
  4588. "cuStreamGetAttribute_ptsz",
  4589. "cuStreamSetAttribute_ptsz",
  4590. "cuEventCreate",
  4591. "cuEventRecord_ptsz",
  4592. "cuEventRecordWithFlags_ptsz",
  4593. "cuEventQuery",
  4594. "cuEventSynchronize",
  4595. "cuEventDestroy_v2",
  4596. "cuEventElapsedTime",
  4597. "cuImportExternalMemory",
  4598. "cuExternalMemoryGetMappedBuffer",
  4599. "cuExternalMemoryGetMappedMipmappedArray",
  4600. "cuDestroyExternalMemory",
  4601. "cuImportExternalSemaphore",
  4602. "cuSignalExternalSemaphoresAsync_ptsz",
  4603. "cuWaitExternalSemaphoresAsync_ptsz",
  4604. "cuDestroyExternalSemaphore",
  4605. "cuStreamWaitValue32_ptsz",
  4606. "cuStreamWaitValue64_ptsz",
  4607. "cuStreamWriteValue32_ptsz",
  4608. "cuStreamWriteValue64_ptsz",
  4609. "cuStreamBatchMemOp_ptsz",
  4610. "cuFuncGetAttribute",
  4611. "cuFuncSetAttribute",
  4612. "cuFuncSetCacheConfig",
  4613. "cuFuncSetSharedMemConfig",
  4614. "cuFuncGetModule",
  4615. "cuLaunchKernel_ptsz",
  4616. "cuLaunchCooperativeKernel_ptsz",
  4617. "cuLaunchCooperativeKernelMultiDevice",
  4618. "cuLaunchHostFunc_ptsz",
  4619. "cuFuncSetBlockShape",
  4620. "cuFuncSetSharedSize",
  4621. "cuParamSetSize",
  4622. "cuParamSeti",
  4623. "cuParamSetf",
  4624. "cuParamSetv",
  4625. "cuLaunch",
  4626. "cuLaunchGrid",
  4627. "cuLaunchGridAsync",
  4628. "cuParamSetTexRef",
  4629. "cuGraphCreate",
  4630. "cuGraphAddKernelNode",
  4631. "cuGraphKernelNodeGetParams",
  4632. "cuGraphKernelNodeSetParams",
  4633. "cuGraphAddMemcpyNode",
  4634. "cuGraphMemcpyNodeGetParams",
  4635. "cuGraphMemcpyNodeSetParams",
  4636. "cuGraphAddMemsetNode",
  4637. "cuGraphMemsetNodeGetParams",
  4638. "cuGraphMemsetNodeSetParams",
  4639. "cuGraphAddHostNode",
  4640. "cuGraphHostNodeGetParams",
  4641. "cuGraphHostNodeSetParams",
  4642. "cuGraphAddChildGraphNode",
  4643. "cuGraphChildGraphNodeGetGraph",
  4644. "cuGraphAddEmptyNode",
  4645. "cuGraphAddEventRecordNode",
  4646. "cuGraphEventRecordNodeGetEvent",
  4647. "cuGraphEventRecordNodeSetEvent",
  4648. "cuGraphAddEventWaitNode",
  4649. "cuGraphEventWaitNodeGetEvent",
  4650. "cuGraphEventWaitNodeSetEvent",
  4651. "cuGraphAddExternalSemaphoresSignalNode",
  4652. "cuGraphExternalSemaphoresSignalNodeGetParams",
  4653. "cuGraphExternalSemaphoresSignalNodeSetParams",
  4654. "cuGraphAddExternalSemaphoresWaitNode",
  4655. "cuGraphExternalSemaphoresWaitNodeGetParams",
  4656. "cuGraphExternalSemaphoresWaitNodeSetParams",
  4657. "cuGraphAddMemAllocNode",
  4658. "cuGraphMemAllocNodeGetParams",
  4659. "cuGraphAddMemFreeNode",
  4660. "cuGraphMemFreeNodeGetParams",
  4661. "cuDeviceGraphMemTrim",
  4662. "cuDeviceGetGraphMemAttribute",
  4663. "cuDeviceSetGraphMemAttribute",
  4664. "cuGraphClone",
  4665. "cuGraphNodeFindInClone",
  4666. "cuGraphNodeGetType",
  4667. "cuGraphGetNodes",
  4668. "cuGraphGetRootNodes",
  4669. "cuGraphGetEdges",
  4670. "cuGraphNodeGetDependencies",
  4671. "cuGraphNodeGetDependentNodes",
  4672. "cuGraphAddDependencies",
  4673. "cuGraphRemoveDependencies",
  4674. "cuGraphDestroyNode",
  4675. "cuGraphInstantiate_v2",
  4676. "cuGraphInstantiateWithFlags",
  4677. "cuGraphExecKernelNodeSetParams",
  4678. "cuGraphExecMemcpyNodeSetParams",
  4679. "cuGraphExecMemsetNodeSetParams",
  4680. "cuGraphExecHostNodeSetParams",
  4681. "cuGraphExecChildGraphNodeSetParams",
  4682. "cuGraphExecEventRecordNodeSetEvent",
  4683. "cuGraphExecEventWaitNodeSetEvent",
  4684. "cuGraphExecExternalSemaphoresSignalNodeSetParams",
  4685. "cuGraphExecExternalSemaphoresWaitNodeSetParams",
  4686. "cuGraphUpload_ptsz",
  4687. "cuGraphLaunch_ptsz",
  4688. "cuGraphExecDestroy",
  4689. "cuGraphDestroy",
  4690. "cuGraphExecUpdate",
  4691. "cuGraphKernelNodeCopyAttributes",
  4692. "cuGraphKernelNodeGetAttribute",
  4693. "cuGraphKernelNodeSetAttribute",
  4694. "cuGraphDebugDotPrint",
  4695. "cuUserObjectCreate",
  4696. "cuUserObjectRetain",
  4697. "cuUserObjectRelease",
  4698. "cuGraphRetainUserObject",
  4699. "cuGraphReleaseUserObject",
  4700. "cuOccupancyMaxActiveBlocksPerMultiprocessor",
  4701. "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags",
  4702. "cuOccupancyMaxPotentialBlockSize",
  4703. "cuOccupancyMaxPotentialBlockSizeWithFlags",
  4704. "cuOccupancyAvailableDynamicSMemPerBlock",
  4705. "cuTexRefSetArray",
  4706. "cuTexRefSetMipmappedArray",
  4707. "cuTexRefSetAddress_v2",
  4708. "cuTexRefSetAddress2D_v3",
  4709. "cuTexRefSetFormat",
  4710. "cuTexRefSetAddressMode",
  4711. "cuTexRefSetFilterMode",
  4712. "cuTexRefSetMipmapFilterMode",
  4713. "cuTexRefSetMipmapLevelBias",
  4714. "cuTexRefSetMipmapLevelClamp",
  4715. "cuTexRefSetMaxAnisotropy",
  4716. "cuTexRefSetBorderColor",
  4717. "cuTexRefSetFlags",
  4718. "cuTexRefGetAddress_v2",
  4719. "cuTexRefGetArray",
  4720. "cuTexRefGetMipmappedArray",
  4721. "cuTexRefGetAddressMode",
  4722. "cuTexRefGetFilterMode",
  4723. "cuTexRefGetFormat",
  4724. "cuTexRefGetMipmapFilterMode",
  4725. "cuTexRefGetMipmapLevelBias",
  4726. "cuTexRefGetMipmapLevelClamp",
  4727. "cuTexRefGetMaxAnisotropy",
  4728. "cuTexRefGetBorderColor",
  4729. "cuTexRefGetFlags",
  4730. "cuTexRefCreate",
  4731. "cuTexRefDestroy",
  4732. "cuSurfRefSetArray",
  4733. "cuSurfRefGetArray",
  4734. "cuTexObjectCreate",
  4735. "cuTexObjectDestroy",
  4736. "cuTexObjectGetResourceDesc",
  4737. "cuTexObjectGetTextureDesc",
  4738. "cuTexObjectGetResourceViewDesc",
  4739. "cuSurfObjectCreate",
  4740. "cuSurfObjectDestroy",
  4741. "cuSurfObjectGetResourceDesc",
  4742. "cuDeviceCanAccessPeer",
  4743. "cuCtxEnablePeerAccess",
  4744. "cuCtxDisablePeerAccess",
  4745. "cuDeviceGetP2PAttribute",
  4746. "cuGraphicsUnregisterResource",
  4747. "cuGraphicsSubResourceGetMappedArray",
  4748. "cuGraphicsResourceGetMappedMipmappedArray",
  4749. "cuGraphicsResourceGetMappedPointer_v2",
  4750. "cuGraphicsResourceSetMapFlags_v2",
  4751. "cuGraphicsMapResources_ptsz",
  4752. "cuGraphicsUnmapResources_ptsz",
  4753. "cuGetProcAddress",
  4754. "cuGetExportTable",
  4755. "cuMemHostRegister",
  4756. "cuGraphicsResourceSetMapFlags",
  4757. "cuLinkCreate",
  4758. "cuLinkAddData",
  4759. "cuLinkAddFile",
  4760. "cuTexRefSetAddress2D_v2",
  4761. "cuDeviceTotalMem",
  4762. "cuCtxCreate",
  4763. "cuModuleGetGlobal",
  4764. "cuMemGetInfo",
  4765. "cuMemAlloc",
  4766. "cuMemAllocPitch",
  4767. "cuMemFree",
  4768. "cuMemGetAddressRange",
  4769. "cuMemAllocHost",
  4770. "cuMemHostGetDevicePointer",
  4771. "cuMemcpyHtoD",
  4772. "cuMemcpyDtoH",
  4773. "cuMemcpyDtoD",
  4774. "cuMemcpyDtoA",
  4775. "cuMemcpyAtoD",
  4776. "cuMemcpyHtoA",
  4777. "cuMemcpyAtoH",
  4778. "cuMemcpyAtoA",
  4779. "cuMemcpyHtoAAsync",
  4780. "cuMemcpyAtoHAsync",
  4781. "cuMemcpy2D",
  4782. "cuMemcpy2DUnaligned",
  4783. "cuMemcpy3D",
  4784. "cuMemcpyHtoDAsync",
  4785. "cuMemcpyDtoHAsync",
  4786. "cuMemcpyDtoDAsync",
  4787. "cuMemcpy2DAsync",
  4788. "cuMemcpy3DAsync",
  4789. "cuMemsetD8",
  4790. "cuMemsetD16",
  4791. "cuMemsetD32",
  4792. "cuMemsetD2D8",
  4793. "cuMemsetD2D16",
  4794. "cuMemsetD2D32",
  4795. "cuArrayCreate",
  4796. "cuArrayGetDescriptor",
  4797. "cuArray3DCreate",
  4798. "cuArray3DGetDescriptor",
  4799. "cuTexRefSetAddress",
  4800. "cuTexRefSetAddress2D",
  4801. "cuTexRefGetAddress",
  4802. "cuGraphicsResourceGetMappedPointer",
  4803. "cuCtxDestroy",
  4804. "cuCtxPopCurrent",
  4805. "cuCtxPushCurrent",
  4806. "cuStreamDestroy",
  4807. "cuEventDestroy",
  4808. "cuDevicePrimaryCtxRelease",
  4809. "cuDevicePrimaryCtxReset",
  4810. "cuDevicePrimaryCtxSetFlags",
  4811. "cuMemcpyHtoD_v2",
  4812. "cuMemcpyDtoH_v2",
  4813. "cuMemcpyDtoD_v2",
  4814. "cuMemcpyDtoA_v2",
  4815. "cuMemcpyAtoD_v2",
  4816. "cuMemcpyHtoA_v2",
  4817. "cuMemcpyAtoH_v2",
  4818. "cuMemcpyAtoA_v2",
  4819. "cuMemcpyHtoAAsync_v2",
  4820. "cuMemcpyAtoHAsync_v2",
  4821. "cuMemcpy2D_v2",
  4822. "cuMemcpy2DUnaligned_v2",
  4823. "cuMemcpy3D_v2",
  4824. "cuMemcpyHtoDAsync_v2",
  4825. "cuMemcpyDtoHAsync_v2",
  4826. "cuMemcpyDtoDAsync_v2",
  4827. "cuMemcpy2DAsync_v2",
  4828. "cuMemcpy3DAsync_v2",
  4829. "cuMemsetD8_v2",
  4830. "cuMemsetD16_v2",
  4831. "cuMemsetD32_v2",
  4832. "cuMemsetD2D8_v2",
  4833. "cuMemsetD2D16_v2",
  4834. "cuMemsetD2D32_v2",
  4835. "cuMemcpy",
  4836. "cuMemcpyAsync",
  4837. "cuMemcpyPeer",
  4838. "cuMemcpyPeerAsync",
  4839. "cuMemcpy3DPeer",
  4840. "cuMemcpy3DPeerAsync",
  4841. "cuMemsetD8Async",
  4842. "cuMemsetD16Async",
  4843. "cuMemsetD32Async",
  4844. "cuMemsetD2D8Async",
  4845. "cuMemsetD2D16Async",
  4846. "cuMemsetD2D32Async",
  4847. "cuStreamGetPriority",
  4848. "cuStreamGetFlags",
  4849. "cuStreamGetCtx",
  4850. "cuStreamWaitEvent",
  4851. "cuStreamAddCallback",
  4852. "cuStreamAttachMemAsync",
  4853. "cuStreamQuery",
  4854. "cuStreamSynchronize",
  4855. "cuEventRecord",
  4856. "cuEventRecordWithFlags",
  4857. "cuLaunchKernel",
  4858. "cuLaunchHostFunc",
  4859. "cuGraphicsMapResources",
  4860. "cuGraphicsUnmapResources",
  4861. "cuStreamWriteValue32",
  4862. "cuStreamWaitValue32",
  4863. "cuStreamWriteValue64",
  4864. "cuStreamWaitValue64",
  4865. "cuStreamBatchMemOp",
  4866. "cuMemPrefetchAsync",
  4867. "cuLaunchCooperativeKernel",
  4868. "cuSignalExternalSemaphoresAsync",
  4869. "cuWaitExternalSemaphoresAsync",
  4870. "cuStreamBeginCapture",
  4871. "cuStreamBeginCapture_ptsz",
  4872. "cuStreamBeginCapture_v2",
  4873. "cuStreamEndCapture",
  4874. "cuStreamIsCapturing",
  4875. "cuStreamGetCaptureInfo",
  4876. "cuStreamGetCaptureInfo_v2",
  4877. "cuGraphUpload",
  4878. "cuGraphLaunch",
  4879. "cuStreamCopyAttributes",
  4880. "cuStreamGetAttribute",
  4881. "cuStreamSetAttribute",
  4882. "cuIpcOpenMemHandle",
  4883. "cuGraphInstantiate",
  4884. "cuMemMapArrayAsync",
  4885. "cuMemFreeAsync",
  4886. "cuMemAllocAsync",
  4887. "cuMemAllocFromPoolAsync",
  4888. "cuStreamUpdateCaptureDependencies",
  4889. "cuProfilerInitialize",
  4890. "cuProfilerStart",
  4891. "cuProfilerStop"};
  4892. static void load_library() {
  4893. static bool done = false;
  4894. static std::mutex mtx;
  4895. std::lock_guard<std::mutex> lg{mtx};
  4896. if (done)
  4897. return;
  4898. void* handle = get_library_handle();
  4899. for (size_t i = 0; i < NR_FUNC; ++i) {
  4900. void* func;
  4901. if (!handle) {
  4902. func = nullptr;
  4903. } else {
  4904. func = resolve_library_func(handle, g_func_name[i]);
  4905. }
  4906. if (!func) {
  4907. func = g_func_table_error[i];
  4908. }
  4909. __atomic_store_n(g_func_table + i, func, __ATOMIC_RELAXED);
  4910. }
  4911. done = true;
  4912. }
  4913. CUresult _WRAPLIB_API_CALL cuGetErrorString(CUresult arg0, const char **arg1) {
  4914. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUresult, const char **);
  4915. ON_ENTRY(cuGetErrorString);
  4916. f_ptr_t f = (f_ptr_t)(g_func_table[0]);
  4917. return f(arg0, arg1);
  4918. }
  4919. CUresult _WRAPLIB_API_CALL cuGetErrorName(CUresult arg0, const char **arg1) {
  4920. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUresult, const char **);
  4921. ON_ENTRY(cuGetErrorName);
  4922. f_ptr_t f = (f_ptr_t)(g_func_table[1]);
  4923. return f(arg0, arg1);
  4924. }
  4925. CUresult _WRAPLIB_API_CALL cuInit(unsigned int arg0) {
  4926. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int);
  4927. ON_ENTRY(cuInit);
  4928. f_ptr_t f = (f_ptr_t)(g_func_table[2]);
  4929. return f(arg0);
  4930. }
  4931. CUresult _WRAPLIB_API_CALL cuDriverGetVersion(int *arg0) {
  4932. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *);
  4933. ON_ENTRY(cuDriverGetVersion);
  4934. f_ptr_t f = (f_ptr_t)(g_func_table[3]);
  4935. return f(arg0);
  4936. }
  4937. CUresult _WRAPLIB_API_CALL cuDeviceGet(CUdevice *arg0, int arg1) {
  4938. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice *, int);
  4939. ON_ENTRY(cuDeviceGet);
  4940. f_ptr_t f = (f_ptr_t)(g_func_table[4]);
  4941. return f(arg0, arg1);
  4942. }
  4943. CUresult _WRAPLIB_API_CALL cuDeviceGetCount(int *arg0) {
  4944. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *);
  4945. ON_ENTRY(cuDeviceGetCount);
  4946. f_ptr_t f = (f_ptr_t)(g_func_table[5]);
  4947. return f(arg0);
  4948. }
  4949. CUresult _WRAPLIB_API_CALL cuDeviceGetName(char *arg0, int arg1, CUdevice arg2) {
  4950. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(char *, int, CUdevice);
  4951. ON_ENTRY(cuDeviceGetName);
  4952. f_ptr_t f = (f_ptr_t)(g_func_table[6]);
  4953. return f(arg0, arg1, arg2);
  4954. }
  4955. CUresult _WRAPLIB_API_CALL cuDeviceGetUuid(CUuuid *arg0, CUdevice arg1) {
  4956. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUuuid *, CUdevice);
  4957. ON_ENTRY(cuDeviceGetUuid);
  4958. f_ptr_t f = (f_ptr_t)(g_func_table[7]);
  4959. return f(arg0, arg1);
  4960. }
  4961. CUresult _WRAPLIB_API_CALL cuDeviceGetUuid_v2(CUuuid *arg0, CUdevice arg1) {
  4962. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUuuid *, CUdevice);
  4963. ON_ENTRY(cuDeviceGetUuid_v2);
  4964. f_ptr_t f = (f_ptr_t)(g_func_table[8]);
  4965. return f(arg0, arg1);
  4966. }
  4967. CUresult _WRAPLIB_API_CALL cuDeviceGetLuid(char *arg0, unsigned int *arg1, CUdevice arg2) {
  4968. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(char *, unsigned int *, CUdevice);
  4969. ON_ENTRY(cuDeviceGetLuid);
  4970. f_ptr_t f = (f_ptr_t)(g_func_table[9]);
  4971. return f(arg0, arg1, arg2);
  4972. }
  4973. CUresult _WRAPLIB_API_CALL cuDeviceTotalMem_v2(size_t *arg0, CUdevice arg1) {
  4974. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, CUdevice);
  4975. ON_ENTRY(cuDeviceTotalMem_v2);
  4976. f_ptr_t f = (f_ptr_t)(g_func_table[10]);
  4977. return f(arg0, arg1);
  4978. }
  4979. CUresult _WRAPLIB_API_CALL cuDeviceGetTexture1DLinearMaxWidth(size_t *arg0, CUarray_format arg1, unsigned arg2, CUdevice arg3) {
  4980. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, CUarray_format, unsigned, CUdevice);
  4981. ON_ENTRY(cuDeviceGetTexture1DLinearMaxWidth);
  4982. f_ptr_t f = (f_ptr_t)(g_func_table[11]);
  4983. return f(arg0, arg1, arg2, arg3);
  4984. }
  4985. CUresult _WRAPLIB_API_CALL cuDeviceGetAttribute(int *arg0, CUdevice_attribute arg1, CUdevice arg2) {
  4986. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUdevice_attribute, CUdevice);
  4987. ON_ENTRY(cuDeviceGetAttribute);
  4988. f_ptr_t f = (f_ptr_t)(g_func_table[12]);
  4989. return f(arg0, arg1, arg2);
  4990. }
  4991. CUresult _WRAPLIB_API_CALL cuDeviceGetNvSciSyncAttributes(void *arg0, CUdevice arg1, int arg2) {
  4992. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdevice, int);
  4993. ON_ENTRY(cuDeviceGetNvSciSyncAttributes);
  4994. f_ptr_t f = (f_ptr_t)(g_func_table[13]);
  4995. return f(arg0, arg1, arg2);
  4996. }
  4997. CUresult _WRAPLIB_API_CALL cuDeviceSetMemPool(CUdevice arg0, CUmemoryPool arg1) {
  4998. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, CUmemoryPool);
  4999. ON_ENTRY(cuDeviceSetMemPool);
  5000. f_ptr_t f = (f_ptr_t)(g_func_table[14]);
  5001. return f(arg0, arg1);
  5002. }
  5003. CUresult _WRAPLIB_API_CALL cuDeviceGetMemPool(CUmemoryPool *arg0, CUdevice arg1) {
  5004. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool *, CUdevice);
  5005. ON_ENTRY(cuDeviceGetMemPool);
  5006. f_ptr_t f = (f_ptr_t)(g_func_table[15]);
  5007. return f(arg0, arg1);
  5008. }
  5009. CUresult _WRAPLIB_API_CALL cuDeviceGetDefaultMemPool(CUmemoryPool *arg0, CUdevice arg1) {
  5010. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool *, CUdevice);
  5011. ON_ENTRY(cuDeviceGetDefaultMemPool);
  5012. f_ptr_t f = (f_ptr_t)(g_func_table[16]);
  5013. return f(arg0, arg1);
  5014. }
  5015. CUresult _WRAPLIB_API_CALL cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget arg0, CUflushGPUDirectRDMAWritesScope arg1) {
  5016. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUflushGPUDirectRDMAWritesTarget, CUflushGPUDirectRDMAWritesScope);
  5017. ON_ENTRY(cuFlushGPUDirectRDMAWrites);
  5018. f_ptr_t f = (f_ptr_t)(g_func_table[17]);
  5019. return f(arg0, arg1);
  5020. }
  5021. CUresult _WRAPLIB_API_CALL cuDeviceGetProperties(CUdevprop *arg0, CUdevice arg1) {
  5022. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevprop *, CUdevice);
  5023. ON_ENTRY(cuDeviceGetProperties);
  5024. f_ptr_t f = (f_ptr_t)(g_func_table[18]);
  5025. return f(arg0, arg1);
  5026. }
  5027. CUresult _WRAPLIB_API_CALL cuDeviceComputeCapability(int *arg0, int *arg1, CUdevice arg2) {
  5028. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, int *, CUdevice);
  5029. ON_ENTRY(cuDeviceComputeCapability);
  5030. f_ptr_t f = (f_ptr_t)(g_func_table[19]);
  5031. return f(arg0, arg1, arg2);
  5032. }
  5033. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRetain(CUcontext *arg0, CUdevice arg1) {
  5034. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *, CUdevice);
  5035. ON_ENTRY(cuDevicePrimaryCtxRetain);
  5036. f_ptr_t f = (f_ptr_t)(g_func_table[20]);
  5037. return f(arg0, arg1);
  5038. }
  5039. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease_v2(CUdevice arg0) {
  5040. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice);
  5041. ON_ENTRY(cuDevicePrimaryCtxRelease_v2);
  5042. f_ptr_t f = (f_ptr_t)(g_func_table[21]);
  5043. return f(arg0);
  5044. }
  5045. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags_v2(CUdevice arg0, unsigned int arg1) {
  5046. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, unsigned int);
  5047. ON_ENTRY(cuDevicePrimaryCtxSetFlags_v2);
  5048. f_ptr_t f = (f_ptr_t)(g_func_table[22]);
  5049. return f(arg0, arg1);
  5050. }
  5051. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxGetState(CUdevice arg0, unsigned int *arg1, int *arg2) {
  5052. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, unsigned int *, int *);
  5053. ON_ENTRY(cuDevicePrimaryCtxGetState);
  5054. f_ptr_t f = (f_ptr_t)(g_func_table[23]);
  5055. return f(arg0, arg1, arg2);
  5056. }
  5057. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset_v2(CUdevice arg0) {
  5058. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice);
  5059. ON_ENTRY(cuDevicePrimaryCtxReset_v2);
  5060. f_ptr_t f = (f_ptr_t)(g_func_table[24]);
  5061. return f(arg0);
  5062. }
  5063. CUresult _WRAPLIB_API_CALL cuDeviceGetExecAffinitySupport(int *arg0, CUexecAffinityType arg1, CUdevice arg2) {
  5064. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUexecAffinityType, CUdevice);
  5065. ON_ENTRY(cuDeviceGetExecAffinitySupport);
  5066. f_ptr_t f = (f_ptr_t)(g_func_table[25]);
  5067. return f(arg0, arg1, arg2);
  5068. }
  5069. CUresult _WRAPLIB_API_CALL cuCtxCreate_v2(CUcontext *arg0, unsigned int arg1, CUdevice arg2) {
  5070. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *, unsigned int, CUdevice);
  5071. ON_ENTRY(cuCtxCreate_v2);
  5072. f_ptr_t f = (f_ptr_t)(g_func_table[26]);
  5073. return f(arg0, arg1, arg2);
  5074. }
  5075. CUresult _WRAPLIB_API_CALL cuCtxCreate_v3(CUcontext *arg0, CUexecAffinityParam *arg1, int arg2, unsigned int arg3, CUdevice arg4) {
  5076. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *, CUexecAffinityParam *, int, unsigned int, CUdevice);
  5077. ON_ENTRY(cuCtxCreate_v3);
  5078. f_ptr_t f = (f_ptr_t)(g_func_table[27]);
  5079. return f(arg0, arg1, arg2, arg3, arg4);
  5080. }
  5081. CUresult _WRAPLIB_API_CALL cuCtxDestroy_v2(CUcontext arg0) {
  5082. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  5083. ON_ENTRY(cuCtxDestroy_v2);
  5084. f_ptr_t f = (f_ptr_t)(g_func_table[28]);
  5085. return f(arg0);
  5086. }
  5087. CUresult _WRAPLIB_API_CALL cuCtxPushCurrent_v2(CUcontext arg0) {
  5088. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  5089. ON_ENTRY(cuCtxPushCurrent_v2);
  5090. f_ptr_t f = (f_ptr_t)(g_func_table[29]);
  5091. return f(arg0);
  5092. }
  5093. CUresult _WRAPLIB_API_CALL cuCtxPopCurrent_v2(CUcontext *arg0) {
  5094. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *);
  5095. ON_ENTRY(cuCtxPopCurrent_v2);
  5096. f_ptr_t f = (f_ptr_t)(g_func_table[30]);
  5097. return f(arg0);
  5098. }
  5099. CUresult _WRAPLIB_API_CALL cuCtxSetCurrent(CUcontext arg0) {
  5100. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  5101. ON_ENTRY(cuCtxSetCurrent);
  5102. f_ptr_t f = (f_ptr_t)(g_func_table[31]);
  5103. return f(arg0);
  5104. }
  5105. CUresult _WRAPLIB_API_CALL cuCtxGetCurrent(CUcontext *arg0) {
  5106. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *);
  5107. ON_ENTRY(cuCtxGetCurrent);
  5108. f_ptr_t f = (f_ptr_t)(g_func_table[32]);
  5109. return f(arg0);
  5110. }
  5111. CUresult _WRAPLIB_API_CALL cuCtxGetDevice(CUdevice *arg0) {
  5112. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice *);
  5113. ON_ENTRY(cuCtxGetDevice);
  5114. f_ptr_t f = (f_ptr_t)(g_func_table[33]);
  5115. return f(arg0);
  5116. }
  5117. CUresult _WRAPLIB_API_CALL cuCtxGetFlags(unsigned int *arg0) {
  5118. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *);
  5119. ON_ENTRY(cuCtxGetFlags);
  5120. f_ptr_t f = (f_ptr_t)(g_func_table[34]);
  5121. return f(arg0);
  5122. }
  5123. CUresult _WRAPLIB_API_CALL cuCtxSynchronize() {
  5124. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)();
  5125. ON_ENTRY(cuCtxSynchronize);
  5126. f_ptr_t f = (f_ptr_t)(g_func_table[35]);
  5127. return f();
  5128. }
  5129. CUresult _WRAPLIB_API_CALL cuCtxSetLimit(CUlimit arg0, size_t arg1) {
  5130. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlimit, size_t);
  5131. ON_ENTRY(cuCtxSetLimit);
  5132. f_ptr_t f = (f_ptr_t)(g_func_table[36]);
  5133. return f(arg0, arg1);
  5134. }
  5135. CUresult _WRAPLIB_API_CALL cuCtxGetLimit(size_t *arg0, CUlimit arg1) {
  5136. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, CUlimit);
  5137. ON_ENTRY(cuCtxGetLimit);
  5138. f_ptr_t f = (f_ptr_t)(g_func_table[37]);
  5139. return f(arg0, arg1);
  5140. }
  5141. CUresult _WRAPLIB_API_CALL cuCtxGetCacheConfig(CUfunc_cache *arg0) {
  5142. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunc_cache *);
  5143. ON_ENTRY(cuCtxGetCacheConfig);
  5144. f_ptr_t f = (f_ptr_t)(g_func_table[38]);
  5145. return f(arg0);
  5146. }
  5147. CUresult _WRAPLIB_API_CALL cuCtxSetCacheConfig(CUfunc_cache arg0) {
  5148. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunc_cache);
  5149. ON_ENTRY(cuCtxSetCacheConfig);
  5150. f_ptr_t f = (f_ptr_t)(g_func_table[39]);
  5151. return f(arg0);
  5152. }
  5153. CUresult _WRAPLIB_API_CALL cuCtxGetSharedMemConfig(CUsharedconfig *arg0) {
  5154. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsharedconfig *);
  5155. ON_ENTRY(cuCtxGetSharedMemConfig);
  5156. f_ptr_t f = (f_ptr_t)(g_func_table[40]);
  5157. return f(arg0);
  5158. }
  5159. CUresult _WRAPLIB_API_CALL cuCtxSetSharedMemConfig(CUsharedconfig arg0) {
  5160. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsharedconfig);
  5161. ON_ENTRY(cuCtxSetSharedMemConfig);
  5162. f_ptr_t f = (f_ptr_t)(g_func_table[41]);
  5163. return f(arg0);
  5164. }
  5165. CUresult _WRAPLIB_API_CALL cuCtxGetApiVersion(CUcontext arg0, unsigned int *arg1) {
  5166. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext, unsigned int *);
  5167. ON_ENTRY(cuCtxGetApiVersion);
  5168. f_ptr_t f = (f_ptr_t)(g_func_table[42]);
  5169. return f(arg0, arg1);
  5170. }
  5171. CUresult _WRAPLIB_API_CALL cuCtxGetStreamPriorityRange(int *arg0, int *arg1) {
  5172. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, int *);
  5173. ON_ENTRY(cuCtxGetStreamPriorityRange);
  5174. f_ptr_t f = (f_ptr_t)(g_func_table[43]);
  5175. return f(arg0, arg1);
  5176. }
  5177. CUresult _WRAPLIB_API_CALL cuCtxResetPersistingL2Cache() {
  5178. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)();
  5179. ON_ENTRY(cuCtxResetPersistingL2Cache);
  5180. f_ptr_t f = (f_ptr_t)(g_func_table[44]);
  5181. return f();
  5182. }
  5183. CUresult _WRAPLIB_API_CALL cuCtxGetExecAffinity(CUexecAffinityParam *arg0, CUexecAffinityType arg1) {
  5184. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUexecAffinityParam *, CUexecAffinityType);
  5185. ON_ENTRY(cuCtxGetExecAffinity);
  5186. f_ptr_t f = (f_ptr_t)(g_func_table[45]);
  5187. return f(arg0, arg1);
  5188. }
  5189. CUresult _WRAPLIB_API_CALL cuCtxAttach(CUcontext *arg0, unsigned int arg1) {
  5190. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *, unsigned int);
  5191. ON_ENTRY(cuCtxAttach);
  5192. f_ptr_t f = (f_ptr_t)(g_func_table[46]);
  5193. return f(arg0, arg1);
  5194. }
  5195. CUresult _WRAPLIB_API_CALL cuCtxDetach(CUcontext arg0) {
  5196. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  5197. ON_ENTRY(cuCtxDetach);
  5198. f_ptr_t f = (f_ptr_t)(g_func_table[47]);
  5199. return f(arg0);
  5200. }
  5201. CUresult _WRAPLIB_API_CALL cuModuleLoad(CUmodule *arg0, const char *arg1) {
  5202. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule *, const char *);
  5203. ON_ENTRY(cuModuleLoad);
  5204. f_ptr_t f = (f_ptr_t)(g_func_table[48]);
  5205. return f(arg0, arg1);
  5206. }
  5207. CUresult _WRAPLIB_API_CALL cuModuleLoadData(CUmodule *arg0, const void *arg1) {
  5208. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule *, const void *);
  5209. ON_ENTRY(cuModuleLoadData);
  5210. f_ptr_t f = (f_ptr_t)(g_func_table[49]);
  5211. return f(arg0, arg1);
  5212. }
  5213. CUresult _WRAPLIB_API_CALL cuModuleLoadDataEx(CUmodule *arg0, const void *arg1, unsigned int arg2, CUjit_option *arg3, void **arg4) {
  5214. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule *, const void *, unsigned int, CUjit_option *, void **);
  5215. ON_ENTRY(cuModuleLoadDataEx);
  5216. f_ptr_t f = (f_ptr_t)(g_func_table[50]);
  5217. return f(arg0, arg1, arg2, arg3, arg4);
  5218. }
  5219. CUresult _WRAPLIB_API_CALL cuModuleLoadFatBinary(CUmodule *arg0, const void *arg1) {
  5220. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule *, const void *);
  5221. ON_ENTRY(cuModuleLoadFatBinary);
  5222. f_ptr_t f = (f_ptr_t)(g_func_table[51]);
  5223. return f(arg0, arg1);
  5224. }
  5225. CUresult _WRAPLIB_API_CALL cuModuleUnload(CUmodule arg0) {
  5226. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule);
  5227. ON_ENTRY(cuModuleUnload);
  5228. f_ptr_t f = (f_ptr_t)(g_func_table[52]);
  5229. return f(arg0);
  5230. }
  5231. CUresult _WRAPLIB_API_CALL cuModuleGetFunction(CUfunction *arg0, CUmodule arg1, const char *arg2) {
  5232. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction *, CUmodule, const char *);
  5233. ON_ENTRY(cuModuleGetFunction);
  5234. f_ptr_t f = (f_ptr_t)(g_func_table[53]);
  5235. return f(arg0, arg1, arg2);
  5236. }
  5237. CUresult _WRAPLIB_API_CALL cuModuleGetGlobal_v2(CUdeviceptr *arg0, size_t *arg1, CUmodule arg2, const char *arg3) {
  5238. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t *, CUmodule, const char *);
  5239. ON_ENTRY(cuModuleGetGlobal_v2);
  5240. f_ptr_t f = (f_ptr_t)(g_func_table[54]);
  5241. return f(arg0, arg1, arg2, arg3);
  5242. }
  5243. CUresult _WRAPLIB_API_CALL cuModuleGetTexRef(CUtexref *arg0, CUmodule arg1, const char *arg2) {
  5244. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref *, CUmodule, const char *);
  5245. ON_ENTRY(cuModuleGetTexRef);
  5246. f_ptr_t f = (f_ptr_t)(g_func_table[55]);
  5247. return f(arg0, arg1, arg2);
  5248. }
  5249. CUresult _WRAPLIB_API_CALL cuModuleGetSurfRef(CUsurfref *arg0, CUmodule arg1, const char *arg2) {
  5250. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsurfref *, CUmodule, const char *);
  5251. ON_ENTRY(cuModuleGetSurfRef);
  5252. f_ptr_t f = (f_ptr_t)(g_func_table[56]);
  5253. return f(arg0, arg1, arg2);
  5254. }
  5255. CUresult _WRAPLIB_API_CALL cuLinkCreate_v2(unsigned int arg0, CUjit_option *arg1, void **arg2, CUlinkState *arg3) {
  5256. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUjit_option *, void **, CUlinkState *);
  5257. ON_ENTRY(cuLinkCreate_v2);
  5258. f_ptr_t f = (f_ptr_t)(g_func_table[57]);
  5259. return f(arg0, arg1, arg2, arg3);
  5260. }
  5261. CUresult _WRAPLIB_API_CALL cuLinkAddData_v2(CUlinkState arg0, CUjitInputType arg1, void *arg2, size_t arg3, const char *arg4, unsigned int arg5, CUjit_option *arg6, void **arg7) {
  5262. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState, CUjitInputType, void *, size_t, const char *, unsigned int, CUjit_option *, void **);
  5263. ON_ENTRY(cuLinkAddData_v2);
  5264. f_ptr_t f = (f_ptr_t)(g_func_table[58]);
  5265. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  5266. }
  5267. CUresult _WRAPLIB_API_CALL cuLinkAddFile_v2(CUlinkState arg0, CUjitInputType arg1, const char *arg2, unsigned int arg3, CUjit_option *arg4, void **arg5) {
  5268. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState, CUjitInputType, const char *, unsigned int, CUjit_option *, void **);
  5269. ON_ENTRY(cuLinkAddFile_v2);
  5270. f_ptr_t f = (f_ptr_t)(g_func_table[59]);
  5271. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5272. }
  5273. CUresult _WRAPLIB_API_CALL cuLinkComplete(CUlinkState arg0, void **arg1, size_t *arg2) {
  5274. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState, void **, size_t *);
  5275. ON_ENTRY(cuLinkComplete);
  5276. f_ptr_t f = (f_ptr_t)(g_func_table[60]);
  5277. return f(arg0, arg1, arg2);
  5278. }
  5279. CUresult _WRAPLIB_API_CALL cuLinkDestroy(CUlinkState arg0) {
  5280. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState);
  5281. ON_ENTRY(cuLinkDestroy);
  5282. f_ptr_t f = (f_ptr_t)(g_func_table[61]);
  5283. return f(arg0);
  5284. }
  5285. CUresult _WRAPLIB_API_CALL cuMemGetInfo_v2(size_t *arg0, size_t *arg1) {
  5286. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, size_t *);
  5287. ON_ENTRY(cuMemGetInfo_v2);
  5288. f_ptr_t f = (f_ptr_t)(g_func_table[62]);
  5289. return f(arg0, arg1);
  5290. }
  5291. CUresult _WRAPLIB_API_CALL cuMemAlloc_v2(CUdeviceptr *arg0, size_t arg1) {
  5292. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t);
  5293. ON_ENTRY(cuMemAlloc_v2);
  5294. f_ptr_t f = (f_ptr_t)(g_func_table[63]);
  5295. return f(arg0, arg1);
  5296. }
  5297. CUresult _WRAPLIB_API_CALL cuMemAllocPitch_v2(CUdeviceptr *arg0, size_t *arg1, size_t arg2, size_t arg3, unsigned int arg4) {
  5298. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t *, size_t, size_t, unsigned int);
  5299. ON_ENTRY(cuMemAllocPitch_v2);
  5300. f_ptr_t f = (f_ptr_t)(g_func_table[64]);
  5301. return f(arg0, arg1, arg2, arg3, arg4);
  5302. }
  5303. CUresult _WRAPLIB_API_CALL cuMemFree_v2(CUdeviceptr arg0) {
  5304. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr);
  5305. ON_ENTRY(cuMemFree_v2);
  5306. f_ptr_t f = (f_ptr_t)(g_func_table[65]);
  5307. return f(arg0);
  5308. }
  5309. CUresult _WRAPLIB_API_CALL cuMemGetAddressRange_v2(CUdeviceptr *arg0, size_t *arg1, CUdeviceptr arg2) {
  5310. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t *, CUdeviceptr);
  5311. ON_ENTRY(cuMemGetAddressRange_v2);
  5312. f_ptr_t f = (f_ptr_t)(g_func_table[66]);
  5313. return f(arg0, arg1, arg2);
  5314. }
  5315. CUresult _WRAPLIB_API_CALL cuMemAllocHost_v2(void **arg0, size_t arg1) {
  5316. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void **, size_t);
  5317. ON_ENTRY(cuMemAllocHost_v2);
  5318. f_ptr_t f = (f_ptr_t)(g_func_table[67]);
  5319. return f(arg0, arg1);
  5320. }
  5321. CUresult _WRAPLIB_API_CALL cuMemFreeHost(void *arg0) {
  5322. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *);
  5323. ON_ENTRY(cuMemFreeHost);
  5324. f_ptr_t f = (f_ptr_t)(g_func_table[68]);
  5325. return f(arg0);
  5326. }
  5327. CUresult _WRAPLIB_API_CALL cuMemHostAlloc(void **arg0, size_t arg1, unsigned int arg2) {
  5328. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void **, size_t, unsigned int);
  5329. ON_ENTRY(cuMemHostAlloc);
  5330. f_ptr_t f = (f_ptr_t)(g_func_table[69]);
  5331. return f(arg0, arg1, arg2);
  5332. }
  5333. CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer_v2(CUdeviceptr *arg0, void *arg1, unsigned int arg2) {
  5334. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, void *, unsigned int);
  5335. ON_ENTRY(cuMemHostGetDevicePointer_v2);
  5336. f_ptr_t f = (f_ptr_t)(g_func_table[70]);
  5337. return f(arg0, arg1, arg2);
  5338. }
  5339. CUresult _WRAPLIB_API_CALL cuMemHostGetFlags(unsigned int *arg0, void *arg1) {
  5340. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *, void *);
  5341. ON_ENTRY(cuMemHostGetFlags);
  5342. f_ptr_t f = (f_ptr_t)(g_func_table[71]);
  5343. return f(arg0, arg1);
  5344. }
  5345. CUresult _WRAPLIB_API_CALL cuMemAllocManaged(CUdeviceptr *arg0, size_t arg1, unsigned int arg2) {
  5346. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, unsigned int);
  5347. ON_ENTRY(cuMemAllocManaged);
  5348. f_ptr_t f = (f_ptr_t)(g_func_table[72]);
  5349. return f(arg0, arg1, arg2);
  5350. }
  5351. CUresult _WRAPLIB_API_CALL cuDeviceGetByPCIBusId(CUdevice *arg0, const char *arg1) {
  5352. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice *, const char *);
  5353. ON_ENTRY(cuDeviceGetByPCIBusId);
  5354. f_ptr_t f = (f_ptr_t)(g_func_table[73]);
  5355. return f(arg0, arg1);
  5356. }
  5357. CUresult _WRAPLIB_API_CALL cuDeviceGetPCIBusId(char *arg0, int arg1, CUdevice arg2) {
  5358. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(char *, int, CUdevice);
  5359. ON_ENTRY(cuDeviceGetPCIBusId);
  5360. f_ptr_t f = (f_ptr_t)(g_func_table[74]);
  5361. return f(arg0, arg1, arg2);
  5362. }
  5363. CUresult _WRAPLIB_API_CALL cuIpcGetEventHandle(CUipcEventHandle *arg0, CUevent arg1) {
  5364. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUipcEventHandle *, CUevent);
  5365. ON_ENTRY(cuIpcGetEventHandle);
  5366. f_ptr_t f = (f_ptr_t)(g_func_table[75]);
  5367. return f(arg0, arg1);
  5368. }
  5369. CUresult _WRAPLIB_API_CALL cuIpcOpenEventHandle(CUevent *arg0, CUipcEventHandle arg1) {
  5370. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent *, CUipcEventHandle);
  5371. ON_ENTRY(cuIpcOpenEventHandle);
  5372. f_ptr_t f = (f_ptr_t)(g_func_table[76]);
  5373. return f(arg0, arg1);
  5374. }
  5375. CUresult _WRAPLIB_API_CALL cuIpcGetMemHandle(CUipcMemHandle *arg0, CUdeviceptr arg1) {
  5376. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUipcMemHandle *, CUdeviceptr);
  5377. ON_ENTRY(cuIpcGetMemHandle);
  5378. f_ptr_t f = (f_ptr_t)(g_func_table[77]);
  5379. return f(arg0, arg1);
  5380. }
  5381. CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle_v2(CUdeviceptr *arg0, CUipcMemHandle arg1, unsigned int arg2) {
  5382. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, CUipcMemHandle, unsigned int);
  5383. ON_ENTRY(cuIpcOpenMemHandle_v2);
  5384. f_ptr_t f = (f_ptr_t)(g_func_table[78]);
  5385. return f(arg0, arg1, arg2);
  5386. }
  5387. CUresult _WRAPLIB_API_CALL cuIpcCloseMemHandle(CUdeviceptr arg0) {
  5388. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr);
  5389. ON_ENTRY(cuIpcCloseMemHandle);
  5390. f_ptr_t f = (f_ptr_t)(g_func_table[79]);
  5391. return f(arg0);
  5392. }
  5393. CUresult _WRAPLIB_API_CALL cuMemHostRegister_v2(void *arg0, size_t arg1, unsigned int arg2) {
  5394. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, size_t, unsigned int);
  5395. ON_ENTRY(cuMemHostRegister_v2);
  5396. f_ptr_t f = (f_ptr_t)(g_func_table[80]);
  5397. return f(arg0, arg1, arg2);
  5398. }
  5399. CUresult _WRAPLIB_API_CALL cuMemHostUnregister(void *arg0) {
  5400. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *);
  5401. ON_ENTRY(cuMemHostUnregister);
  5402. f_ptr_t f = (f_ptr_t)(g_func_table[81]);
  5403. return f(arg0);
  5404. }
  5405. CUresult _WRAPLIB_API_CALL cuMemcpy_ptds(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  5406. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t);
  5407. ON_ENTRY(cuMemcpy_ptds);
  5408. f_ptr_t f = (f_ptr_t)(g_func_table[82]);
  5409. return f(arg0, arg1, arg2);
  5410. }
  5411. CUresult _WRAPLIB_API_CALL cuMemcpyPeer_ptds(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4) {
  5412. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t);
  5413. ON_ENTRY(cuMemcpyPeer_ptds);
  5414. f_ptr_t f = (f_ptr_t)(g_func_table[83]);
  5415. return f(arg0, arg1, arg2, arg3, arg4);
  5416. }
  5417. CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2_ptds(CUdeviceptr arg0, const void *arg1, size_t arg2) {
  5418. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, const void *, size_t);
  5419. ON_ENTRY(cuMemcpyHtoD_v2_ptds);
  5420. f_ptr_t f = (f_ptr_t)(g_func_table[84]);
  5421. return f(arg0, arg1, arg2);
  5422. }
  5423. CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2_ptds(void *arg0, CUdeviceptr arg1, size_t arg2) {
  5424. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr, size_t);
  5425. ON_ENTRY(cuMemcpyDtoH_v2_ptds);
  5426. f_ptr_t f = (f_ptr_t)(g_func_table[85]);
  5427. return f(arg0, arg1, arg2);
  5428. }
  5429. CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2_ptds(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  5430. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t);
  5431. ON_ENTRY(cuMemcpyDtoD_v2_ptds);
  5432. f_ptr_t f = (f_ptr_t)(g_func_table[86]);
  5433. return f(arg0, arg1, arg2);
  5434. }
  5435. CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2_ptds(CUarray arg0, size_t arg1, CUdeviceptr arg2, size_t arg3) {
  5436. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, CUdeviceptr, size_t);
  5437. ON_ENTRY(cuMemcpyDtoA_v2_ptds);
  5438. f_ptr_t f = (f_ptr_t)(g_func_table[87]);
  5439. return f(arg0, arg1, arg2, arg3);
  5440. }
  5441. CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2_ptds(CUdeviceptr arg0, CUarray arg1, size_t arg2, size_t arg3) {
  5442. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUarray, size_t, size_t);
  5443. ON_ENTRY(cuMemcpyAtoD_v2_ptds);
  5444. f_ptr_t f = (f_ptr_t)(g_func_table[88]);
  5445. return f(arg0, arg1, arg2, arg3);
  5446. }
  5447. CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2_ptds(CUarray arg0, size_t arg1, const void *arg2, size_t arg3) {
  5448. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, const void *, size_t);
  5449. ON_ENTRY(cuMemcpyHtoA_v2_ptds);
  5450. f_ptr_t f = (f_ptr_t)(g_func_table[89]);
  5451. return f(arg0, arg1, arg2, arg3);
  5452. }
  5453. CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2_ptds(void *arg0, CUarray arg1, size_t arg2, size_t arg3) {
  5454. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, size_t, size_t);
  5455. ON_ENTRY(cuMemcpyAtoH_v2_ptds);
  5456. f_ptr_t f = (f_ptr_t)(g_func_table[90]);
  5457. return f(arg0, arg1, arg2, arg3);
  5458. }
  5459. CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2_ptds(CUarray arg0, size_t arg1, CUarray arg2, size_t arg3, size_t arg4) {
  5460. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, CUarray, size_t, size_t);
  5461. ON_ENTRY(cuMemcpyAtoA_v2_ptds);
  5462. f_ptr_t f = (f_ptr_t)(g_func_table[91]);
  5463. return f(arg0, arg1, arg2, arg3, arg4);
  5464. }
  5465. CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2_ptds(const CUDA_MEMCPY2D *arg0) {
  5466. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *);
  5467. ON_ENTRY(cuMemcpy2D_v2_ptds);
  5468. f_ptr_t f = (f_ptr_t)(g_func_table[92]);
  5469. return f(arg0);
  5470. }
  5471. CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2_ptds(const CUDA_MEMCPY2D *arg0) {
  5472. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *);
  5473. ON_ENTRY(cuMemcpy2DUnaligned_v2_ptds);
  5474. f_ptr_t f = (f_ptr_t)(g_func_table[93]);
  5475. return f(arg0);
  5476. }
  5477. CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2_ptds(const CUDA_MEMCPY3D *arg0) {
  5478. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D *);
  5479. ON_ENTRY(cuMemcpy3D_v2_ptds);
  5480. f_ptr_t f = (f_ptr_t)(g_func_table[94]);
  5481. return f(arg0);
  5482. }
  5483. CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer_ptds(const CUDA_MEMCPY3D_PEER *arg0) {
  5484. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_PEER *);
  5485. ON_ENTRY(cuMemcpy3DPeer_ptds);
  5486. f_ptr_t f = (f_ptr_t)(g_func_table[95]);
  5487. return f(arg0);
  5488. }
  5489. CUresult _WRAPLIB_API_CALL cuMemcpyAsync_ptsz(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  5490. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t, CUstream);
  5491. ON_ENTRY(cuMemcpyAsync_ptsz);
  5492. f_ptr_t f = (f_ptr_t)(g_func_table[96]);
  5493. return f(arg0, arg1, arg2, arg3);
  5494. }
  5495. CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync_ptsz(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4, CUstream arg5) {
  5496. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream);
  5497. ON_ENTRY(cuMemcpyPeerAsync_ptsz);
  5498. f_ptr_t f = (f_ptr_t)(g_func_table[97]);
  5499. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5500. }
  5501. CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2_ptsz(CUdeviceptr arg0, const void *arg1, size_t arg2, CUstream arg3) {
  5502. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, const void *, size_t, CUstream);
  5503. ON_ENTRY(cuMemcpyHtoDAsync_v2_ptsz);
  5504. f_ptr_t f = (f_ptr_t)(g_func_table[98]);
  5505. return f(arg0, arg1, arg2, arg3);
  5506. }
  5507. CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2_ptsz(void *arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  5508. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr, size_t, CUstream);
  5509. ON_ENTRY(cuMemcpyDtoHAsync_v2_ptsz);
  5510. f_ptr_t f = (f_ptr_t)(g_func_table[99]);
  5511. return f(arg0, arg1, arg2, arg3);
  5512. }
  5513. CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2_ptsz(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  5514. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t, CUstream);
  5515. ON_ENTRY(cuMemcpyDtoDAsync_v2_ptsz);
  5516. f_ptr_t f = (f_ptr_t)(g_func_table[100]);
  5517. return f(arg0, arg1, arg2, arg3);
  5518. }
  5519. CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2_ptsz(CUarray arg0, size_t arg1, const void *arg2, size_t arg3, CUstream arg4) {
  5520. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, const void *, size_t, CUstream);
  5521. ON_ENTRY(cuMemcpyHtoAAsync_v2_ptsz);
  5522. f_ptr_t f = (f_ptr_t)(g_func_table[101]);
  5523. return f(arg0, arg1, arg2, arg3, arg4);
  5524. }
  5525. CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2_ptsz(void *arg0, CUarray arg1, size_t arg2, size_t arg3, CUstream arg4) {
  5526. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, size_t, size_t, CUstream);
  5527. ON_ENTRY(cuMemcpyAtoHAsync_v2_ptsz);
  5528. f_ptr_t f = (f_ptr_t)(g_func_table[102]);
  5529. return f(arg0, arg1, arg2, arg3, arg4);
  5530. }
  5531. CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2_ptsz(const CUDA_MEMCPY2D *arg0, CUstream arg1) {
  5532. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *, CUstream);
  5533. ON_ENTRY(cuMemcpy2DAsync_v2_ptsz);
  5534. f_ptr_t f = (f_ptr_t)(g_func_table[103]);
  5535. return f(arg0, arg1);
  5536. }
  5537. CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2_ptsz(const CUDA_MEMCPY3D *arg0, CUstream arg1) {
  5538. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D *, CUstream);
  5539. ON_ENTRY(cuMemcpy3DAsync_v2_ptsz);
  5540. f_ptr_t f = (f_ptr_t)(g_func_table[104]);
  5541. return f(arg0, arg1);
  5542. }
  5543. CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync_ptsz(const CUDA_MEMCPY3D_PEER *arg0, CUstream arg1) {
  5544. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_PEER *, CUstream);
  5545. ON_ENTRY(cuMemcpy3DPeerAsync_ptsz);
  5546. f_ptr_t f = (f_ptr_t)(g_func_table[105]);
  5547. return f(arg0, arg1);
  5548. }
  5549. CUresult _WRAPLIB_API_CALL cuMemsetD8_v2_ptds(CUdeviceptr arg0, unsigned char arg1, size_t arg2) {
  5550. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned char, size_t);
  5551. ON_ENTRY(cuMemsetD8_v2_ptds);
  5552. f_ptr_t f = (f_ptr_t)(g_func_table[106]);
  5553. return f(arg0, arg1, arg2);
  5554. }
  5555. CUresult _WRAPLIB_API_CALL cuMemsetD16_v2_ptds(CUdeviceptr arg0, unsigned short arg1, size_t arg2) {
  5556. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned short, size_t);
  5557. ON_ENTRY(cuMemsetD16_v2_ptds);
  5558. f_ptr_t f = (f_ptr_t)(g_func_table[107]);
  5559. return f(arg0, arg1, arg2);
  5560. }
  5561. CUresult _WRAPLIB_API_CALL cuMemsetD32_v2_ptds(CUdeviceptr arg0, unsigned int arg1, size_t arg2) {
  5562. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned int, size_t);
  5563. ON_ENTRY(cuMemsetD32_v2_ptds);
  5564. f_ptr_t f = (f_ptr_t)(g_func_table[108]);
  5565. return f(arg0, arg1, arg2);
  5566. }
  5567. CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2_ptds(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4) {
  5568. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned char, size_t, size_t);
  5569. ON_ENTRY(cuMemsetD2D8_v2_ptds);
  5570. f_ptr_t f = (f_ptr_t)(g_func_table[109]);
  5571. return f(arg0, arg1, arg2, arg3, arg4);
  5572. }
  5573. CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2_ptds(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4) {
  5574. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned short, size_t, size_t);
  5575. ON_ENTRY(cuMemsetD2D16_v2_ptds);
  5576. f_ptr_t f = (f_ptr_t)(g_func_table[110]);
  5577. return f(arg0, arg1, arg2, arg3, arg4);
  5578. }
  5579. CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2_ptds(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4) {
  5580. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned int, size_t, size_t);
  5581. ON_ENTRY(cuMemsetD2D32_v2_ptds);
  5582. f_ptr_t f = (f_ptr_t)(g_func_table[111]);
  5583. return f(arg0, arg1, arg2, arg3, arg4);
  5584. }
  5585. CUresult _WRAPLIB_API_CALL cuMemsetD8Async_ptsz(CUdeviceptr arg0, unsigned char arg1, size_t arg2, CUstream arg3) {
  5586. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned char, size_t, CUstream);
  5587. ON_ENTRY(cuMemsetD8Async_ptsz);
  5588. f_ptr_t f = (f_ptr_t)(g_func_table[112]);
  5589. return f(arg0, arg1, arg2, arg3);
  5590. }
  5591. CUresult _WRAPLIB_API_CALL cuMemsetD16Async_ptsz(CUdeviceptr arg0, unsigned short arg1, size_t arg2, CUstream arg3) {
  5592. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned short, size_t, CUstream);
  5593. ON_ENTRY(cuMemsetD16Async_ptsz);
  5594. f_ptr_t f = (f_ptr_t)(g_func_table[113]);
  5595. return f(arg0, arg1, arg2, arg3);
  5596. }
  5597. CUresult _WRAPLIB_API_CALL cuMemsetD32Async_ptsz(CUdeviceptr arg0, unsigned int arg1, size_t arg2, CUstream arg3) {
  5598. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned int, size_t, CUstream);
  5599. ON_ENTRY(cuMemsetD32Async_ptsz);
  5600. f_ptr_t f = (f_ptr_t)(g_func_table[114]);
  5601. return f(arg0, arg1, arg2, arg3);
  5602. }
  5603. CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async_ptsz(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4, CUstream arg5) {
  5604. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream);
  5605. ON_ENTRY(cuMemsetD2D8Async_ptsz);
  5606. f_ptr_t f = (f_ptr_t)(g_func_table[115]);
  5607. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5608. }
  5609. CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async_ptsz(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4, CUstream arg5) {
  5610. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream);
  5611. ON_ENTRY(cuMemsetD2D16Async_ptsz);
  5612. f_ptr_t f = (f_ptr_t)(g_func_table[116]);
  5613. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5614. }
  5615. CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async_ptsz(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4, CUstream arg5) {
  5616. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream);
  5617. ON_ENTRY(cuMemsetD2D32Async_ptsz);
  5618. f_ptr_t f = (f_ptr_t)(g_func_table[117]);
  5619. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5620. }
  5621. CUresult _WRAPLIB_API_CALL cuArrayCreate_v2(CUarray *arg0, const CUDA_ARRAY_DESCRIPTOR *arg1) {
  5622. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, const CUDA_ARRAY_DESCRIPTOR *);
  5623. ON_ENTRY(cuArrayCreate_v2);
  5624. f_ptr_t f = (f_ptr_t)(g_func_table[118]);
  5625. return f(arg0, arg1);
  5626. }
  5627. CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR *arg0, CUarray arg1) {
  5628. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY_DESCRIPTOR *, CUarray);
  5629. ON_ENTRY(cuArrayGetDescriptor_v2);
  5630. f_ptr_t f = (f_ptr_t)(g_func_table[119]);
  5631. return f(arg0, arg1);
  5632. }
  5633. CUresult _WRAPLIB_API_CALL cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES *arg0, CUarray arg1) {
  5634. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY_SPARSE_PROPERTIES *, CUarray);
  5635. ON_ENTRY(cuArrayGetSparseProperties);
  5636. f_ptr_t f = (f_ptr_t)(g_func_table[120]);
  5637. return f(arg0, arg1);
  5638. }
  5639. CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES *arg0, CUmipmappedArray arg1) {
  5640. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY_SPARSE_PROPERTIES *, CUmipmappedArray);
  5641. ON_ENTRY(cuMipmappedArrayGetSparseProperties);
  5642. f_ptr_t f = (f_ptr_t)(g_func_table[121]);
  5643. return f(arg0, arg1);
  5644. }
  5645. CUresult _WRAPLIB_API_CALL cuArrayGetPlane(CUarray *arg0, CUarray arg1, unsigned int arg2) {
  5646. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, CUarray, unsigned int);
  5647. ON_ENTRY(cuArrayGetPlane);
  5648. f_ptr_t f = (f_ptr_t)(g_func_table[122]);
  5649. return f(arg0, arg1, arg2);
  5650. }
  5651. CUresult _WRAPLIB_API_CALL cuArrayDestroy(CUarray arg0) {
  5652. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray);
  5653. ON_ENTRY(cuArrayDestroy);
  5654. f_ptr_t f = (f_ptr_t)(g_func_table[123]);
  5655. return f(arg0);
  5656. }
  5657. CUresult _WRAPLIB_API_CALL cuArray3DCreate_v2(CUarray *arg0, const CUDA_ARRAY3D_DESCRIPTOR *arg1) {
  5658. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, const CUDA_ARRAY3D_DESCRIPTOR *);
  5659. ON_ENTRY(cuArray3DCreate_v2);
  5660. f_ptr_t f = (f_ptr_t)(g_func_table[124]);
  5661. return f(arg0, arg1);
  5662. }
  5663. CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR *arg0, CUarray arg1) {
  5664. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY3D_DESCRIPTOR *, CUarray);
  5665. ON_ENTRY(cuArray3DGetDescriptor_v2);
  5666. f_ptr_t f = (f_ptr_t)(g_func_table[125]);
  5667. return f(arg0, arg1);
  5668. }
  5669. CUresult _WRAPLIB_API_CALL cuMipmappedArrayCreate(CUmipmappedArray *arg0, const CUDA_ARRAY3D_DESCRIPTOR *arg1, unsigned int arg2) {
  5670. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmipmappedArray *, const CUDA_ARRAY3D_DESCRIPTOR *, unsigned int);
  5671. ON_ENTRY(cuMipmappedArrayCreate);
  5672. f_ptr_t f = (f_ptr_t)(g_func_table[126]);
  5673. return f(arg0, arg1, arg2);
  5674. }
  5675. CUresult _WRAPLIB_API_CALL cuMipmappedArrayGetLevel(CUarray *arg0, CUmipmappedArray arg1, unsigned int arg2) {
  5676. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, CUmipmappedArray, unsigned int);
  5677. ON_ENTRY(cuMipmappedArrayGetLevel);
  5678. f_ptr_t f = (f_ptr_t)(g_func_table[127]);
  5679. return f(arg0, arg1, arg2);
  5680. }
  5681. CUresult _WRAPLIB_API_CALL cuMipmappedArrayDestroy(CUmipmappedArray arg0) {
  5682. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmipmappedArray);
  5683. ON_ENTRY(cuMipmappedArrayDestroy);
  5684. f_ptr_t f = (f_ptr_t)(g_func_table[128]);
  5685. return f(arg0);
  5686. }
  5687. CUresult _WRAPLIB_API_CALL cuMemAddressReserve(CUdeviceptr *arg0, size_t arg1, size_t arg2, CUdeviceptr arg3, unsigned long long arg4) {
  5688. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, size_t, CUdeviceptr, unsigned long long);
  5689. ON_ENTRY(cuMemAddressReserve);
  5690. f_ptr_t f = (f_ptr_t)(g_func_table[129]);
  5691. return f(arg0, arg1, arg2, arg3, arg4);
  5692. }
  5693. CUresult _WRAPLIB_API_CALL cuMemAddressFree(CUdeviceptr arg0, size_t arg1) {
  5694. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t);
  5695. ON_ENTRY(cuMemAddressFree);
  5696. f_ptr_t f = (f_ptr_t)(g_func_table[130]);
  5697. return f(arg0, arg1);
  5698. }
  5699. CUresult _WRAPLIB_API_CALL cuMemCreate(CUmemGenericAllocationHandle *arg0, size_t arg1, const CUmemAllocationProp *arg2, unsigned long long arg3) {
  5700. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemGenericAllocationHandle *, size_t, const CUmemAllocationProp *, unsigned long long);
  5701. ON_ENTRY(cuMemCreate);
  5702. f_ptr_t f = (f_ptr_t)(g_func_table[131]);
  5703. return f(arg0, arg1, arg2, arg3);
  5704. }
  5705. CUresult _WRAPLIB_API_CALL cuMemRelease(CUmemGenericAllocationHandle arg0) {
  5706. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemGenericAllocationHandle);
  5707. ON_ENTRY(cuMemRelease);
  5708. f_ptr_t f = (f_ptr_t)(g_func_table[132]);
  5709. return f(arg0);
  5710. }
  5711. CUresult _WRAPLIB_API_CALL cuMemMap(CUdeviceptr arg0, size_t arg1, size_t arg2, CUmemGenericAllocationHandle arg3, unsigned long long arg4) {
  5712. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, size_t, CUmemGenericAllocationHandle, unsigned long long);
  5713. ON_ENTRY(cuMemMap);
  5714. f_ptr_t f = (f_ptr_t)(g_func_table[133]);
  5715. return f(arg0, arg1, arg2, arg3, arg4);
  5716. }
  5717. CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync_ptsz(CUarrayMapInfo *arg0, unsigned int arg1, CUstream arg2) {
  5718. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarrayMapInfo *, unsigned int, CUstream);
  5719. ON_ENTRY(cuMemMapArrayAsync_ptsz);
  5720. f_ptr_t f = (f_ptr_t)(g_func_table[134]);
  5721. return f(arg0, arg1, arg2);
  5722. }
  5723. CUresult _WRAPLIB_API_CALL cuMemUnmap(CUdeviceptr arg0, size_t arg1) {
  5724. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t);
  5725. ON_ENTRY(cuMemUnmap);
  5726. f_ptr_t f = (f_ptr_t)(g_func_table[135]);
  5727. return f(arg0, arg1);
  5728. }
  5729. CUresult _WRAPLIB_API_CALL cuMemSetAccess(CUdeviceptr arg0, size_t arg1, const CUmemAccessDesc *arg2, size_t arg3) {
  5730. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, const CUmemAccessDesc *, size_t);
  5731. ON_ENTRY(cuMemSetAccess);
  5732. f_ptr_t f = (f_ptr_t)(g_func_table[136]);
  5733. return f(arg0, arg1, arg2, arg3);
  5734. }
  5735. CUresult _WRAPLIB_API_CALL cuMemGetAccess(unsigned long long *arg0, const CUmemLocation *arg1, CUdeviceptr arg2) {
  5736. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned long long *, const CUmemLocation *, CUdeviceptr);
  5737. ON_ENTRY(cuMemGetAccess);
  5738. f_ptr_t f = (f_ptr_t)(g_func_table[137]);
  5739. return f(arg0, arg1, arg2);
  5740. }
  5741. CUresult _WRAPLIB_API_CALL cuMemExportToShareableHandle(void *arg0, CUmemGenericAllocationHandle arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  5742. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUmemGenericAllocationHandle, CUmemAllocationHandleType, unsigned long long);
  5743. ON_ENTRY(cuMemExportToShareableHandle);
  5744. f_ptr_t f = (f_ptr_t)(g_func_table[138]);
  5745. return f(arg0, arg1, arg2, arg3);
  5746. }
  5747. CUresult _WRAPLIB_API_CALL cuMemImportFromShareableHandle(CUmemGenericAllocationHandle *arg0, void *arg1, CUmemAllocationHandleType arg2) {
  5748. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemGenericAllocationHandle *, void *, CUmemAllocationHandleType);
  5749. ON_ENTRY(cuMemImportFromShareableHandle);
  5750. f_ptr_t f = (f_ptr_t)(g_func_table[139]);
  5751. return f(arg0, arg1, arg2);
  5752. }
  5753. CUresult _WRAPLIB_API_CALL cuMemGetAllocationGranularity(size_t *arg0, const CUmemAllocationProp *arg1, CUmemAllocationGranularity_flags arg2) {
  5754. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, const CUmemAllocationProp *, CUmemAllocationGranularity_flags);
  5755. ON_ENTRY(cuMemGetAllocationGranularity);
  5756. f_ptr_t f = (f_ptr_t)(g_func_table[140]);
  5757. return f(arg0, arg1, arg2);
  5758. }
  5759. CUresult _WRAPLIB_API_CALL cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp *arg0, CUmemGenericAllocationHandle arg1) {
  5760. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemAllocationProp *, CUmemGenericAllocationHandle);
  5761. ON_ENTRY(cuMemGetAllocationPropertiesFromHandle);
  5762. f_ptr_t f = (f_ptr_t)(g_func_table[141]);
  5763. return f(arg0, arg1);
  5764. }
  5765. CUresult _WRAPLIB_API_CALL cuMemRetainAllocationHandle(CUmemGenericAllocationHandle *arg0, void *arg1) {
  5766. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemGenericAllocationHandle *, void *);
  5767. ON_ENTRY(cuMemRetainAllocationHandle);
  5768. f_ptr_t f = (f_ptr_t)(g_func_table[142]);
  5769. return f(arg0, arg1);
  5770. }
  5771. CUresult _WRAPLIB_API_CALL cuMemFreeAsync_ptsz(CUdeviceptr arg0, CUstream arg1) {
  5772. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUstream);
  5773. ON_ENTRY(cuMemFreeAsync_ptsz);
  5774. f_ptr_t f = (f_ptr_t)(g_func_table[143]);
  5775. return f(arg0, arg1);
  5776. }
  5777. CUresult _WRAPLIB_API_CALL cuMemAllocAsync_ptsz(CUdeviceptr *arg0, size_t arg1, CUstream arg2) {
  5778. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, CUstream);
  5779. ON_ENTRY(cuMemAllocAsync_ptsz);
  5780. f_ptr_t f = (f_ptr_t)(g_func_table[144]);
  5781. return f(arg0, arg1, arg2);
  5782. }
  5783. CUresult _WRAPLIB_API_CALL cuMemPoolTrimTo(CUmemoryPool arg0, size_t arg1) {
  5784. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool, size_t);
  5785. ON_ENTRY(cuMemPoolTrimTo);
  5786. f_ptr_t f = (f_ptr_t)(g_func_table[145]);
  5787. return f(arg0, arg1);
  5788. }
  5789. CUresult _WRAPLIB_API_CALL cuMemPoolSetAttribute(CUmemoryPool arg0, CUmemPool_attribute arg1, void *arg2) {
  5790. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool, CUmemPool_attribute, void *);
  5791. ON_ENTRY(cuMemPoolSetAttribute);
  5792. f_ptr_t f = (f_ptr_t)(g_func_table[146]);
  5793. return f(arg0, arg1, arg2);
  5794. }
  5795. CUresult _WRAPLIB_API_CALL cuMemPoolGetAttribute(CUmemoryPool arg0, CUmemPool_attribute arg1, void *arg2) {
  5796. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool, CUmemPool_attribute, void *);
  5797. ON_ENTRY(cuMemPoolGetAttribute);
  5798. f_ptr_t f = (f_ptr_t)(g_func_table[147]);
  5799. return f(arg0, arg1, arg2);
  5800. }
  5801. CUresult _WRAPLIB_API_CALL cuMemPoolSetAccess(CUmemoryPool arg0, const CUmemAccessDesc *arg1, size_t arg2) {
  5802. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool, const CUmemAccessDesc *, size_t);
  5803. ON_ENTRY(cuMemPoolSetAccess);
  5804. f_ptr_t f = (f_ptr_t)(g_func_table[148]);
  5805. return f(arg0, arg1, arg2);
  5806. }
  5807. CUresult _WRAPLIB_API_CALL cuMemPoolGetAccess(CUmemAccess_flags *arg0, CUmemoryPool arg1, CUmemLocation *arg2) {
  5808. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemAccess_flags *, CUmemoryPool, CUmemLocation *);
  5809. ON_ENTRY(cuMemPoolGetAccess);
  5810. f_ptr_t f = (f_ptr_t)(g_func_table[149]);
  5811. return f(arg0, arg1, arg2);
  5812. }
  5813. CUresult _WRAPLIB_API_CALL cuMemPoolCreate(CUmemoryPool *arg0, const CUmemPoolProps *arg1) {
  5814. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool *, const CUmemPoolProps *);
  5815. ON_ENTRY(cuMemPoolCreate);
  5816. f_ptr_t f = (f_ptr_t)(g_func_table[150]);
  5817. return f(arg0, arg1);
  5818. }
  5819. CUresult _WRAPLIB_API_CALL cuMemPoolDestroy(CUmemoryPool arg0) {
  5820. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool);
  5821. ON_ENTRY(cuMemPoolDestroy);
  5822. f_ptr_t f = (f_ptr_t)(g_func_table[151]);
  5823. return f(arg0);
  5824. }
  5825. CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync_ptsz(CUdeviceptr *arg0, size_t arg1, CUmemoryPool arg2, CUstream arg3) {
  5826. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, CUmemoryPool, CUstream);
  5827. ON_ENTRY(cuMemAllocFromPoolAsync_ptsz);
  5828. f_ptr_t f = (f_ptr_t)(g_func_table[152]);
  5829. return f(arg0, arg1, arg2, arg3);
  5830. }
  5831. CUresult _WRAPLIB_API_CALL cuMemPoolExportToShareableHandle(void *arg0, CUmemoryPool arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  5832. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUmemoryPool, CUmemAllocationHandleType, unsigned long long);
  5833. ON_ENTRY(cuMemPoolExportToShareableHandle);
  5834. f_ptr_t f = (f_ptr_t)(g_func_table[153]);
  5835. return f(arg0, arg1, arg2, arg3);
  5836. }
  5837. CUresult _WRAPLIB_API_CALL cuMemPoolImportFromShareableHandle(CUmemoryPool *arg0, void *arg1, CUmemAllocationHandleType arg2, unsigned long long arg3) {
  5838. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemoryPool *, void *, CUmemAllocationHandleType, unsigned long long);
  5839. ON_ENTRY(cuMemPoolImportFromShareableHandle);
  5840. f_ptr_t f = (f_ptr_t)(g_func_table[154]);
  5841. return f(arg0, arg1, arg2, arg3);
  5842. }
  5843. CUresult _WRAPLIB_API_CALL cuMemPoolExportPointer(CUmemPoolPtrExportData *arg0, CUdeviceptr arg1) {
  5844. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmemPoolPtrExportData *, CUdeviceptr);
  5845. ON_ENTRY(cuMemPoolExportPointer);
  5846. f_ptr_t f = (f_ptr_t)(g_func_table[155]);
  5847. return f(arg0, arg1);
  5848. }
  5849. CUresult _WRAPLIB_API_CALL cuMemPoolImportPointer(CUdeviceptr *arg0, CUmemoryPool arg1, CUmemPoolPtrExportData *arg2) {
  5850. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, CUmemoryPool, CUmemPoolPtrExportData *);
  5851. ON_ENTRY(cuMemPoolImportPointer);
  5852. f_ptr_t f = (f_ptr_t)(g_func_table[156]);
  5853. return f(arg0, arg1, arg2);
  5854. }
  5855. CUresult _WRAPLIB_API_CALL cuPointerGetAttribute(void *arg0, CUpointer_attribute arg1, CUdeviceptr arg2) {
  5856. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUpointer_attribute, CUdeviceptr);
  5857. ON_ENTRY(cuPointerGetAttribute);
  5858. f_ptr_t f = (f_ptr_t)(g_func_table[157]);
  5859. return f(arg0, arg1, arg2);
  5860. }
  5861. CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync_ptsz(CUdeviceptr arg0, size_t arg1, CUdevice arg2, CUstream arg3) {
  5862. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, CUdevice, CUstream);
  5863. ON_ENTRY(cuMemPrefetchAsync_ptsz);
  5864. f_ptr_t f = (f_ptr_t)(g_func_table[158]);
  5865. return f(arg0, arg1, arg2, arg3);
  5866. }
  5867. CUresult _WRAPLIB_API_CALL cuMemAdvise(CUdeviceptr arg0, size_t arg1, CUmem_advise arg2, CUdevice arg3) {
  5868. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, CUmem_advise, CUdevice);
  5869. ON_ENTRY(cuMemAdvise);
  5870. f_ptr_t f = (f_ptr_t)(g_func_table[159]);
  5871. return f(arg0, arg1, arg2, arg3);
  5872. }
  5873. CUresult _WRAPLIB_API_CALL cuMemRangeGetAttribute(void *arg0, size_t arg1, CUmem_range_attribute arg2, CUdeviceptr arg3, size_t arg4) {
  5874. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, size_t, CUmem_range_attribute, CUdeviceptr, size_t);
  5875. ON_ENTRY(cuMemRangeGetAttribute);
  5876. f_ptr_t f = (f_ptr_t)(g_func_table[160]);
  5877. return f(arg0, arg1, arg2, arg3, arg4);
  5878. }
  5879. CUresult _WRAPLIB_API_CALL cuMemRangeGetAttributes(void **arg0, size_t *arg1, CUmem_range_attribute *arg2, size_t arg3, CUdeviceptr arg4, size_t arg5) {
  5880. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void **, size_t *, CUmem_range_attribute *, size_t, CUdeviceptr, size_t);
  5881. ON_ENTRY(cuMemRangeGetAttributes);
  5882. f_ptr_t f = (f_ptr_t)(g_func_table[161]);
  5883. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5884. }
  5885. CUresult _WRAPLIB_API_CALL cuPointerSetAttribute(const void *arg0, CUpointer_attribute arg1, CUdeviceptr arg2) {
  5886. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const void *, CUpointer_attribute, CUdeviceptr);
  5887. ON_ENTRY(cuPointerSetAttribute);
  5888. f_ptr_t f = (f_ptr_t)(g_func_table[162]);
  5889. return f(arg0, arg1, arg2);
  5890. }
  5891. CUresult _WRAPLIB_API_CALL cuPointerGetAttributes(unsigned int arg0, CUpointer_attribute *arg1, void **arg2, CUdeviceptr arg3) {
  5892. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUpointer_attribute *, void **, CUdeviceptr);
  5893. ON_ENTRY(cuPointerGetAttributes);
  5894. f_ptr_t f = (f_ptr_t)(g_func_table[163]);
  5895. return f(arg0, arg1, arg2, arg3);
  5896. }
  5897. CUresult _WRAPLIB_API_CALL cuStreamCreate(CUstream *arg0, unsigned int arg1) {
  5898. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream *, unsigned int);
  5899. ON_ENTRY(cuStreamCreate);
  5900. f_ptr_t f = (f_ptr_t)(g_func_table[164]);
  5901. return f(arg0, arg1);
  5902. }
  5903. CUresult _WRAPLIB_API_CALL cuStreamCreateWithPriority(CUstream *arg0, unsigned int arg1, int arg2) {
  5904. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream *, unsigned int, int);
  5905. ON_ENTRY(cuStreamCreateWithPriority);
  5906. f_ptr_t f = (f_ptr_t)(g_func_table[165]);
  5907. return f(arg0, arg1, arg2);
  5908. }
  5909. CUresult _WRAPLIB_API_CALL cuStreamGetPriority_ptsz(CUstream arg0, int *arg1) {
  5910. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, int *);
  5911. ON_ENTRY(cuStreamGetPriority_ptsz);
  5912. f_ptr_t f = (f_ptr_t)(g_func_table[166]);
  5913. return f(arg0, arg1);
  5914. }
  5915. CUresult _WRAPLIB_API_CALL cuStreamGetFlags_ptsz(CUstream arg0, unsigned int *arg1) {
  5916. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, unsigned int *);
  5917. ON_ENTRY(cuStreamGetFlags_ptsz);
  5918. f_ptr_t f = (f_ptr_t)(g_func_table[167]);
  5919. return f(arg0, arg1);
  5920. }
  5921. CUresult _WRAPLIB_API_CALL cuStreamGetCtx_ptsz(CUstream arg0, CUcontext *arg1) {
  5922. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUcontext *);
  5923. ON_ENTRY(cuStreamGetCtx_ptsz);
  5924. f_ptr_t f = (f_ptr_t)(g_func_table[168]);
  5925. return f(arg0, arg1);
  5926. }
  5927. CUresult _WRAPLIB_API_CALL cuStreamWaitEvent_ptsz(CUstream arg0, CUevent arg1, unsigned int arg2) {
  5928. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUevent, unsigned int);
  5929. ON_ENTRY(cuStreamWaitEvent_ptsz);
  5930. f_ptr_t f = (f_ptr_t)(g_func_table[169]);
  5931. return f(arg0, arg1, arg2);
  5932. }
  5933. CUresult _WRAPLIB_API_CALL cuStreamAddCallback_ptsz(CUstream arg0, CUstreamCallback arg1, void *arg2, unsigned int arg3) {
  5934. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCallback, void *, unsigned int);
  5935. ON_ENTRY(cuStreamAddCallback_ptsz);
  5936. f_ptr_t f = (f_ptr_t)(g_func_table[170]);
  5937. return f(arg0, arg1, arg2, arg3);
  5938. }
  5939. CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2_ptsz(CUstream arg0, CUstreamCaptureMode arg1) {
  5940. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureMode);
  5941. ON_ENTRY(cuStreamBeginCapture_v2_ptsz);
  5942. f_ptr_t f = (f_ptr_t)(g_func_table[171]);
  5943. return f(arg0, arg1);
  5944. }
  5945. CUresult _WRAPLIB_API_CALL cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode *arg0) {
  5946. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstreamCaptureMode *);
  5947. ON_ENTRY(cuThreadExchangeStreamCaptureMode);
  5948. f_ptr_t f = (f_ptr_t)(g_func_table[172]);
  5949. return f(arg0);
  5950. }
  5951. CUresult _WRAPLIB_API_CALL cuStreamEndCapture_ptsz(CUstream arg0, CUgraph *arg1) {
  5952. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUgraph *);
  5953. ON_ENTRY(cuStreamEndCapture_ptsz);
  5954. f_ptr_t f = (f_ptr_t)(g_func_table[173]);
  5955. return f(arg0, arg1);
  5956. }
  5957. CUresult _WRAPLIB_API_CALL cuStreamIsCapturing_ptsz(CUstream arg0, CUstreamCaptureStatus *arg1) {
  5958. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *);
  5959. ON_ENTRY(cuStreamIsCapturing_ptsz);
  5960. f_ptr_t f = (f_ptr_t)(g_func_table[174]);
  5961. return f(arg0, arg1);
  5962. }
  5963. CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_ptsz(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2) {
  5964. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *, cuuint64_t *);
  5965. ON_ENTRY(cuStreamGetCaptureInfo_ptsz);
  5966. f_ptr_t f = (f_ptr_t)(g_func_table[175]);
  5967. return f(arg0, arg1, arg2);
  5968. }
  5969. CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2_ptsz(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2, CUgraph *arg3, const CUgraphNode **arg4, size_t *arg5) {
  5970. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, const CUgraphNode **, size_t *);
  5971. ON_ENTRY(cuStreamGetCaptureInfo_v2_ptsz);
  5972. f_ptr_t f = (f_ptr_t)(g_func_table[176]);
  5973. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  5974. }
  5975. CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies_ptsz(CUstream arg0, CUgraphNode *arg1, size_t arg2, unsigned int arg3) {
  5976. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUgraphNode *, size_t, unsigned int);
  5977. ON_ENTRY(cuStreamUpdateCaptureDependencies_ptsz);
  5978. f_ptr_t f = (f_ptr_t)(g_func_table[177]);
  5979. return f(arg0, arg1, arg2, arg3);
  5980. }
  5981. CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync_ptsz(CUstream arg0, CUdeviceptr arg1, size_t arg2, unsigned int arg3) {
  5982. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, size_t, unsigned int);
  5983. ON_ENTRY(cuStreamAttachMemAsync_ptsz);
  5984. f_ptr_t f = (f_ptr_t)(g_func_table[178]);
  5985. return f(arg0, arg1, arg2, arg3);
  5986. }
  5987. CUresult _WRAPLIB_API_CALL cuStreamQuery_ptsz(CUstream arg0) {
  5988. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  5989. ON_ENTRY(cuStreamQuery_ptsz);
  5990. f_ptr_t f = (f_ptr_t)(g_func_table[179]);
  5991. return f(arg0);
  5992. }
  5993. CUresult _WRAPLIB_API_CALL cuStreamSynchronize_ptsz(CUstream arg0) {
  5994. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  5995. ON_ENTRY(cuStreamSynchronize_ptsz);
  5996. f_ptr_t f = (f_ptr_t)(g_func_table[180]);
  5997. return f(arg0);
  5998. }
  5999. CUresult _WRAPLIB_API_CALL cuStreamDestroy_v2(CUstream arg0) {
  6000. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  6001. ON_ENTRY(cuStreamDestroy_v2);
  6002. f_ptr_t f = (f_ptr_t)(g_func_table[181]);
  6003. return f(arg0);
  6004. }
  6005. CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes_ptsz(CUstream arg0, CUstream arg1) {
  6006. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstream);
  6007. ON_ENTRY(cuStreamCopyAttributes_ptsz);
  6008. f_ptr_t f = (f_ptr_t)(g_func_table[182]);
  6009. return f(arg0, arg1);
  6010. }
  6011. CUresult _WRAPLIB_API_CALL cuStreamGetAttribute_ptsz(CUstream arg0, CUstreamAttrID arg1, CUstreamAttrValue *arg2) {
  6012. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamAttrID, CUstreamAttrValue *);
  6013. ON_ENTRY(cuStreamGetAttribute_ptsz);
  6014. f_ptr_t f = (f_ptr_t)(g_func_table[183]);
  6015. return f(arg0, arg1, arg2);
  6016. }
  6017. CUresult _WRAPLIB_API_CALL cuStreamSetAttribute_ptsz(CUstream arg0, CUstreamAttrID arg1, const CUstreamAttrValue *arg2) {
  6018. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamAttrID, const CUstreamAttrValue *);
  6019. ON_ENTRY(cuStreamSetAttribute_ptsz);
  6020. f_ptr_t f = (f_ptr_t)(g_func_table[184]);
  6021. return f(arg0, arg1, arg2);
  6022. }
  6023. CUresult _WRAPLIB_API_CALL cuEventCreate(CUevent *arg0, unsigned int arg1) {
  6024. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent *, unsigned int);
  6025. ON_ENTRY(cuEventCreate);
  6026. f_ptr_t f = (f_ptr_t)(g_func_table[185]);
  6027. return f(arg0, arg1);
  6028. }
  6029. CUresult _WRAPLIB_API_CALL cuEventRecord_ptsz(CUevent arg0, CUstream arg1) {
  6030. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent, CUstream);
  6031. ON_ENTRY(cuEventRecord_ptsz);
  6032. f_ptr_t f = (f_ptr_t)(g_func_table[186]);
  6033. return f(arg0, arg1);
  6034. }
  6035. CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags_ptsz(CUevent arg0, CUstream arg1, unsigned int arg2) {
  6036. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent, CUstream, unsigned int);
  6037. ON_ENTRY(cuEventRecordWithFlags_ptsz);
  6038. f_ptr_t f = (f_ptr_t)(g_func_table[187]);
  6039. return f(arg0, arg1, arg2);
  6040. }
  6041. CUresult _WRAPLIB_API_CALL cuEventQuery(CUevent arg0) {
  6042. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent);
  6043. ON_ENTRY(cuEventQuery);
  6044. f_ptr_t f = (f_ptr_t)(g_func_table[188]);
  6045. return f(arg0);
  6046. }
  6047. CUresult _WRAPLIB_API_CALL cuEventSynchronize(CUevent arg0) {
  6048. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent);
  6049. ON_ENTRY(cuEventSynchronize);
  6050. f_ptr_t f = (f_ptr_t)(g_func_table[189]);
  6051. return f(arg0);
  6052. }
  6053. CUresult _WRAPLIB_API_CALL cuEventDestroy_v2(CUevent arg0) {
  6054. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent);
  6055. ON_ENTRY(cuEventDestroy_v2);
  6056. f_ptr_t f = (f_ptr_t)(g_func_table[190]);
  6057. return f(arg0);
  6058. }
  6059. CUresult _WRAPLIB_API_CALL cuEventElapsedTime(float *arg0, CUevent arg1, CUevent arg2) {
  6060. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(float *, CUevent, CUevent);
  6061. ON_ENTRY(cuEventElapsedTime);
  6062. f_ptr_t f = (f_ptr_t)(g_func_table[191]);
  6063. return f(arg0, arg1, arg2);
  6064. }
  6065. CUresult _WRAPLIB_API_CALL cuImportExternalMemory(CUexternalMemory *arg0, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC *arg1) {
  6066. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUexternalMemory *, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC *);
  6067. ON_ENTRY(cuImportExternalMemory);
  6068. f_ptr_t f = (f_ptr_t)(g_func_table[192]);
  6069. return f(arg0, arg1);
  6070. }
  6071. CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedBuffer(CUdeviceptr *arg0, CUexternalMemory arg1, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC *arg2) {
  6072. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC *);
  6073. ON_ENTRY(cuExternalMemoryGetMappedBuffer);
  6074. f_ptr_t f = (f_ptr_t)(g_func_table[193]);
  6075. return f(arg0, arg1, arg2);
  6076. }
  6077. CUresult _WRAPLIB_API_CALL cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray *arg0, CUexternalMemory arg1, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC *arg2) {
  6078. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmipmappedArray *, CUexternalMemory, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC *);
  6079. ON_ENTRY(cuExternalMemoryGetMappedMipmappedArray);
  6080. f_ptr_t f = (f_ptr_t)(g_func_table[194]);
  6081. return f(arg0, arg1, arg2);
  6082. }
  6083. CUresult _WRAPLIB_API_CALL cuDestroyExternalMemory(CUexternalMemory arg0) {
  6084. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUexternalMemory);
  6085. ON_ENTRY(cuDestroyExternalMemory);
  6086. f_ptr_t f = (f_ptr_t)(g_func_table[195]);
  6087. return f(arg0);
  6088. }
  6089. CUresult _WRAPLIB_API_CALL cuImportExternalSemaphore(CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC *arg1) {
  6090. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC *);
  6091. ON_ENTRY(cuImportExternalSemaphore);
  6092. f_ptr_t f = (f_ptr_t)(g_func_table[196]);
  6093. return f(arg0, arg1);
  6094. }
  6095. CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync_ptsz(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  6096. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *, unsigned int, CUstream);
  6097. ON_ENTRY(cuSignalExternalSemaphoresAsync_ptsz);
  6098. f_ptr_t f = (f_ptr_t)(g_func_table[197]);
  6099. return f(arg0, arg1, arg2, arg3);
  6100. }
  6101. CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync_ptsz(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  6102. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *, unsigned int, CUstream);
  6103. ON_ENTRY(cuWaitExternalSemaphoresAsync_ptsz);
  6104. f_ptr_t f = (f_ptr_t)(g_func_table[198]);
  6105. return f(arg0, arg1, arg2, arg3);
  6106. }
  6107. CUresult _WRAPLIB_API_CALL cuDestroyExternalSemaphore(CUexternalSemaphore arg0) {
  6108. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUexternalSemaphore);
  6109. ON_ENTRY(cuDestroyExternalSemaphore);
  6110. f_ptr_t f = (f_ptr_t)(g_func_table[199]);
  6111. return f(arg0);
  6112. }
  6113. CUresult _WRAPLIB_API_CALL cuStreamWaitValue32_ptsz(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  6114. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint32_t, unsigned int);
  6115. ON_ENTRY(cuStreamWaitValue32_ptsz);
  6116. f_ptr_t f = (f_ptr_t)(g_func_table[200]);
  6117. return f(arg0, arg1, arg2, arg3);
  6118. }
  6119. CUresult _WRAPLIB_API_CALL cuStreamWaitValue64_ptsz(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  6120. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint64_t, unsigned int);
  6121. ON_ENTRY(cuStreamWaitValue64_ptsz);
  6122. f_ptr_t f = (f_ptr_t)(g_func_table[201]);
  6123. return f(arg0, arg1, arg2, arg3);
  6124. }
  6125. CUresult _WRAPLIB_API_CALL cuStreamWriteValue32_ptsz(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  6126. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint32_t, unsigned int);
  6127. ON_ENTRY(cuStreamWriteValue32_ptsz);
  6128. f_ptr_t f = (f_ptr_t)(g_func_table[202]);
  6129. return f(arg0, arg1, arg2, arg3);
  6130. }
  6131. CUresult _WRAPLIB_API_CALL cuStreamWriteValue64_ptsz(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  6132. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint64_t, unsigned int);
  6133. ON_ENTRY(cuStreamWriteValue64_ptsz);
  6134. f_ptr_t f = (f_ptr_t)(g_func_table[203]);
  6135. return f(arg0, arg1, arg2, arg3);
  6136. }
  6137. CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp_ptsz(CUstream arg0, unsigned int arg1, CUstreamBatchMemOpParams *arg2, unsigned int arg3) {
  6138. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int);
  6139. ON_ENTRY(cuStreamBatchMemOp_ptsz);
  6140. f_ptr_t f = (f_ptr_t)(g_func_table[204]);
  6141. return f(arg0, arg1, arg2, arg3);
  6142. }
  6143. CUresult _WRAPLIB_API_CALL cuFuncGetAttribute(int *arg0, CUfunction_attribute arg1, CUfunction arg2) {
  6144. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUfunction_attribute, CUfunction);
  6145. ON_ENTRY(cuFuncGetAttribute);
  6146. f_ptr_t f = (f_ptr_t)(g_func_table[205]);
  6147. return f(arg0, arg1, arg2);
  6148. }
  6149. CUresult _WRAPLIB_API_CALL cuFuncSetAttribute(CUfunction arg0, CUfunction_attribute arg1, int arg2) {
  6150. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, CUfunction_attribute, int);
  6151. ON_ENTRY(cuFuncSetAttribute);
  6152. f_ptr_t f = (f_ptr_t)(g_func_table[206]);
  6153. return f(arg0, arg1, arg2);
  6154. }
  6155. CUresult _WRAPLIB_API_CALL cuFuncSetCacheConfig(CUfunction arg0, CUfunc_cache arg1) {
  6156. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, CUfunc_cache);
  6157. ON_ENTRY(cuFuncSetCacheConfig);
  6158. f_ptr_t f = (f_ptr_t)(g_func_table[207]);
  6159. return f(arg0, arg1);
  6160. }
  6161. CUresult _WRAPLIB_API_CALL cuFuncSetSharedMemConfig(CUfunction arg0, CUsharedconfig arg1) {
  6162. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, CUsharedconfig);
  6163. ON_ENTRY(cuFuncSetSharedMemConfig);
  6164. f_ptr_t f = (f_ptr_t)(g_func_table[208]);
  6165. return f(arg0, arg1);
  6166. }
  6167. CUresult _WRAPLIB_API_CALL cuFuncGetModule(CUmodule *arg0, CUfunction arg1) {
  6168. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmodule *, CUfunction);
  6169. ON_ENTRY(cuFuncGetModule);
  6170. f_ptr_t f = (f_ptr_t)(g_func_table[209]);
  6171. return f(arg0, arg1);
  6172. }
  6173. CUresult _WRAPLIB_API_CALL cuLaunchKernel_ptsz(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9, void **arg10) {
  6174. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **);
  6175. ON_ENTRY(cuLaunchKernel_ptsz);
  6176. f_ptr_t f = (f_ptr_t)(g_func_table[210]);
  6177. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  6178. }
  6179. CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel_ptsz(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9) {
  6180. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **);
  6181. ON_ENTRY(cuLaunchCooperativeKernel_ptsz);
  6182. f_ptr_t f = (f_ptr_t)(g_func_table[211]);
  6183. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  6184. }
  6185. CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS *arg0, unsigned int arg1, unsigned int arg2) {
  6186. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_LAUNCH_PARAMS *, unsigned int, unsigned int);
  6187. ON_ENTRY(cuLaunchCooperativeKernelMultiDevice);
  6188. f_ptr_t f = (f_ptr_t)(g_func_table[212]);
  6189. return f(arg0, arg1, arg2);
  6190. }
  6191. CUresult _WRAPLIB_API_CALL cuLaunchHostFunc_ptsz(CUstream arg0, CUhostFn arg1, void *arg2) {
  6192. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUhostFn, void *);
  6193. ON_ENTRY(cuLaunchHostFunc_ptsz);
  6194. f_ptr_t f = (f_ptr_t)(g_func_table[213]);
  6195. return f(arg0, arg1, arg2);
  6196. }
  6197. CUresult _WRAPLIB_API_CALL cuFuncSetBlockShape(CUfunction arg0, int arg1, int arg2, int arg3) {
  6198. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, int, int);
  6199. ON_ENTRY(cuFuncSetBlockShape);
  6200. f_ptr_t f = (f_ptr_t)(g_func_table[214]);
  6201. return f(arg0, arg1, arg2, arg3);
  6202. }
  6203. CUresult _WRAPLIB_API_CALL cuFuncSetSharedSize(CUfunction arg0, unsigned int arg1) {
  6204. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int);
  6205. ON_ENTRY(cuFuncSetSharedSize);
  6206. f_ptr_t f = (f_ptr_t)(g_func_table[215]);
  6207. return f(arg0, arg1);
  6208. }
  6209. CUresult _WRAPLIB_API_CALL cuParamSetSize(CUfunction arg0, unsigned int arg1) {
  6210. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int);
  6211. ON_ENTRY(cuParamSetSize);
  6212. f_ptr_t f = (f_ptr_t)(g_func_table[216]);
  6213. return f(arg0, arg1);
  6214. }
  6215. CUresult _WRAPLIB_API_CALL cuParamSeti(CUfunction arg0, int arg1, unsigned int arg2) {
  6216. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, unsigned int);
  6217. ON_ENTRY(cuParamSeti);
  6218. f_ptr_t f = (f_ptr_t)(g_func_table[217]);
  6219. return f(arg0, arg1, arg2);
  6220. }
  6221. CUresult _WRAPLIB_API_CALL cuParamSetf(CUfunction arg0, int arg1, float arg2) {
  6222. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, float);
  6223. ON_ENTRY(cuParamSetf);
  6224. f_ptr_t f = (f_ptr_t)(g_func_table[218]);
  6225. return f(arg0, arg1, arg2);
  6226. }
  6227. CUresult _WRAPLIB_API_CALL cuParamSetv(CUfunction arg0, int arg1, void *arg2, unsigned int arg3) {
  6228. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, void *, unsigned int);
  6229. ON_ENTRY(cuParamSetv);
  6230. f_ptr_t f = (f_ptr_t)(g_func_table[219]);
  6231. return f(arg0, arg1, arg2, arg3);
  6232. }
  6233. CUresult _WRAPLIB_API_CALL cuLaunch(CUfunction arg0) {
  6234. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction);
  6235. ON_ENTRY(cuLaunch);
  6236. f_ptr_t f = (f_ptr_t)(g_func_table[220]);
  6237. return f(arg0);
  6238. }
  6239. CUresult _WRAPLIB_API_CALL cuLaunchGrid(CUfunction arg0, int arg1, int arg2) {
  6240. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, int);
  6241. ON_ENTRY(cuLaunchGrid);
  6242. f_ptr_t f = (f_ptr_t)(g_func_table[221]);
  6243. return f(arg0, arg1, arg2);
  6244. }
  6245. CUresult _WRAPLIB_API_CALL cuLaunchGridAsync(CUfunction arg0, int arg1, int arg2, CUstream arg3) {
  6246. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, int, CUstream);
  6247. ON_ENTRY(cuLaunchGridAsync);
  6248. f_ptr_t f = (f_ptr_t)(g_func_table[222]);
  6249. return f(arg0, arg1, arg2, arg3);
  6250. }
  6251. CUresult _WRAPLIB_API_CALL cuParamSetTexRef(CUfunction arg0, int arg1, CUtexref arg2) {
  6252. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, int, CUtexref);
  6253. ON_ENTRY(cuParamSetTexRef);
  6254. f_ptr_t f = (f_ptr_t)(g_func_table[223]);
  6255. return f(arg0, arg1, arg2);
  6256. }
  6257. CUresult _WRAPLIB_API_CALL cuGraphCreate(CUgraph *arg0, unsigned int arg1) {
  6258. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph *, unsigned int);
  6259. ON_ENTRY(cuGraphCreate);
  6260. f_ptr_t f = (f_ptr_t)(g_func_table[224]);
  6261. return f(arg0, arg1);
  6262. }
  6263. CUresult _WRAPLIB_API_CALL cuGraphAddKernelNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_KERNEL_NODE_PARAMS *arg4) {
  6264. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_KERNEL_NODE_PARAMS *);
  6265. ON_ENTRY(cuGraphAddKernelNode);
  6266. f_ptr_t f = (f_ptr_t)(g_func_table[225]);
  6267. return f(arg0, arg1, arg2, arg3, arg4);
  6268. }
  6269. CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetParams(CUgraphNode arg0, CUDA_KERNEL_NODE_PARAMS *arg1) {
  6270. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_KERNEL_NODE_PARAMS *);
  6271. ON_ENTRY(cuGraphKernelNodeGetParams);
  6272. f_ptr_t f = (f_ptr_t)(g_func_table[226]);
  6273. return f(arg0, arg1);
  6274. }
  6275. CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetParams(CUgraphNode arg0, const CUDA_KERNEL_NODE_PARAMS *arg1) {
  6276. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_KERNEL_NODE_PARAMS *);
  6277. ON_ENTRY(cuGraphKernelNodeSetParams);
  6278. f_ptr_t f = (f_ptr_t)(g_func_table[227]);
  6279. return f(arg0, arg1);
  6280. }
  6281. CUresult _WRAPLIB_API_CALL cuGraphAddMemcpyNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_MEMCPY3D *arg4, CUcontext arg5) {
  6282. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_MEMCPY3D *, CUcontext);
  6283. ON_ENTRY(cuGraphAddMemcpyNode);
  6284. f_ptr_t f = (f_ptr_t)(g_func_table[228]);
  6285. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  6286. }
  6287. CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeGetParams(CUgraphNode arg0, CUDA_MEMCPY3D *arg1) {
  6288. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_MEMCPY3D *);
  6289. ON_ENTRY(cuGraphMemcpyNodeGetParams);
  6290. f_ptr_t f = (f_ptr_t)(g_func_table[229]);
  6291. return f(arg0, arg1);
  6292. }
  6293. CUresult _WRAPLIB_API_CALL cuGraphMemcpyNodeSetParams(CUgraphNode arg0, const CUDA_MEMCPY3D *arg1) {
  6294. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_MEMCPY3D *);
  6295. ON_ENTRY(cuGraphMemcpyNodeSetParams);
  6296. f_ptr_t f = (f_ptr_t)(g_func_table[230]);
  6297. return f(arg0, arg1);
  6298. }
  6299. CUresult _WRAPLIB_API_CALL cuGraphAddMemsetNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_MEMSET_NODE_PARAMS *arg4, CUcontext arg5) {
  6300. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_MEMSET_NODE_PARAMS *, CUcontext);
  6301. ON_ENTRY(cuGraphAddMemsetNode);
  6302. f_ptr_t f = (f_ptr_t)(g_func_table[231]);
  6303. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  6304. }
  6305. CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeGetParams(CUgraphNode arg0, CUDA_MEMSET_NODE_PARAMS *arg1) {
  6306. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_MEMSET_NODE_PARAMS *);
  6307. ON_ENTRY(cuGraphMemsetNodeGetParams);
  6308. f_ptr_t f = (f_ptr_t)(g_func_table[232]);
  6309. return f(arg0, arg1);
  6310. }
  6311. CUresult _WRAPLIB_API_CALL cuGraphMemsetNodeSetParams(CUgraphNode arg0, const CUDA_MEMSET_NODE_PARAMS *arg1) {
  6312. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_MEMSET_NODE_PARAMS *);
  6313. ON_ENTRY(cuGraphMemsetNodeSetParams);
  6314. f_ptr_t f = (f_ptr_t)(g_func_table[233]);
  6315. return f(arg0, arg1);
  6316. }
  6317. CUresult _WRAPLIB_API_CALL cuGraphAddHostNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_HOST_NODE_PARAMS *arg4) {
  6318. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_HOST_NODE_PARAMS *);
  6319. ON_ENTRY(cuGraphAddHostNode);
  6320. f_ptr_t f = (f_ptr_t)(g_func_table[234]);
  6321. return f(arg0, arg1, arg2, arg3, arg4);
  6322. }
  6323. CUresult _WRAPLIB_API_CALL cuGraphHostNodeGetParams(CUgraphNode arg0, CUDA_HOST_NODE_PARAMS *arg1) {
  6324. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_HOST_NODE_PARAMS *);
  6325. ON_ENTRY(cuGraphHostNodeGetParams);
  6326. f_ptr_t f = (f_ptr_t)(g_func_table[235]);
  6327. return f(arg0, arg1);
  6328. }
  6329. CUresult _WRAPLIB_API_CALL cuGraphHostNodeSetParams(CUgraphNode arg0, const CUDA_HOST_NODE_PARAMS *arg1) {
  6330. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_HOST_NODE_PARAMS *);
  6331. ON_ENTRY(cuGraphHostNodeSetParams);
  6332. f_ptr_t f = (f_ptr_t)(g_func_table[236]);
  6333. return f(arg0, arg1);
  6334. }
  6335. CUresult _WRAPLIB_API_CALL cuGraphAddChildGraphNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUgraph arg4) {
  6336. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUgraph);
  6337. ON_ENTRY(cuGraphAddChildGraphNode);
  6338. f_ptr_t f = (f_ptr_t)(g_func_table[237]);
  6339. return f(arg0, arg1, arg2, arg3, arg4);
  6340. }
  6341. CUresult _WRAPLIB_API_CALL cuGraphChildGraphNodeGetGraph(CUgraphNode arg0, CUgraph *arg1) {
  6342. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUgraph *);
  6343. ON_ENTRY(cuGraphChildGraphNodeGetGraph);
  6344. f_ptr_t f = (f_ptr_t)(g_func_table[238]);
  6345. return f(arg0, arg1);
  6346. }
  6347. CUresult _WRAPLIB_API_CALL cuGraphAddEmptyNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3) {
  6348. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t);
  6349. ON_ENTRY(cuGraphAddEmptyNode);
  6350. f_ptr_t f = (f_ptr_t)(g_func_table[239]);
  6351. return f(arg0, arg1, arg2, arg3);
  6352. }
  6353. CUresult _WRAPLIB_API_CALL cuGraphAddEventRecordNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUevent arg4) {
  6354. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUevent);
  6355. ON_ENTRY(cuGraphAddEventRecordNode);
  6356. f_ptr_t f = (f_ptr_t)(g_func_table[240]);
  6357. return f(arg0, arg1, arg2, arg3, arg4);
  6358. }
  6359. CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeGetEvent(CUgraphNode arg0, CUevent *arg1) {
  6360. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUevent *);
  6361. ON_ENTRY(cuGraphEventRecordNodeGetEvent);
  6362. f_ptr_t f = (f_ptr_t)(g_func_table[241]);
  6363. return f(arg0, arg1);
  6364. }
  6365. CUresult _WRAPLIB_API_CALL cuGraphEventRecordNodeSetEvent(CUgraphNode arg0, CUevent arg1) {
  6366. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUevent);
  6367. ON_ENTRY(cuGraphEventRecordNodeSetEvent);
  6368. f_ptr_t f = (f_ptr_t)(g_func_table[242]);
  6369. return f(arg0, arg1);
  6370. }
  6371. CUresult _WRAPLIB_API_CALL cuGraphAddEventWaitNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUevent arg4) {
  6372. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUevent);
  6373. ON_ENTRY(cuGraphAddEventWaitNode);
  6374. f_ptr_t f = (f_ptr_t)(g_func_table[243]);
  6375. return f(arg0, arg1, arg2, arg3, arg4);
  6376. }
  6377. CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeGetEvent(CUgraphNode arg0, CUevent *arg1) {
  6378. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUevent *);
  6379. ON_ENTRY(cuGraphEventWaitNodeGetEvent);
  6380. f_ptr_t f = (f_ptr_t)(g_func_table[244]);
  6381. return f(arg0, arg1);
  6382. }
  6383. CUresult _WRAPLIB_API_CALL cuGraphEventWaitNodeSetEvent(CUgraphNode arg0, CUevent arg1) {
  6384. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUevent);
  6385. ON_ENTRY(cuGraphEventWaitNodeSetEvent);
  6386. f_ptr_t f = (f_ptr_t)(g_func_table[245]);
  6387. return f(arg0, arg1);
  6388. }
  6389. CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresSignalNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg4) {
  6390. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *);
  6391. ON_ENTRY(cuGraphAddExternalSemaphoresSignalNode);
  6392. f_ptr_t f = (f_ptr_t)(g_func_table[246]);
  6393. return f(arg0, arg1, arg2, arg3, arg4);
  6394. }
  6395. CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode arg0, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg1) {
  6396. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *);
  6397. ON_ENTRY(cuGraphExternalSemaphoresSignalNodeGetParams);
  6398. f_ptr_t f = (f_ptr_t)(g_func_table[247]);
  6399. return f(arg0, arg1);
  6400. }
  6401. CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode arg0, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg1) {
  6402. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *);
  6403. ON_ENTRY(cuGraphExternalSemaphoresSignalNodeSetParams);
  6404. f_ptr_t f = (f_ptr_t)(g_func_table[248]);
  6405. return f(arg0, arg1);
  6406. }
  6407. CUresult _WRAPLIB_API_CALL cuGraphAddExternalSemaphoresWaitNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg4) {
  6408. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *);
  6409. ON_ENTRY(cuGraphAddExternalSemaphoresWaitNode);
  6410. f_ptr_t f = (f_ptr_t)(g_func_table[249]);
  6411. return f(arg0, arg1, arg2, arg3, arg4);
  6412. }
  6413. CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode arg0, CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg1) {
  6414. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS *);
  6415. ON_ENTRY(cuGraphExternalSemaphoresWaitNodeGetParams);
  6416. f_ptr_t f = (f_ptr_t)(g_func_table[250]);
  6417. return f(arg0, arg1);
  6418. }
  6419. CUresult _WRAPLIB_API_CALL cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode arg0, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg1) {
  6420. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *);
  6421. ON_ENTRY(cuGraphExternalSemaphoresWaitNodeSetParams);
  6422. f_ptr_t f = (f_ptr_t)(g_func_table[251]);
  6423. return f(arg0, arg1);
  6424. }
  6425. CUresult _WRAPLIB_API_CALL cuGraphAddMemAllocNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUDA_MEM_ALLOC_NODE_PARAMS *arg4) {
  6426. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUDA_MEM_ALLOC_NODE_PARAMS *);
  6427. ON_ENTRY(cuGraphAddMemAllocNode);
  6428. f_ptr_t f = (f_ptr_t)(g_func_table[252]);
  6429. return f(arg0, arg1, arg2, arg3, arg4);
  6430. }
  6431. CUresult _WRAPLIB_API_CALL cuGraphMemAllocNodeGetParams(CUgraphNode arg0, CUDA_MEM_ALLOC_NODE_PARAMS *arg1) {
  6432. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUDA_MEM_ALLOC_NODE_PARAMS *);
  6433. ON_ENTRY(cuGraphMemAllocNodeGetParams);
  6434. f_ptr_t f = (f_ptr_t)(g_func_table[253]);
  6435. return f(arg0, arg1);
  6436. }
  6437. CUresult _WRAPLIB_API_CALL cuGraphAddMemFreeNode(CUgraphNode *arg0, CUgraph arg1, const CUgraphNode *arg2, size_t arg3, CUdeviceptr arg4) {
  6438. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraph, const CUgraphNode *, size_t, CUdeviceptr);
  6439. ON_ENTRY(cuGraphAddMemFreeNode);
  6440. f_ptr_t f = (f_ptr_t)(g_func_table[254]);
  6441. return f(arg0, arg1, arg2, arg3, arg4);
  6442. }
  6443. CUresult _WRAPLIB_API_CALL cuGraphMemFreeNodeGetParams(CUgraphNode arg0, CUdeviceptr *arg1) {
  6444. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUdeviceptr *);
  6445. ON_ENTRY(cuGraphMemFreeNodeGetParams);
  6446. f_ptr_t f = (f_ptr_t)(g_func_table[255]);
  6447. return f(arg0, arg1);
  6448. }
  6449. CUresult _WRAPLIB_API_CALL cuDeviceGraphMemTrim(CUdevice arg0) {
  6450. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice);
  6451. ON_ENTRY(cuDeviceGraphMemTrim);
  6452. f_ptr_t f = (f_ptr_t)(g_func_table[256]);
  6453. return f(arg0);
  6454. }
  6455. CUresult _WRAPLIB_API_CALL cuDeviceGetGraphMemAttribute(CUdevice arg0, CUgraphMem_attribute arg1, void *arg2) {
  6456. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, CUgraphMem_attribute, void *);
  6457. ON_ENTRY(cuDeviceGetGraphMemAttribute);
  6458. f_ptr_t f = (f_ptr_t)(g_func_table[257]);
  6459. return f(arg0, arg1, arg2);
  6460. }
  6461. CUresult _WRAPLIB_API_CALL cuDeviceSetGraphMemAttribute(CUdevice arg0, CUgraphMem_attribute arg1, void *arg2) {
  6462. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, CUgraphMem_attribute, void *);
  6463. ON_ENTRY(cuDeviceSetGraphMemAttribute);
  6464. f_ptr_t f = (f_ptr_t)(g_func_table[258]);
  6465. return f(arg0, arg1, arg2);
  6466. }
  6467. CUresult _WRAPLIB_API_CALL cuGraphClone(CUgraph *arg0, CUgraph arg1) {
  6468. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph *, CUgraph);
  6469. ON_ENTRY(cuGraphClone);
  6470. f_ptr_t f = (f_ptr_t)(g_func_table[259]);
  6471. return f(arg0, arg1);
  6472. }
  6473. CUresult _WRAPLIB_API_CALL cuGraphNodeFindInClone(CUgraphNode *arg0, CUgraphNode arg1, CUgraph arg2) {
  6474. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode *, CUgraphNode, CUgraph);
  6475. ON_ENTRY(cuGraphNodeFindInClone);
  6476. f_ptr_t f = (f_ptr_t)(g_func_table[260]);
  6477. return f(arg0, arg1, arg2);
  6478. }
  6479. CUresult _WRAPLIB_API_CALL cuGraphNodeGetType(CUgraphNode arg0, CUgraphNodeType *arg1) {
  6480. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUgraphNodeType *);
  6481. ON_ENTRY(cuGraphNodeGetType);
  6482. f_ptr_t f = (f_ptr_t)(g_func_table[261]);
  6483. return f(arg0, arg1);
  6484. }
  6485. CUresult _WRAPLIB_API_CALL cuGraphGetNodes(CUgraph arg0, CUgraphNode *arg1, size_t *arg2) {
  6486. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, CUgraphNode *, size_t *);
  6487. ON_ENTRY(cuGraphGetNodes);
  6488. f_ptr_t f = (f_ptr_t)(g_func_table[262]);
  6489. return f(arg0, arg1, arg2);
  6490. }
  6491. CUresult _WRAPLIB_API_CALL cuGraphGetRootNodes(CUgraph arg0, CUgraphNode *arg1, size_t *arg2) {
  6492. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, CUgraphNode *, size_t *);
  6493. ON_ENTRY(cuGraphGetRootNodes);
  6494. f_ptr_t f = (f_ptr_t)(g_func_table[263]);
  6495. return f(arg0, arg1, arg2);
  6496. }
  6497. CUresult _WRAPLIB_API_CALL cuGraphGetEdges(CUgraph arg0, CUgraphNode *arg1, CUgraphNode *arg2, size_t *arg3) {
  6498. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, CUgraphNode *, CUgraphNode *, size_t *);
  6499. ON_ENTRY(cuGraphGetEdges);
  6500. f_ptr_t f = (f_ptr_t)(g_func_table[264]);
  6501. return f(arg0, arg1, arg2, arg3);
  6502. }
  6503. CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependencies(CUgraphNode arg0, CUgraphNode *arg1, size_t *arg2) {
  6504. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUgraphNode *, size_t *);
  6505. ON_ENTRY(cuGraphNodeGetDependencies);
  6506. f_ptr_t f = (f_ptr_t)(g_func_table[265]);
  6507. return f(arg0, arg1, arg2);
  6508. }
  6509. CUresult _WRAPLIB_API_CALL cuGraphNodeGetDependentNodes(CUgraphNode arg0, CUgraphNode *arg1, size_t *arg2) {
  6510. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUgraphNode *, size_t *);
  6511. ON_ENTRY(cuGraphNodeGetDependentNodes);
  6512. f_ptr_t f = (f_ptr_t)(g_func_table[266]);
  6513. return f(arg0, arg1, arg2);
  6514. }
  6515. CUresult _WRAPLIB_API_CALL cuGraphAddDependencies(CUgraph arg0, const CUgraphNode *arg1, const CUgraphNode *arg2, size_t arg3) {
  6516. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, const CUgraphNode *, const CUgraphNode *, size_t);
  6517. ON_ENTRY(cuGraphAddDependencies);
  6518. f_ptr_t f = (f_ptr_t)(g_func_table[267]);
  6519. return f(arg0, arg1, arg2, arg3);
  6520. }
  6521. CUresult _WRAPLIB_API_CALL cuGraphRemoveDependencies(CUgraph arg0, const CUgraphNode *arg1, const CUgraphNode *arg2, size_t arg3) {
  6522. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, const CUgraphNode *, const CUgraphNode *, size_t);
  6523. ON_ENTRY(cuGraphRemoveDependencies);
  6524. f_ptr_t f = (f_ptr_t)(g_func_table[268]);
  6525. return f(arg0, arg1, arg2, arg3);
  6526. }
  6527. CUresult _WRAPLIB_API_CALL cuGraphDestroyNode(CUgraphNode arg0) {
  6528. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode);
  6529. ON_ENTRY(cuGraphDestroyNode);
  6530. f_ptr_t f = (f_ptr_t)(g_func_table[269]);
  6531. return f(arg0);
  6532. }
  6533. CUresult _WRAPLIB_API_CALL cuGraphInstantiate_v2(CUgraphExec *arg0, CUgraph arg1, CUgraphNode *arg2, char *arg3, size_t arg4) {
  6534. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec *, CUgraph, CUgraphNode *, char *, size_t);
  6535. ON_ENTRY(cuGraphInstantiate_v2);
  6536. f_ptr_t f = (f_ptr_t)(g_func_table[270]);
  6537. return f(arg0, arg1, arg2, arg3, arg4);
  6538. }
  6539. CUresult _WRAPLIB_API_CALL cuGraphInstantiateWithFlags(CUgraphExec *arg0, CUgraph arg1, unsigned long long arg2) {
  6540. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec *, CUgraph, unsigned long long);
  6541. ON_ENTRY(cuGraphInstantiateWithFlags);
  6542. f_ptr_t f = (f_ptr_t)(g_func_table[271]);
  6543. return f(arg0, arg1, arg2);
  6544. }
  6545. CUresult _WRAPLIB_API_CALL cuGraphExecKernelNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_KERNEL_NODE_PARAMS *arg2) {
  6546. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_KERNEL_NODE_PARAMS *);
  6547. ON_ENTRY(cuGraphExecKernelNodeSetParams);
  6548. f_ptr_t f = (f_ptr_t)(g_func_table[272]);
  6549. return f(arg0, arg1, arg2);
  6550. }
  6551. CUresult _WRAPLIB_API_CALL cuGraphExecMemcpyNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_MEMCPY3D *arg2, CUcontext arg3) {
  6552. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_MEMCPY3D *, CUcontext);
  6553. ON_ENTRY(cuGraphExecMemcpyNodeSetParams);
  6554. f_ptr_t f = (f_ptr_t)(g_func_table[273]);
  6555. return f(arg0, arg1, arg2, arg3);
  6556. }
  6557. CUresult _WRAPLIB_API_CALL cuGraphExecMemsetNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_MEMSET_NODE_PARAMS *arg2, CUcontext arg3) {
  6558. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_MEMSET_NODE_PARAMS *, CUcontext);
  6559. ON_ENTRY(cuGraphExecMemsetNodeSetParams);
  6560. f_ptr_t f = (f_ptr_t)(g_func_table[274]);
  6561. return f(arg0, arg1, arg2, arg3);
  6562. }
  6563. CUresult _WRAPLIB_API_CALL cuGraphExecHostNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_HOST_NODE_PARAMS *arg2) {
  6564. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_HOST_NODE_PARAMS *);
  6565. ON_ENTRY(cuGraphExecHostNodeSetParams);
  6566. f_ptr_t f = (f_ptr_t)(g_func_table[275]);
  6567. return f(arg0, arg1, arg2);
  6568. }
  6569. CUresult _WRAPLIB_API_CALL cuGraphExecChildGraphNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, CUgraph arg2) {
  6570. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, CUgraph);
  6571. ON_ENTRY(cuGraphExecChildGraphNodeSetParams);
  6572. f_ptr_t f = (f_ptr_t)(g_func_table[276]);
  6573. return f(arg0, arg1, arg2);
  6574. }
  6575. CUresult _WRAPLIB_API_CALL cuGraphExecEventRecordNodeSetEvent(CUgraphExec arg0, CUgraphNode arg1, CUevent arg2) {
  6576. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, CUevent);
  6577. ON_ENTRY(cuGraphExecEventRecordNodeSetEvent);
  6578. f_ptr_t f = (f_ptr_t)(g_func_table[277]);
  6579. return f(arg0, arg1, arg2);
  6580. }
  6581. CUresult _WRAPLIB_API_CALL cuGraphExecEventWaitNodeSetEvent(CUgraphExec arg0, CUgraphNode arg1, CUevent arg2) {
  6582. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, CUevent);
  6583. ON_ENTRY(cuGraphExecEventWaitNodeSetEvent);
  6584. f_ptr_t f = (f_ptr_t)(g_func_table[278]);
  6585. return f(arg0, arg1, arg2);
  6586. }
  6587. CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *arg2) {
  6588. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS *);
  6589. ON_ENTRY(cuGraphExecExternalSemaphoresSignalNodeSetParams);
  6590. f_ptr_t f = (f_ptr_t)(g_func_table[279]);
  6591. return f(arg0, arg1, arg2);
  6592. }
  6593. CUresult _WRAPLIB_API_CALL cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec arg0, CUgraphNode arg1, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *arg2) {
  6594. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraphNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS *);
  6595. ON_ENTRY(cuGraphExecExternalSemaphoresWaitNodeSetParams);
  6596. f_ptr_t f = (f_ptr_t)(g_func_table[280]);
  6597. return f(arg0, arg1, arg2);
  6598. }
  6599. CUresult _WRAPLIB_API_CALL cuGraphUpload_ptsz(CUgraphExec arg0, CUstream arg1) {
  6600. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUstream);
  6601. ON_ENTRY(cuGraphUpload_ptsz);
  6602. f_ptr_t f = (f_ptr_t)(g_func_table[281]);
  6603. return f(arg0, arg1);
  6604. }
  6605. CUresult _WRAPLIB_API_CALL cuGraphLaunch_ptsz(CUgraphExec arg0, CUstream arg1) {
  6606. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUstream);
  6607. ON_ENTRY(cuGraphLaunch_ptsz);
  6608. f_ptr_t f = (f_ptr_t)(g_func_table[282]);
  6609. return f(arg0, arg1);
  6610. }
  6611. CUresult _WRAPLIB_API_CALL cuGraphExecDestroy(CUgraphExec arg0) {
  6612. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec);
  6613. ON_ENTRY(cuGraphExecDestroy);
  6614. f_ptr_t f = (f_ptr_t)(g_func_table[283]);
  6615. return f(arg0);
  6616. }
  6617. CUresult _WRAPLIB_API_CALL cuGraphDestroy(CUgraph arg0) {
  6618. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph);
  6619. ON_ENTRY(cuGraphDestroy);
  6620. f_ptr_t f = (f_ptr_t)(g_func_table[284]);
  6621. return f(arg0);
  6622. }
  6623. CUresult _WRAPLIB_API_CALL cuGraphExecUpdate(CUgraphExec arg0, CUgraph arg1, CUgraphNode *arg2, CUgraphExecUpdateResult *arg3) {
  6624. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUgraph, CUgraphNode *, CUgraphExecUpdateResult *);
  6625. ON_ENTRY(cuGraphExecUpdate);
  6626. f_ptr_t f = (f_ptr_t)(g_func_table[285]);
  6627. return f(arg0, arg1, arg2, arg3);
  6628. }
  6629. CUresult _WRAPLIB_API_CALL cuGraphKernelNodeCopyAttributes(CUgraphNode arg0, CUgraphNode arg1) {
  6630. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUgraphNode);
  6631. ON_ENTRY(cuGraphKernelNodeCopyAttributes);
  6632. f_ptr_t f = (f_ptr_t)(g_func_table[286]);
  6633. return f(arg0, arg1);
  6634. }
  6635. CUresult _WRAPLIB_API_CALL cuGraphKernelNodeGetAttribute(CUgraphNode arg0, CUkernelNodeAttrID arg1, CUkernelNodeAttrValue *arg2) {
  6636. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUkernelNodeAttrID, CUkernelNodeAttrValue *);
  6637. ON_ENTRY(cuGraphKernelNodeGetAttribute);
  6638. f_ptr_t f = (f_ptr_t)(g_func_table[287]);
  6639. return f(arg0, arg1, arg2);
  6640. }
  6641. CUresult _WRAPLIB_API_CALL cuGraphKernelNodeSetAttribute(CUgraphNode arg0, CUkernelNodeAttrID arg1, const CUkernelNodeAttrValue *arg2) {
  6642. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphNode, CUkernelNodeAttrID, const CUkernelNodeAttrValue *);
  6643. ON_ENTRY(cuGraphKernelNodeSetAttribute);
  6644. f_ptr_t f = (f_ptr_t)(g_func_table[288]);
  6645. return f(arg0, arg1, arg2);
  6646. }
  6647. CUresult _WRAPLIB_API_CALL cuGraphDebugDotPrint(CUgraph arg0, const char *arg1, unsigned int arg2) {
  6648. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, const char *, unsigned int);
  6649. ON_ENTRY(cuGraphDebugDotPrint);
  6650. f_ptr_t f = (f_ptr_t)(g_func_table[289]);
  6651. return f(arg0, arg1, arg2);
  6652. }
  6653. CUresult _WRAPLIB_API_CALL cuUserObjectCreate(CUuserObject *arg0, void *arg1, CUhostFn arg2, unsigned int arg3, unsigned int arg4) {
  6654. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUuserObject *, void *, CUhostFn, unsigned int, unsigned int);
  6655. ON_ENTRY(cuUserObjectCreate);
  6656. f_ptr_t f = (f_ptr_t)(g_func_table[290]);
  6657. return f(arg0, arg1, arg2, arg3, arg4);
  6658. }
  6659. CUresult _WRAPLIB_API_CALL cuUserObjectRetain(CUuserObject arg0, unsigned int arg1) {
  6660. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUuserObject, unsigned int);
  6661. ON_ENTRY(cuUserObjectRetain);
  6662. f_ptr_t f = (f_ptr_t)(g_func_table[291]);
  6663. return f(arg0, arg1);
  6664. }
  6665. CUresult _WRAPLIB_API_CALL cuUserObjectRelease(CUuserObject arg0, unsigned int arg1) {
  6666. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUuserObject, unsigned int);
  6667. ON_ENTRY(cuUserObjectRelease);
  6668. f_ptr_t f = (f_ptr_t)(g_func_table[292]);
  6669. return f(arg0, arg1);
  6670. }
  6671. CUresult _WRAPLIB_API_CALL cuGraphRetainUserObject(CUgraph arg0, CUuserObject arg1, unsigned int arg2, unsigned int arg3) {
  6672. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, CUuserObject, unsigned int, unsigned int);
  6673. ON_ENTRY(cuGraphRetainUserObject);
  6674. f_ptr_t f = (f_ptr_t)(g_func_table[293]);
  6675. return f(arg0, arg1, arg2, arg3);
  6676. }
  6677. CUresult _WRAPLIB_API_CALL cuGraphReleaseUserObject(CUgraph arg0, CUuserObject arg1, unsigned int arg2) {
  6678. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraph, CUuserObject, unsigned int);
  6679. ON_ENTRY(cuGraphReleaseUserObject);
  6680. f_ptr_t f = (f_ptr_t)(g_func_table[294]);
  6681. return f(arg0, arg1, arg2);
  6682. }
  6683. CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessor(int *arg0, CUfunction arg1, int arg2, size_t arg3) {
  6684. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUfunction, int, size_t);
  6685. ON_ENTRY(cuOccupancyMaxActiveBlocksPerMultiprocessor);
  6686. f_ptr_t f = (f_ptr_t)(g_func_table[295]);
  6687. return f(arg0, arg1, arg2, arg3);
  6688. }
  6689. CUresult _WRAPLIB_API_CALL cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *arg0, CUfunction arg1, int arg2, size_t arg3, unsigned int arg4) {
  6690. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUfunction, int, size_t, unsigned int);
  6691. ON_ENTRY(cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags);
  6692. f_ptr_t f = (f_ptr_t)(g_func_table[296]);
  6693. return f(arg0, arg1, arg2, arg3, arg4);
  6694. }
  6695. CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSize(int *arg0, int *arg1, CUfunction arg2, CUoccupancyB2DSize arg3, size_t arg4, int arg5) {
  6696. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int);
  6697. ON_ENTRY(cuOccupancyMaxPotentialBlockSize);
  6698. f_ptr_t f = (f_ptr_t)(g_func_table[297]);
  6699. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  6700. }
  6701. CUresult _WRAPLIB_API_CALL cuOccupancyMaxPotentialBlockSizeWithFlags(int *arg0, int *arg1, CUfunction arg2, CUoccupancyB2DSize arg3, size_t arg4, int arg5, unsigned int arg6) {
  6702. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, int *, CUfunction, CUoccupancyB2DSize, size_t, int, unsigned int);
  6703. ON_ENTRY(cuOccupancyMaxPotentialBlockSizeWithFlags);
  6704. f_ptr_t f = (f_ptr_t)(g_func_table[298]);
  6705. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  6706. }
  6707. CUresult _WRAPLIB_API_CALL cuOccupancyAvailableDynamicSMemPerBlock(size_t *arg0, CUfunction arg1, int arg2, int arg3) {
  6708. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, CUfunction, int, int);
  6709. ON_ENTRY(cuOccupancyAvailableDynamicSMemPerBlock);
  6710. f_ptr_t f = (f_ptr_t)(g_func_table[299]);
  6711. return f(arg0, arg1, arg2, arg3);
  6712. }
  6713. CUresult _WRAPLIB_API_CALL cuTexRefSetArray(CUtexref arg0, CUarray arg1, unsigned int arg2) {
  6714. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, CUarray, unsigned int);
  6715. ON_ENTRY(cuTexRefSetArray);
  6716. f_ptr_t f = (f_ptr_t)(g_func_table[300]);
  6717. return f(arg0, arg1, arg2);
  6718. }
  6719. CUresult _WRAPLIB_API_CALL cuTexRefSetMipmappedArray(CUtexref arg0, CUmipmappedArray arg1, unsigned int arg2) {
  6720. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, CUmipmappedArray, unsigned int);
  6721. ON_ENTRY(cuTexRefSetMipmappedArray);
  6722. f_ptr_t f = (f_ptr_t)(g_func_table[301]);
  6723. return f(arg0, arg1, arg2);
  6724. }
  6725. CUresult _WRAPLIB_API_CALL cuTexRefSetAddress_v2(size_t *arg0, CUtexref arg1, CUdeviceptr arg2, size_t arg3) {
  6726. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(size_t *, CUtexref, CUdeviceptr, size_t);
  6727. ON_ENTRY(cuTexRefSetAddress_v2);
  6728. f_ptr_t f = (f_ptr_t)(g_func_table[302]);
  6729. return f(arg0, arg1, arg2, arg3);
  6730. }
  6731. CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v3(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR *arg1, CUdeviceptr arg2, size_t arg3) {
  6732. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, const CUDA_ARRAY_DESCRIPTOR *, CUdeviceptr, size_t);
  6733. ON_ENTRY(cuTexRefSetAddress2D_v3);
  6734. f_ptr_t f = (f_ptr_t)(g_func_table[303]);
  6735. return f(arg0, arg1, arg2, arg3);
  6736. }
  6737. CUresult _WRAPLIB_API_CALL cuTexRefSetFormat(CUtexref arg0, CUarray_format arg1, int arg2) {
  6738. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, CUarray_format, int);
  6739. ON_ENTRY(cuTexRefSetFormat);
  6740. f_ptr_t f = (f_ptr_t)(g_func_table[304]);
  6741. return f(arg0, arg1, arg2);
  6742. }
  6743. CUresult _WRAPLIB_API_CALL cuTexRefSetAddressMode(CUtexref arg0, int arg1, CUaddress_mode arg2) {
  6744. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, int, CUaddress_mode);
  6745. ON_ENTRY(cuTexRefSetAddressMode);
  6746. f_ptr_t f = (f_ptr_t)(g_func_table[305]);
  6747. return f(arg0, arg1, arg2);
  6748. }
  6749. CUresult _WRAPLIB_API_CALL cuTexRefSetFilterMode(CUtexref arg0, CUfilter_mode arg1) {
  6750. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, CUfilter_mode);
  6751. ON_ENTRY(cuTexRefSetFilterMode);
  6752. f_ptr_t f = (f_ptr_t)(g_func_table[306]);
  6753. return f(arg0, arg1);
  6754. }
  6755. CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapFilterMode(CUtexref arg0, CUfilter_mode arg1) {
  6756. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, CUfilter_mode);
  6757. ON_ENTRY(cuTexRefSetMipmapFilterMode);
  6758. f_ptr_t f = (f_ptr_t)(g_func_table[307]);
  6759. return f(arg0, arg1);
  6760. }
  6761. CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelBias(CUtexref arg0, float arg1) {
  6762. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, float);
  6763. ON_ENTRY(cuTexRefSetMipmapLevelBias);
  6764. f_ptr_t f = (f_ptr_t)(g_func_table[308]);
  6765. return f(arg0, arg1);
  6766. }
  6767. CUresult _WRAPLIB_API_CALL cuTexRefSetMipmapLevelClamp(CUtexref arg0, float arg1, float arg2) {
  6768. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, float, float);
  6769. ON_ENTRY(cuTexRefSetMipmapLevelClamp);
  6770. f_ptr_t f = (f_ptr_t)(g_func_table[309]);
  6771. return f(arg0, arg1, arg2);
  6772. }
  6773. CUresult _WRAPLIB_API_CALL cuTexRefSetMaxAnisotropy(CUtexref arg0, unsigned int arg1) {
  6774. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, unsigned int);
  6775. ON_ENTRY(cuTexRefSetMaxAnisotropy);
  6776. f_ptr_t f = (f_ptr_t)(g_func_table[310]);
  6777. return f(arg0, arg1);
  6778. }
  6779. CUresult _WRAPLIB_API_CALL cuTexRefSetBorderColor(CUtexref arg0, float *arg1) {
  6780. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, float *);
  6781. ON_ENTRY(cuTexRefSetBorderColor);
  6782. f_ptr_t f = (f_ptr_t)(g_func_table[311]);
  6783. return f(arg0, arg1);
  6784. }
  6785. CUresult _WRAPLIB_API_CALL cuTexRefSetFlags(CUtexref arg0, unsigned int arg1) {
  6786. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, unsigned int);
  6787. ON_ENTRY(cuTexRefSetFlags);
  6788. f_ptr_t f = (f_ptr_t)(g_func_table[312]);
  6789. return f(arg0, arg1);
  6790. }
  6791. CUresult _WRAPLIB_API_CALL cuTexRefGetAddress_v2(CUdeviceptr *arg0, CUtexref arg1) {
  6792. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, CUtexref);
  6793. ON_ENTRY(cuTexRefGetAddress_v2);
  6794. f_ptr_t f = (f_ptr_t)(g_func_table[313]);
  6795. return f(arg0, arg1);
  6796. }
  6797. CUresult _WRAPLIB_API_CALL cuTexRefGetArray(CUarray *arg0, CUtexref arg1) {
  6798. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, CUtexref);
  6799. ON_ENTRY(cuTexRefGetArray);
  6800. f_ptr_t f = (f_ptr_t)(g_func_table[314]);
  6801. return f(arg0, arg1);
  6802. }
  6803. CUresult _WRAPLIB_API_CALL cuTexRefGetMipmappedArray(CUmipmappedArray *arg0, CUtexref arg1) {
  6804. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmipmappedArray *, CUtexref);
  6805. ON_ENTRY(cuTexRefGetMipmappedArray);
  6806. f_ptr_t f = (f_ptr_t)(g_func_table[315]);
  6807. return f(arg0, arg1);
  6808. }
  6809. CUresult _WRAPLIB_API_CALL cuTexRefGetAddressMode(CUaddress_mode *arg0, CUtexref arg1, int arg2) {
  6810. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUaddress_mode *, CUtexref, int);
  6811. ON_ENTRY(cuTexRefGetAddressMode);
  6812. f_ptr_t f = (f_ptr_t)(g_func_table[316]);
  6813. return f(arg0, arg1, arg2);
  6814. }
  6815. CUresult _WRAPLIB_API_CALL cuTexRefGetFilterMode(CUfilter_mode *arg0, CUtexref arg1) {
  6816. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfilter_mode *, CUtexref);
  6817. ON_ENTRY(cuTexRefGetFilterMode);
  6818. f_ptr_t f = (f_ptr_t)(g_func_table[317]);
  6819. return f(arg0, arg1);
  6820. }
  6821. CUresult _WRAPLIB_API_CALL cuTexRefGetFormat(CUarray_format *arg0, int *arg1, CUtexref arg2) {
  6822. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray_format *, int *, CUtexref);
  6823. ON_ENTRY(cuTexRefGetFormat);
  6824. f_ptr_t f = (f_ptr_t)(g_func_table[318]);
  6825. return f(arg0, arg1, arg2);
  6826. }
  6827. CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapFilterMode(CUfilter_mode *arg0, CUtexref arg1) {
  6828. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfilter_mode *, CUtexref);
  6829. ON_ENTRY(cuTexRefGetMipmapFilterMode);
  6830. f_ptr_t f = (f_ptr_t)(g_func_table[319]);
  6831. return f(arg0, arg1);
  6832. }
  6833. CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelBias(float *arg0, CUtexref arg1) {
  6834. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(float *, CUtexref);
  6835. ON_ENTRY(cuTexRefGetMipmapLevelBias);
  6836. f_ptr_t f = (f_ptr_t)(g_func_table[320]);
  6837. return f(arg0, arg1);
  6838. }
  6839. CUresult _WRAPLIB_API_CALL cuTexRefGetMipmapLevelClamp(float *arg0, float *arg1, CUtexref arg2) {
  6840. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(float *, float *, CUtexref);
  6841. ON_ENTRY(cuTexRefGetMipmapLevelClamp);
  6842. f_ptr_t f = (f_ptr_t)(g_func_table[321]);
  6843. return f(arg0, arg1, arg2);
  6844. }
  6845. CUresult _WRAPLIB_API_CALL cuTexRefGetMaxAnisotropy(int *arg0, CUtexref arg1) {
  6846. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUtexref);
  6847. ON_ENTRY(cuTexRefGetMaxAnisotropy);
  6848. f_ptr_t f = (f_ptr_t)(g_func_table[322]);
  6849. return f(arg0, arg1);
  6850. }
  6851. CUresult _WRAPLIB_API_CALL cuTexRefGetBorderColor(float *arg0, CUtexref arg1) {
  6852. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(float *, CUtexref);
  6853. ON_ENTRY(cuTexRefGetBorderColor);
  6854. f_ptr_t f = (f_ptr_t)(g_func_table[323]);
  6855. return f(arg0, arg1);
  6856. }
  6857. CUresult _WRAPLIB_API_CALL cuTexRefGetFlags(unsigned int *arg0, CUtexref arg1) {
  6858. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *, CUtexref);
  6859. ON_ENTRY(cuTexRefGetFlags);
  6860. f_ptr_t f = (f_ptr_t)(g_func_table[324]);
  6861. return f(arg0, arg1);
  6862. }
  6863. CUresult _WRAPLIB_API_CALL cuTexRefCreate(CUtexref *arg0) {
  6864. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref *);
  6865. ON_ENTRY(cuTexRefCreate);
  6866. f_ptr_t f = (f_ptr_t)(g_func_table[325]);
  6867. return f(arg0);
  6868. }
  6869. CUresult _WRAPLIB_API_CALL cuTexRefDestroy(CUtexref arg0) {
  6870. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref);
  6871. ON_ENTRY(cuTexRefDestroy);
  6872. f_ptr_t f = (f_ptr_t)(g_func_table[326]);
  6873. return f(arg0);
  6874. }
  6875. CUresult _WRAPLIB_API_CALL cuSurfRefSetArray(CUsurfref arg0, CUarray arg1, unsigned int arg2) {
  6876. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsurfref, CUarray, unsigned int);
  6877. ON_ENTRY(cuSurfRefSetArray);
  6878. f_ptr_t f = (f_ptr_t)(g_func_table[327]);
  6879. return f(arg0, arg1, arg2);
  6880. }
  6881. CUresult _WRAPLIB_API_CALL cuSurfRefGetArray(CUarray *arg0, CUsurfref arg1) {
  6882. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, CUsurfref);
  6883. ON_ENTRY(cuSurfRefGetArray);
  6884. f_ptr_t f = (f_ptr_t)(g_func_table[328]);
  6885. return f(arg0, arg1);
  6886. }
  6887. CUresult _WRAPLIB_API_CALL cuTexObjectCreate(CUtexObject *arg0, const CUDA_RESOURCE_DESC *arg1, const CUDA_TEXTURE_DESC *arg2, const CUDA_RESOURCE_VIEW_DESC *arg3) {
  6888. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexObject *, const CUDA_RESOURCE_DESC *, const CUDA_TEXTURE_DESC *, const CUDA_RESOURCE_VIEW_DESC *);
  6889. ON_ENTRY(cuTexObjectCreate);
  6890. f_ptr_t f = (f_ptr_t)(g_func_table[329]);
  6891. return f(arg0, arg1, arg2, arg3);
  6892. }
  6893. CUresult _WRAPLIB_API_CALL cuTexObjectDestroy(CUtexObject arg0) {
  6894. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexObject);
  6895. ON_ENTRY(cuTexObjectDestroy);
  6896. f_ptr_t f = (f_ptr_t)(g_func_table[330]);
  6897. return f(arg0);
  6898. }
  6899. CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC *arg0, CUtexObject arg1) {
  6900. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_RESOURCE_DESC *, CUtexObject);
  6901. ON_ENTRY(cuTexObjectGetResourceDesc);
  6902. f_ptr_t f = (f_ptr_t)(g_func_table[331]);
  6903. return f(arg0, arg1);
  6904. }
  6905. CUresult _WRAPLIB_API_CALL cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC *arg0, CUtexObject arg1) {
  6906. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_TEXTURE_DESC *, CUtexObject);
  6907. ON_ENTRY(cuTexObjectGetTextureDesc);
  6908. f_ptr_t f = (f_ptr_t)(g_func_table[332]);
  6909. return f(arg0, arg1);
  6910. }
  6911. CUresult _WRAPLIB_API_CALL cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC *arg0, CUtexObject arg1) {
  6912. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_RESOURCE_VIEW_DESC *, CUtexObject);
  6913. ON_ENTRY(cuTexObjectGetResourceViewDesc);
  6914. f_ptr_t f = (f_ptr_t)(g_func_table[333]);
  6915. return f(arg0, arg1);
  6916. }
  6917. CUresult _WRAPLIB_API_CALL cuSurfObjectCreate(CUsurfObject *arg0, const CUDA_RESOURCE_DESC *arg1) {
  6918. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsurfObject *, const CUDA_RESOURCE_DESC *);
  6919. ON_ENTRY(cuSurfObjectCreate);
  6920. f_ptr_t f = (f_ptr_t)(g_func_table[334]);
  6921. return f(arg0, arg1);
  6922. }
  6923. CUresult _WRAPLIB_API_CALL cuSurfObjectDestroy(CUsurfObject arg0) {
  6924. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUsurfObject);
  6925. ON_ENTRY(cuSurfObjectDestroy);
  6926. f_ptr_t f = (f_ptr_t)(g_func_table[335]);
  6927. return f(arg0);
  6928. }
  6929. CUresult _WRAPLIB_API_CALL cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC *arg0, CUsurfObject arg1) {
  6930. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_RESOURCE_DESC *, CUsurfObject);
  6931. ON_ENTRY(cuSurfObjectGetResourceDesc);
  6932. f_ptr_t f = (f_ptr_t)(g_func_table[336]);
  6933. return f(arg0, arg1);
  6934. }
  6935. CUresult _WRAPLIB_API_CALL cuDeviceCanAccessPeer(int *arg0, CUdevice arg1, CUdevice arg2) {
  6936. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUdevice, CUdevice);
  6937. ON_ENTRY(cuDeviceCanAccessPeer);
  6938. f_ptr_t f = (f_ptr_t)(g_func_table[337]);
  6939. return f(arg0, arg1, arg2);
  6940. }
  6941. CUresult _WRAPLIB_API_CALL cuCtxEnablePeerAccess(CUcontext arg0, unsigned int arg1) {
  6942. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext, unsigned int);
  6943. ON_ENTRY(cuCtxEnablePeerAccess);
  6944. f_ptr_t f = (f_ptr_t)(g_func_table[338]);
  6945. return f(arg0, arg1);
  6946. }
  6947. CUresult _WRAPLIB_API_CALL cuCtxDisablePeerAccess(CUcontext arg0) {
  6948. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  6949. ON_ENTRY(cuCtxDisablePeerAccess);
  6950. f_ptr_t f = (f_ptr_t)(g_func_table[339]);
  6951. return f(arg0);
  6952. }
  6953. CUresult _WRAPLIB_API_CALL cuDeviceGetP2PAttribute(int *arg0, CUdevice_P2PAttribute arg1, CUdevice arg2, CUdevice arg3) {
  6954. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(int *, CUdevice_P2PAttribute, CUdevice, CUdevice);
  6955. ON_ENTRY(cuDeviceGetP2PAttribute);
  6956. f_ptr_t f = (f_ptr_t)(g_func_table[340]);
  6957. return f(arg0, arg1, arg2, arg3);
  6958. }
  6959. CUresult _WRAPLIB_API_CALL cuGraphicsUnregisterResource(CUgraphicsResource arg0) {
  6960. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphicsResource);
  6961. ON_ENTRY(cuGraphicsUnregisterResource);
  6962. f_ptr_t f = (f_ptr_t)(g_func_table[341]);
  6963. return f(arg0);
  6964. }
  6965. CUresult _WRAPLIB_API_CALL cuGraphicsSubResourceGetMappedArray(CUarray *arg0, CUgraphicsResource arg1, unsigned int arg2, unsigned int arg3) {
  6966. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, CUgraphicsResource, unsigned int, unsigned int);
  6967. ON_ENTRY(cuGraphicsSubResourceGetMappedArray);
  6968. f_ptr_t f = (f_ptr_t)(g_func_table[342]);
  6969. return f(arg0, arg1, arg2, arg3);
  6970. }
  6971. CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray *arg0, CUgraphicsResource arg1) {
  6972. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUmipmappedArray *, CUgraphicsResource);
  6973. ON_ENTRY(cuGraphicsResourceGetMappedMipmappedArray);
  6974. f_ptr_t f = (f_ptr_t)(g_func_table[343]);
  6975. return f(arg0, arg1);
  6976. }
  6977. CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr *arg0, size_t *arg1, CUgraphicsResource arg2) {
  6978. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t *, CUgraphicsResource);
  6979. ON_ENTRY(cuGraphicsResourceGetMappedPointer_v2);
  6980. f_ptr_t f = (f_ptr_t)(g_func_table[344]);
  6981. return f(arg0, arg1, arg2);
  6982. }
  6983. CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource arg0, unsigned int arg1) {
  6984. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphicsResource, unsigned int);
  6985. ON_ENTRY(cuGraphicsResourceSetMapFlags_v2);
  6986. f_ptr_t f = (f_ptr_t)(g_func_table[345]);
  6987. return f(arg0, arg1);
  6988. }
  6989. CUresult _WRAPLIB_API_CALL cuGraphicsMapResources_ptsz(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  6990. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUgraphicsResource *, CUstream);
  6991. ON_ENTRY(cuGraphicsMapResources_ptsz);
  6992. f_ptr_t f = (f_ptr_t)(g_func_table[346]);
  6993. return f(arg0, arg1, arg2);
  6994. }
  6995. CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources_ptsz(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  6996. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUgraphicsResource *, CUstream);
  6997. ON_ENTRY(cuGraphicsUnmapResources_ptsz);
  6998. f_ptr_t f = (f_ptr_t)(g_func_table[347]);
  6999. return f(arg0, arg1, arg2);
  7000. }
  7001. CUresult _WRAPLIB_API_CALL cuGetProcAddress(const char *arg0, void **arg1, int arg2, cuuint64_t arg3) {
  7002. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const char *, void **, int, cuuint64_t);
  7003. ON_ENTRY(cuGetProcAddress);
  7004. f_ptr_t f = (f_ptr_t)(g_func_table[348]);
  7005. return f(arg0, arg1, arg2, arg3);
  7006. }
  7007. CUresult _WRAPLIB_API_CALL cuGetExportTable(const void **arg0, const CUuuid *arg1) {
  7008. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const void **, const CUuuid *);
  7009. ON_ENTRY(cuGetExportTable);
  7010. f_ptr_t f = (f_ptr_t)(g_func_table[349]);
  7011. return f(arg0, arg1);
  7012. }
  7013. CUresult _WRAPLIB_API_CALL cuMemHostRegister(void *arg0, size_t arg1, unsigned int arg2) {
  7014. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, size_t, unsigned int);
  7015. ON_ENTRY(cuMemHostRegister);
  7016. f_ptr_t f = (f_ptr_t)(g_func_table[350]);
  7017. return f(arg0, arg1, arg2);
  7018. }
  7019. CUresult _WRAPLIB_API_CALL cuGraphicsResourceSetMapFlags(CUgraphicsResource arg0, unsigned int arg1) {
  7020. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphicsResource, unsigned int);
  7021. ON_ENTRY(cuGraphicsResourceSetMapFlags);
  7022. f_ptr_t f = (f_ptr_t)(g_func_table[351]);
  7023. return f(arg0, arg1);
  7024. }
  7025. CUresult _WRAPLIB_API_CALL cuLinkCreate(unsigned int arg0, CUjit_option *arg1, void **arg2, CUlinkState *arg3) {
  7026. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUjit_option *, void **, CUlinkState *);
  7027. ON_ENTRY(cuLinkCreate);
  7028. f_ptr_t f = (f_ptr_t)(g_func_table[352]);
  7029. return f(arg0, arg1, arg2, arg3);
  7030. }
  7031. CUresult _WRAPLIB_API_CALL cuLinkAddData(CUlinkState arg0, CUjitInputType arg1, void *arg2, size_t arg3, const char *arg4, unsigned int arg5, CUjit_option *arg6, void **arg7) {
  7032. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState, CUjitInputType, void *, size_t, const char *, unsigned int, CUjit_option *, void **);
  7033. ON_ENTRY(cuLinkAddData);
  7034. f_ptr_t f = (f_ptr_t)(g_func_table[353]);
  7035. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  7036. }
  7037. CUresult _WRAPLIB_API_CALL cuLinkAddFile(CUlinkState arg0, CUjitInputType arg1, const char *arg2, unsigned int arg3, CUjit_option *arg4, void **arg5) {
  7038. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUlinkState, CUjitInputType, const char *, unsigned int, CUjit_option *, void **);
  7039. ON_ENTRY(cuLinkAddFile);
  7040. f_ptr_t f = (f_ptr_t)(g_func_table[354]);
  7041. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7042. }
  7043. CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D_v2(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR *arg1, CUdeviceptr arg2, size_t arg3) {
  7044. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, const CUDA_ARRAY_DESCRIPTOR *, CUdeviceptr, size_t);
  7045. ON_ENTRY(cuTexRefSetAddress2D_v2);
  7046. f_ptr_t f = (f_ptr_t)(g_func_table[355]);
  7047. return f(arg0, arg1, arg2, arg3);
  7048. }
  7049. CUresult _WRAPLIB_API_CALL cuDeviceTotalMem(unsigned int *arg0, CUdevice arg1) {
  7050. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *, CUdevice);
  7051. ON_ENTRY(cuDeviceTotalMem);
  7052. f_ptr_t f = (f_ptr_t)(g_func_table[356]);
  7053. return f(arg0, arg1);
  7054. }
  7055. CUresult _WRAPLIB_API_CALL cuCtxCreate(CUcontext *arg0, unsigned int arg1, CUdevice arg2) {
  7056. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *, unsigned int, CUdevice);
  7057. ON_ENTRY(cuCtxCreate);
  7058. f_ptr_t f = (f_ptr_t)(g_func_table[357]);
  7059. return f(arg0, arg1, arg2);
  7060. }
  7061. CUresult _WRAPLIB_API_CALL cuModuleGetGlobal(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUmodule arg2, const char *arg3) {
  7062. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, unsigned int *, CUmodule, const char *);
  7063. ON_ENTRY(cuModuleGetGlobal);
  7064. f_ptr_t f = (f_ptr_t)(g_func_table[358]);
  7065. return f(arg0, arg1, arg2, arg3);
  7066. }
  7067. CUresult _WRAPLIB_API_CALL cuMemGetInfo(unsigned int *arg0, unsigned int *arg1) {
  7068. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *, unsigned int *);
  7069. ON_ENTRY(cuMemGetInfo);
  7070. f_ptr_t f = (f_ptr_t)(g_func_table[359]);
  7071. return f(arg0, arg1);
  7072. }
  7073. CUresult _WRAPLIB_API_CALL cuMemAlloc(CUdeviceptr_v1 *arg0, unsigned int arg1) {
  7074. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, unsigned int);
  7075. ON_ENTRY(cuMemAlloc);
  7076. f_ptr_t f = (f_ptr_t)(g_func_table[360]);
  7077. return f(arg0, arg1);
  7078. }
  7079. CUresult _WRAPLIB_API_CALL cuMemAllocPitch(CUdeviceptr_v1 *arg0, unsigned int *arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4) {
  7080. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, unsigned int *, unsigned int, unsigned int, unsigned int);
  7081. ON_ENTRY(cuMemAllocPitch);
  7082. f_ptr_t f = (f_ptr_t)(g_func_table[361]);
  7083. return f(arg0, arg1, arg2, arg3, arg4);
  7084. }
  7085. CUresult _WRAPLIB_API_CALL cuMemFree(CUdeviceptr_v1 arg0) {
  7086. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1);
  7087. ON_ENTRY(cuMemFree);
  7088. f_ptr_t f = (f_ptr_t)(g_func_table[362]);
  7089. return f(arg0);
  7090. }
  7091. CUresult _WRAPLIB_API_CALL cuMemGetAddressRange(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUdeviceptr_v1 arg2) {
  7092. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, unsigned int *, CUdeviceptr_v1);
  7093. ON_ENTRY(cuMemGetAddressRange);
  7094. f_ptr_t f = (f_ptr_t)(g_func_table[363]);
  7095. return f(arg0, arg1, arg2);
  7096. }
  7097. CUresult _WRAPLIB_API_CALL cuMemAllocHost(void **arg0, unsigned int arg1) {
  7098. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void **, unsigned int);
  7099. ON_ENTRY(cuMemAllocHost);
  7100. f_ptr_t f = (f_ptr_t)(g_func_table[364]);
  7101. return f(arg0, arg1);
  7102. }
  7103. CUresult _WRAPLIB_API_CALL cuMemHostGetDevicePointer(CUdeviceptr_v1 *arg0, void *arg1, unsigned int arg2) {
  7104. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, void *, unsigned int);
  7105. ON_ENTRY(cuMemHostGetDevicePointer);
  7106. f_ptr_t f = (f_ptr_t)(g_func_table[365]);
  7107. return f(arg0, arg1, arg2);
  7108. }
  7109. CUresult _WRAPLIB_API_CALL cuMemcpyHtoD(CUdeviceptr_v1 arg0, const void *arg1, unsigned int arg2) {
  7110. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, const void *, unsigned int);
  7111. ON_ENTRY(cuMemcpyHtoD);
  7112. f_ptr_t f = (f_ptr_t)(g_func_table[366]);
  7113. return f(arg0, arg1, arg2);
  7114. }
  7115. CUresult _WRAPLIB_API_CALL cuMemcpyDtoH(void *arg0, CUdeviceptr_v1 arg1, unsigned int arg2) {
  7116. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr_v1, unsigned int);
  7117. ON_ENTRY(cuMemcpyDtoH);
  7118. f_ptr_t f = (f_ptr_t)(g_func_table[367]);
  7119. return f(arg0, arg1, arg2);
  7120. }
  7121. CUresult _WRAPLIB_API_CALL cuMemcpyDtoD(CUdeviceptr_v1 arg0, CUdeviceptr_v1 arg1, unsigned int arg2) {
  7122. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, CUdeviceptr_v1, unsigned int);
  7123. ON_ENTRY(cuMemcpyDtoD);
  7124. f_ptr_t f = (f_ptr_t)(g_func_table[368]);
  7125. return f(arg0, arg1, arg2);
  7126. }
  7127. CUresult _WRAPLIB_API_CALL cuMemcpyDtoA(CUarray arg0, unsigned int arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  7128. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, unsigned int, CUdeviceptr_v1, unsigned int);
  7129. ON_ENTRY(cuMemcpyDtoA);
  7130. f_ptr_t f = (f_ptr_t)(g_func_table[369]);
  7131. return f(arg0, arg1, arg2, arg3);
  7132. }
  7133. CUresult _WRAPLIB_API_CALL cuMemcpyAtoD(CUdeviceptr_v1 arg0, CUarray arg1, unsigned int arg2, unsigned int arg3) {
  7134. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, CUarray, unsigned int, unsigned int);
  7135. ON_ENTRY(cuMemcpyAtoD);
  7136. f_ptr_t f = (f_ptr_t)(g_func_table[370]);
  7137. return f(arg0, arg1, arg2, arg3);
  7138. }
  7139. CUresult _WRAPLIB_API_CALL cuMemcpyHtoA(CUarray arg0, unsigned int arg1, const void *arg2, unsigned int arg3) {
  7140. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, unsigned int, const void *, unsigned int);
  7141. ON_ENTRY(cuMemcpyHtoA);
  7142. f_ptr_t f = (f_ptr_t)(g_func_table[371]);
  7143. return f(arg0, arg1, arg2, arg3);
  7144. }
  7145. CUresult _WRAPLIB_API_CALL cuMemcpyAtoH(void *arg0, CUarray arg1, unsigned int arg2, unsigned int arg3) {
  7146. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, unsigned int, unsigned int);
  7147. ON_ENTRY(cuMemcpyAtoH);
  7148. f_ptr_t f = (f_ptr_t)(g_func_table[372]);
  7149. return f(arg0, arg1, arg2, arg3);
  7150. }
  7151. CUresult _WRAPLIB_API_CALL cuMemcpyAtoA(CUarray arg0, unsigned int arg1, CUarray arg2, unsigned int arg3, unsigned int arg4) {
  7152. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, unsigned int, CUarray, unsigned int, unsigned int);
  7153. ON_ENTRY(cuMemcpyAtoA);
  7154. f_ptr_t f = (f_ptr_t)(g_func_table[373]);
  7155. return f(arg0, arg1, arg2, arg3, arg4);
  7156. }
  7157. CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync(CUarray arg0, unsigned int arg1, const void *arg2, unsigned int arg3, CUstream arg4) {
  7158. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, unsigned int, const void *, unsigned int, CUstream);
  7159. ON_ENTRY(cuMemcpyHtoAAsync);
  7160. f_ptr_t f = (f_ptr_t)(g_func_table[374]);
  7161. return f(arg0, arg1, arg2, arg3, arg4);
  7162. }
  7163. CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync(void *arg0, CUarray arg1, unsigned int arg2, unsigned int arg3, CUstream arg4) {
  7164. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, unsigned int, unsigned int, CUstream);
  7165. ON_ENTRY(cuMemcpyAtoHAsync);
  7166. f_ptr_t f = (f_ptr_t)(g_func_table[375]);
  7167. return f(arg0, arg1, arg2, arg3, arg4);
  7168. }
  7169. CUresult _WRAPLIB_API_CALL cuMemcpy2D(const CUDA_MEMCPY2D_v1 *arg0) {
  7170. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D_v1 *);
  7171. ON_ENTRY(cuMemcpy2D);
  7172. f_ptr_t f = (f_ptr_t)(g_func_table[376]);
  7173. return f(arg0);
  7174. }
  7175. CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned(const CUDA_MEMCPY2D_v1 *arg0) {
  7176. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D_v1 *);
  7177. ON_ENTRY(cuMemcpy2DUnaligned);
  7178. f_ptr_t f = (f_ptr_t)(g_func_table[377]);
  7179. return f(arg0);
  7180. }
  7181. CUresult _WRAPLIB_API_CALL cuMemcpy3D(const CUDA_MEMCPY3D_v1 *arg0) {
  7182. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_v1 *);
  7183. ON_ENTRY(cuMemcpy3D);
  7184. f_ptr_t f = (f_ptr_t)(g_func_table[378]);
  7185. return f(arg0);
  7186. }
  7187. CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync(CUdeviceptr_v1 arg0, const void *arg1, unsigned int arg2, CUstream arg3) {
  7188. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, const void *, unsigned int, CUstream);
  7189. ON_ENTRY(cuMemcpyHtoDAsync);
  7190. f_ptr_t f = (f_ptr_t)(g_func_table[379]);
  7191. return f(arg0, arg1, arg2, arg3);
  7192. }
  7193. CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync(void *arg0, CUdeviceptr_v1 arg1, unsigned int arg2, CUstream arg3) {
  7194. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr_v1, unsigned int, CUstream);
  7195. ON_ENTRY(cuMemcpyDtoHAsync);
  7196. f_ptr_t f = (f_ptr_t)(g_func_table[380]);
  7197. return f(arg0, arg1, arg2, arg3);
  7198. }
  7199. CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync(CUdeviceptr_v1 arg0, CUdeviceptr_v1 arg1, unsigned int arg2, CUstream arg3) {
  7200. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, CUdeviceptr_v1, unsigned int, CUstream);
  7201. ON_ENTRY(cuMemcpyDtoDAsync);
  7202. f_ptr_t f = (f_ptr_t)(g_func_table[381]);
  7203. return f(arg0, arg1, arg2, arg3);
  7204. }
  7205. CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync(const CUDA_MEMCPY2D_v1 *arg0, CUstream arg1) {
  7206. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D_v1 *, CUstream);
  7207. ON_ENTRY(cuMemcpy2DAsync);
  7208. f_ptr_t f = (f_ptr_t)(g_func_table[382]);
  7209. return f(arg0, arg1);
  7210. }
  7211. CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync(const CUDA_MEMCPY3D_v1 *arg0, CUstream arg1) {
  7212. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_v1 *, CUstream);
  7213. ON_ENTRY(cuMemcpy3DAsync);
  7214. f_ptr_t f = (f_ptr_t)(g_func_table[383]);
  7215. return f(arg0, arg1);
  7216. }
  7217. CUresult _WRAPLIB_API_CALL cuMemsetD8(CUdeviceptr_v1 arg0, unsigned char arg1, unsigned int arg2) {
  7218. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned char, unsigned int);
  7219. ON_ENTRY(cuMemsetD8);
  7220. f_ptr_t f = (f_ptr_t)(g_func_table[384]);
  7221. return f(arg0, arg1, arg2);
  7222. }
  7223. CUresult _WRAPLIB_API_CALL cuMemsetD16(CUdeviceptr_v1 arg0, unsigned short arg1, unsigned int arg2) {
  7224. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned short, unsigned int);
  7225. ON_ENTRY(cuMemsetD16);
  7226. f_ptr_t f = (f_ptr_t)(g_func_table[385]);
  7227. return f(arg0, arg1, arg2);
  7228. }
  7229. CUresult _WRAPLIB_API_CALL cuMemsetD32(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned int arg2) {
  7230. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned int, unsigned int);
  7231. ON_ENTRY(cuMemsetD32);
  7232. f_ptr_t f = (f_ptr_t)(g_func_table[386]);
  7233. return f(arg0, arg1, arg2);
  7234. }
  7235. CUresult _WRAPLIB_API_CALL cuMemsetD2D8(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned char arg2, unsigned int arg3, unsigned int arg4) {
  7236. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned int, unsigned char, unsigned int, unsigned int);
  7237. ON_ENTRY(cuMemsetD2D8);
  7238. f_ptr_t f = (f_ptr_t)(g_func_table[387]);
  7239. return f(arg0, arg1, arg2, arg3, arg4);
  7240. }
  7241. CUresult _WRAPLIB_API_CALL cuMemsetD2D16(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned short arg2, unsigned int arg3, unsigned int arg4) {
  7242. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned int, unsigned short, unsigned int, unsigned int);
  7243. ON_ENTRY(cuMemsetD2D16);
  7244. f_ptr_t f = (f_ptr_t)(g_func_table[388]);
  7245. return f(arg0, arg1, arg2, arg3, arg4);
  7246. }
  7247. CUresult _WRAPLIB_API_CALL cuMemsetD2D32(CUdeviceptr_v1 arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4) {
  7248. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1, unsigned int, unsigned int, unsigned int, unsigned int);
  7249. ON_ENTRY(cuMemsetD2D32);
  7250. f_ptr_t f = (f_ptr_t)(g_func_table[389]);
  7251. return f(arg0, arg1, arg2, arg3, arg4);
  7252. }
  7253. CUresult _WRAPLIB_API_CALL cuArrayCreate(CUarray *arg0, const CUDA_ARRAY_DESCRIPTOR_v1 *arg1) {
  7254. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, const CUDA_ARRAY_DESCRIPTOR_v1 *);
  7255. ON_ENTRY(cuArrayCreate);
  7256. f_ptr_t f = (f_ptr_t)(g_func_table[390]);
  7257. return f(arg0, arg1);
  7258. }
  7259. CUresult _WRAPLIB_API_CALL cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR_v1 *arg0, CUarray arg1) {
  7260. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY_DESCRIPTOR_v1 *, CUarray);
  7261. ON_ENTRY(cuArrayGetDescriptor);
  7262. f_ptr_t f = (f_ptr_t)(g_func_table[391]);
  7263. return f(arg0, arg1);
  7264. }
  7265. CUresult _WRAPLIB_API_CALL cuArray3DCreate(CUarray *arg0, const CUDA_ARRAY3D_DESCRIPTOR_v1 *arg1) {
  7266. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray *, const CUDA_ARRAY3D_DESCRIPTOR_v1 *);
  7267. ON_ENTRY(cuArray3DCreate);
  7268. f_ptr_t f = (f_ptr_t)(g_func_table[392]);
  7269. return f(arg0, arg1);
  7270. }
  7271. CUresult _WRAPLIB_API_CALL cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR_v1 *arg0, CUarray arg1) {
  7272. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUDA_ARRAY3D_DESCRIPTOR_v1 *, CUarray);
  7273. ON_ENTRY(cuArray3DGetDescriptor);
  7274. f_ptr_t f = (f_ptr_t)(g_func_table[393]);
  7275. return f(arg0, arg1);
  7276. }
  7277. CUresult _WRAPLIB_API_CALL cuTexRefSetAddress(unsigned int *arg0, CUtexref arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  7278. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int *, CUtexref, CUdeviceptr_v1, unsigned int);
  7279. ON_ENTRY(cuTexRefSetAddress);
  7280. f_ptr_t f = (f_ptr_t)(g_func_table[394]);
  7281. return f(arg0, arg1, arg2, arg3);
  7282. }
  7283. CUresult _WRAPLIB_API_CALL cuTexRefSetAddress2D(CUtexref arg0, const CUDA_ARRAY_DESCRIPTOR_v1 *arg1, CUdeviceptr_v1 arg2, unsigned int arg3) {
  7284. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUtexref, const CUDA_ARRAY_DESCRIPTOR_v1 *, CUdeviceptr_v1, unsigned int);
  7285. ON_ENTRY(cuTexRefSetAddress2D);
  7286. f_ptr_t f = (f_ptr_t)(g_func_table[395]);
  7287. return f(arg0, arg1, arg2, arg3);
  7288. }
  7289. CUresult _WRAPLIB_API_CALL cuTexRefGetAddress(CUdeviceptr_v1 *arg0, CUtexref arg1) {
  7290. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, CUtexref);
  7291. ON_ENTRY(cuTexRefGetAddress);
  7292. f_ptr_t f = (f_ptr_t)(g_func_table[396]);
  7293. return f(arg0, arg1);
  7294. }
  7295. CUresult _WRAPLIB_API_CALL cuGraphicsResourceGetMappedPointer(CUdeviceptr_v1 *arg0, unsigned int *arg1, CUgraphicsResource arg2) {
  7296. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr_v1 *, unsigned int *, CUgraphicsResource);
  7297. ON_ENTRY(cuGraphicsResourceGetMappedPointer);
  7298. f_ptr_t f = (f_ptr_t)(g_func_table[397]);
  7299. return f(arg0, arg1, arg2);
  7300. }
  7301. CUresult _WRAPLIB_API_CALL cuCtxDestroy(CUcontext arg0) {
  7302. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  7303. ON_ENTRY(cuCtxDestroy);
  7304. f_ptr_t f = (f_ptr_t)(g_func_table[398]);
  7305. return f(arg0);
  7306. }
  7307. CUresult _WRAPLIB_API_CALL cuCtxPopCurrent(CUcontext *arg0) {
  7308. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext *);
  7309. ON_ENTRY(cuCtxPopCurrent);
  7310. f_ptr_t f = (f_ptr_t)(g_func_table[399]);
  7311. return f(arg0);
  7312. }
  7313. CUresult _WRAPLIB_API_CALL cuCtxPushCurrent(CUcontext arg0) {
  7314. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUcontext);
  7315. ON_ENTRY(cuCtxPushCurrent);
  7316. f_ptr_t f = (f_ptr_t)(g_func_table[400]);
  7317. return f(arg0);
  7318. }
  7319. CUresult _WRAPLIB_API_CALL cuStreamDestroy(CUstream arg0) {
  7320. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  7321. ON_ENTRY(cuStreamDestroy);
  7322. f_ptr_t f = (f_ptr_t)(g_func_table[401]);
  7323. return f(arg0);
  7324. }
  7325. CUresult _WRAPLIB_API_CALL cuEventDestroy(CUevent arg0) {
  7326. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent);
  7327. ON_ENTRY(cuEventDestroy);
  7328. f_ptr_t f = (f_ptr_t)(g_func_table[402]);
  7329. return f(arg0);
  7330. }
  7331. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxRelease(CUdevice arg0) {
  7332. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice);
  7333. ON_ENTRY(cuDevicePrimaryCtxRelease);
  7334. f_ptr_t f = (f_ptr_t)(g_func_table[403]);
  7335. return f(arg0);
  7336. }
  7337. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxReset(CUdevice arg0) {
  7338. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice);
  7339. ON_ENTRY(cuDevicePrimaryCtxReset);
  7340. f_ptr_t f = (f_ptr_t)(g_func_table[404]);
  7341. return f(arg0);
  7342. }
  7343. CUresult _WRAPLIB_API_CALL cuDevicePrimaryCtxSetFlags(CUdevice arg0, unsigned int arg1) {
  7344. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdevice, unsigned int);
  7345. ON_ENTRY(cuDevicePrimaryCtxSetFlags);
  7346. f_ptr_t f = (f_ptr_t)(g_func_table[405]);
  7347. return f(arg0, arg1);
  7348. }
  7349. CUresult _WRAPLIB_API_CALL cuMemcpyHtoD_v2(CUdeviceptr arg0, const void *arg1, size_t arg2) {
  7350. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, const void *, size_t);
  7351. ON_ENTRY(cuMemcpyHtoD_v2);
  7352. f_ptr_t f = (f_ptr_t)(g_func_table[406]);
  7353. return f(arg0, arg1, arg2);
  7354. }
  7355. CUresult _WRAPLIB_API_CALL cuMemcpyDtoH_v2(void *arg0, CUdeviceptr arg1, size_t arg2) {
  7356. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr, size_t);
  7357. ON_ENTRY(cuMemcpyDtoH_v2);
  7358. f_ptr_t f = (f_ptr_t)(g_func_table[407]);
  7359. return f(arg0, arg1, arg2);
  7360. }
  7361. CUresult _WRAPLIB_API_CALL cuMemcpyDtoD_v2(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  7362. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t);
  7363. ON_ENTRY(cuMemcpyDtoD_v2);
  7364. f_ptr_t f = (f_ptr_t)(g_func_table[408]);
  7365. return f(arg0, arg1, arg2);
  7366. }
  7367. CUresult _WRAPLIB_API_CALL cuMemcpyDtoA_v2(CUarray arg0, size_t arg1, CUdeviceptr arg2, size_t arg3) {
  7368. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, CUdeviceptr, size_t);
  7369. ON_ENTRY(cuMemcpyDtoA_v2);
  7370. f_ptr_t f = (f_ptr_t)(g_func_table[409]);
  7371. return f(arg0, arg1, arg2, arg3);
  7372. }
  7373. CUresult _WRAPLIB_API_CALL cuMemcpyAtoD_v2(CUdeviceptr arg0, CUarray arg1, size_t arg2, size_t arg3) {
  7374. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUarray, size_t, size_t);
  7375. ON_ENTRY(cuMemcpyAtoD_v2);
  7376. f_ptr_t f = (f_ptr_t)(g_func_table[410]);
  7377. return f(arg0, arg1, arg2, arg3);
  7378. }
  7379. CUresult _WRAPLIB_API_CALL cuMemcpyHtoA_v2(CUarray arg0, size_t arg1, const void *arg2, size_t arg3) {
  7380. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, const void *, size_t);
  7381. ON_ENTRY(cuMemcpyHtoA_v2);
  7382. f_ptr_t f = (f_ptr_t)(g_func_table[411]);
  7383. return f(arg0, arg1, arg2, arg3);
  7384. }
  7385. CUresult _WRAPLIB_API_CALL cuMemcpyAtoH_v2(void *arg0, CUarray arg1, size_t arg2, size_t arg3) {
  7386. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, size_t, size_t);
  7387. ON_ENTRY(cuMemcpyAtoH_v2);
  7388. f_ptr_t f = (f_ptr_t)(g_func_table[412]);
  7389. return f(arg0, arg1, arg2, arg3);
  7390. }
  7391. CUresult _WRAPLIB_API_CALL cuMemcpyAtoA_v2(CUarray arg0, size_t arg1, CUarray arg2, size_t arg3, size_t arg4) {
  7392. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, CUarray, size_t, size_t);
  7393. ON_ENTRY(cuMemcpyAtoA_v2);
  7394. f_ptr_t f = (f_ptr_t)(g_func_table[413]);
  7395. return f(arg0, arg1, arg2, arg3, arg4);
  7396. }
  7397. CUresult _WRAPLIB_API_CALL cuMemcpyHtoAAsync_v2(CUarray arg0, size_t arg1, const void *arg2, size_t arg3, CUstream arg4) {
  7398. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarray, size_t, const void *, size_t, CUstream);
  7399. ON_ENTRY(cuMemcpyHtoAAsync_v2);
  7400. f_ptr_t f = (f_ptr_t)(g_func_table[414]);
  7401. return f(arg0, arg1, arg2, arg3, arg4);
  7402. }
  7403. CUresult _WRAPLIB_API_CALL cuMemcpyAtoHAsync_v2(void *arg0, CUarray arg1, size_t arg2, size_t arg3, CUstream arg4) {
  7404. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUarray, size_t, size_t, CUstream);
  7405. ON_ENTRY(cuMemcpyAtoHAsync_v2);
  7406. f_ptr_t f = (f_ptr_t)(g_func_table[415]);
  7407. return f(arg0, arg1, arg2, arg3, arg4);
  7408. }
  7409. CUresult _WRAPLIB_API_CALL cuMemcpy2D_v2(const CUDA_MEMCPY2D *arg0) {
  7410. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *);
  7411. ON_ENTRY(cuMemcpy2D_v2);
  7412. f_ptr_t f = (f_ptr_t)(g_func_table[416]);
  7413. return f(arg0);
  7414. }
  7415. CUresult _WRAPLIB_API_CALL cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D *arg0) {
  7416. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *);
  7417. ON_ENTRY(cuMemcpy2DUnaligned_v2);
  7418. f_ptr_t f = (f_ptr_t)(g_func_table[417]);
  7419. return f(arg0);
  7420. }
  7421. CUresult _WRAPLIB_API_CALL cuMemcpy3D_v2(const CUDA_MEMCPY3D *arg0) {
  7422. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D *);
  7423. ON_ENTRY(cuMemcpy3D_v2);
  7424. f_ptr_t f = (f_ptr_t)(g_func_table[418]);
  7425. return f(arg0);
  7426. }
  7427. CUresult _WRAPLIB_API_CALL cuMemcpyHtoDAsync_v2(CUdeviceptr arg0, const void *arg1, size_t arg2, CUstream arg3) {
  7428. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, const void *, size_t, CUstream);
  7429. ON_ENTRY(cuMemcpyHtoDAsync_v2);
  7430. f_ptr_t f = (f_ptr_t)(g_func_table[419]);
  7431. return f(arg0, arg1, arg2, arg3);
  7432. }
  7433. CUresult _WRAPLIB_API_CALL cuMemcpyDtoHAsync_v2(void *arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  7434. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(void *, CUdeviceptr, size_t, CUstream);
  7435. ON_ENTRY(cuMemcpyDtoHAsync_v2);
  7436. f_ptr_t f = (f_ptr_t)(g_func_table[420]);
  7437. return f(arg0, arg1, arg2, arg3);
  7438. }
  7439. CUresult _WRAPLIB_API_CALL cuMemcpyDtoDAsync_v2(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  7440. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t, CUstream);
  7441. ON_ENTRY(cuMemcpyDtoDAsync_v2);
  7442. f_ptr_t f = (f_ptr_t)(g_func_table[421]);
  7443. return f(arg0, arg1, arg2, arg3);
  7444. }
  7445. CUresult _WRAPLIB_API_CALL cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D *arg0, CUstream arg1) {
  7446. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY2D *, CUstream);
  7447. ON_ENTRY(cuMemcpy2DAsync_v2);
  7448. f_ptr_t f = (f_ptr_t)(g_func_table[422]);
  7449. return f(arg0, arg1);
  7450. }
  7451. CUresult _WRAPLIB_API_CALL cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D *arg0, CUstream arg1) {
  7452. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D *, CUstream);
  7453. ON_ENTRY(cuMemcpy3DAsync_v2);
  7454. f_ptr_t f = (f_ptr_t)(g_func_table[423]);
  7455. return f(arg0, arg1);
  7456. }
  7457. CUresult _WRAPLIB_API_CALL cuMemsetD8_v2(CUdeviceptr arg0, unsigned char arg1, size_t arg2) {
  7458. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned char, size_t);
  7459. ON_ENTRY(cuMemsetD8_v2);
  7460. f_ptr_t f = (f_ptr_t)(g_func_table[424]);
  7461. return f(arg0, arg1, arg2);
  7462. }
  7463. CUresult _WRAPLIB_API_CALL cuMemsetD16_v2(CUdeviceptr arg0, unsigned short arg1, size_t arg2) {
  7464. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned short, size_t);
  7465. ON_ENTRY(cuMemsetD16_v2);
  7466. f_ptr_t f = (f_ptr_t)(g_func_table[425]);
  7467. return f(arg0, arg1, arg2);
  7468. }
  7469. CUresult _WRAPLIB_API_CALL cuMemsetD32_v2(CUdeviceptr arg0, unsigned int arg1, size_t arg2) {
  7470. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned int, size_t);
  7471. ON_ENTRY(cuMemsetD32_v2);
  7472. f_ptr_t f = (f_ptr_t)(g_func_table[426]);
  7473. return f(arg0, arg1, arg2);
  7474. }
  7475. CUresult _WRAPLIB_API_CALL cuMemsetD2D8_v2(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4) {
  7476. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned char, size_t, size_t);
  7477. ON_ENTRY(cuMemsetD2D8_v2);
  7478. f_ptr_t f = (f_ptr_t)(g_func_table[427]);
  7479. return f(arg0, arg1, arg2, arg3, arg4);
  7480. }
  7481. CUresult _WRAPLIB_API_CALL cuMemsetD2D16_v2(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4) {
  7482. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned short, size_t, size_t);
  7483. ON_ENTRY(cuMemsetD2D16_v2);
  7484. f_ptr_t f = (f_ptr_t)(g_func_table[428]);
  7485. return f(arg0, arg1, arg2, arg3, arg4);
  7486. }
  7487. CUresult _WRAPLIB_API_CALL cuMemsetD2D32_v2(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4) {
  7488. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned int, size_t, size_t);
  7489. ON_ENTRY(cuMemsetD2D32_v2);
  7490. f_ptr_t f = (f_ptr_t)(g_func_table[429]);
  7491. return f(arg0, arg1, arg2, arg3, arg4);
  7492. }
  7493. CUresult _WRAPLIB_API_CALL cuMemcpy(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2) {
  7494. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t);
  7495. ON_ENTRY(cuMemcpy);
  7496. f_ptr_t f = (f_ptr_t)(g_func_table[430]);
  7497. return f(arg0, arg1, arg2);
  7498. }
  7499. CUresult _WRAPLIB_API_CALL cuMemcpyAsync(CUdeviceptr arg0, CUdeviceptr arg1, size_t arg2, CUstream arg3) {
  7500. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUdeviceptr, size_t, CUstream);
  7501. ON_ENTRY(cuMemcpyAsync);
  7502. f_ptr_t f = (f_ptr_t)(g_func_table[431]);
  7503. return f(arg0, arg1, arg2, arg3);
  7504. }
  7505. CUresult _WRAPLIB_API_CALL cuMemcpyPeer(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4) {
  7506. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t);
  7507. ON_ENTRY(cuMemcpyPeer);
  7508. f_ptr_t f = (f_ptr_t)(g_func_table[432]);
  7509. return f(arg0, arg1, arg2, arg3, arg4);
  7510. }
  7511. CUresult _WRAPLIB_API_CALL cuMemcpyPeerAsync(CUdeviceptr arg0, CUcontext arg1, CUdeviceptr arg2, CUcontext arg3, size_t arg4, CUstream arg5) {
  7512. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUcontext, CUdeviceptr, CUcontext, size_t, CUstream);
  7513. ON_ENTRY(cuMemcpyPeerAsync);
  7514. f_ptr_t f = (f_ptr_t)(g_func_table[433]);
  7515. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7516. }
  7517. CUresult _WRAPLIB_API_CALL cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER *arg0) {
  7518. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_PEER *);
  7519. ON_ENTRY(cuMemcpy3DPeer);
  7520. f_ptr_t f = (f_ptr_t)(g_func_table[434]);
  7521. return f(arg0);
  7522. }
  7523. CUresult _WRAPLIB_API_CALL cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER *arg0, CUstream arg1) {
  7524. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUDA_MEMCPY3D_PEER *, CUstream);
  7525. ON_ENTRY(cuMemcpy3DPeerAsync);
  7526. f_ptr_t f = (f_ptr_t)(g_func_table[435]);
  7527. return f(arg0, arg1);
  7528. }
  7529. CUresult _WRAPLIB_API_CALL cuMemsetD8Async(CUdeviceptr arg0, unsigned char arg1, size_t arg2, CUstream arg3) {
  7530. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned char, size_t, CUstream);
  7531. ON_ENTRY(cuMemsetD8Async);
  7532. f_ptr_t f = (f_ptr_t)(g_func_table[436]);
  7533. return f(arg0, arg1, arg2, arg3);
  7534. }
  7535. CUresult _WRAPLIB_API_CALL cuMemsetD16Async(CUdeviceptr arg0, unsigned short arg1, size_t arg2, CUstream arg3) {
  7536. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned short, size_t, CUstream);
  7537. ON_ENTRY(cuMemsetD16Async);
  7538. f_ptr_t f = (f_ptr_t)(g_func_table[437]);
  7539. return f(arg0, arg1, arg2, arg3);
  7540. }
  7541. CUresult _WRAPLIB_API_CALL cuMemsetD32Async(CUdeviceptr arg0, unsigned int arg1, size_t arg2, CUstream arg3) {
  7542. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, unsigned int, size_t, CUstream);
  7543. ON_ENTRY(cuMemsetD32Async);
  7544. f_ptr_t f = (f_ptr_t)(g_func_table[438]);
  7545. return f(arg0, arg1, arg2, arg3);
  7546. }
  7547. CUresult _WRAPLIB_API_CALL cuMemsetD2D8Async(CUdeviceptr arg0, size_t arg1, unsigned char arg2, size_t arg3, size_t arg4, CUstream arg5) {
  7548. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned char, size_t, size_t, CUstream);
  7549. ON_ENTRY(cuMemsetD2D8Async);
  7550. f_ptr_t f = (f_ptr_t)(g_func_table[439]);
  7551. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7552. }
  7553. CUresult _WRAPLIB_API_CALL cuMemsetD2D16Async(CUdeviceptr arg0, size_t arg1, unsigned short arg2, size_t arg3, size_t arg4, CUstream arg5) {
  7554. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned short, size_t, size_t, CUstream);
  7555. ON_ENTRY(cuMemsetD2D16Async);
  7556. f_ptr_t f = (f_ptr_t)(g_func_table[440]);
  7557. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7558. }
  7559. CUresult _WRAPLIB_API_CALL cuMemsetD2D32Async(CUdeviceptr arg0, size_t arg1, unsigned int arg2, size_t arg3, size_t arg4, CUstream arg5) {
  7560. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, unsigned int, size_t, size_t, CUstream);
  7561. ON_ENTRY(cuMemsetD2D32Async);
  7562. f_ptr_t f = (f_ptr_t)(g_func_table[441]);
  7563. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7564. }
  7565. CUresult _WRAPLIB_API_CALL cuStreamGetPriority(CUstream arg0, int *arg1) {
  7566. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, int *);
  7567. ON_ENTRY(cuStreamGetPriority);
  7568. f_ptr_t f = (f_ptr_t)(g_func_table[442]);
  7569. return f(arg0, arg1);
  7570. }
  7571. CUresult _WRAPLIB_API_CALL cuStreamGetFlags(CUstream arg0, unsigned int *arg1) {
  7572. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, unsigned int *);
  7573. ON_ENTRY(cuStreamGetFlags);
  7574. f_ptr_t f = (f_ptr_t)(g_func_table[443]);
  7575. return f(arg0, arg1);
  7576. }
  7577. CUresult _WRAPLIB_API_CALL cuStreamGetCtx(CUstream arg0, CUcontext *arg1) {
  7578. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUcontext *);
  7579. ON_ENTRY(cuStreamGetCtx);
  7580. f_ptr_t f = (f_ptr_t)(g_func_table[444]);
  7581. return f(arg0, arg1);
  7582. }
  7583. CUresult _WRAPLIB_API_CALL cuStreamWaitEvent(CUstream arg0, CUevent arg1, unsigned int arg2) {
  7584. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUevent, unsigned int);
  7585. ON_ENTRY(cuStreamWaitEvent);
  7586. f_ptr_t f = (f_ptr_t)(g_func_table[445]);
  7587. return f(arg0, arg1, arg2);
  7588. }
  7589. CUresult _WRAPLIB_API_CALL cuStreamAddCallback(CUstream arg0, CUstreamCallback arg1, void *arg2, unsigned int arg3) {
  7590. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCallback, void *, unsigned int);
  7591. ON_ENTRY(cuStreamAddCallback);
  7592. f_ptr_t f = (f_ptr_t)(g_func_table[446]);
  7593. return f(arg0, arg1, arg2, arg3);
  7594. }
  7595. CUresult _WRAPLIB_API_CALL cuStreamAttachMemAsync(CUstream arg0, CUdeviceptr arg1, size_t arg2, unsigned int arg3) {
  7596. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, size_t, unsigned int);
  7597. ON_ENTRY(cuStreamAttachMemAsync);
  7598. f_ptr_t f = (f_ptr_t)(g_func_table[447]);
  7599. return f(arg0, arg1, arg2, arg3);
  7600. }
  7601. CUresult _WRAPLIB_API_CALL cuStreamQuery(CUstream arg0) {
  7602. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  7603. ON_ENTRY(cuStreamQuery);
  7604. f_ptr_t f = (f_ptr_t)(g_func_table[448]);
  7605. return f(arg0);
  7606. }
  7607. CUresult _WRAPLIB_API_CALL cuStreamSynchronize(CUstream arg0) {
  7608. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  7609. ON_ENTRY(cuStreamSynchronize);
  7610. f_ptr_t f = (f_ptr_t)(g_func_table[449]);
  7611. return f(arg0);
  7612. }
  7613. CUresult _WRAPLIB_API_CALL cuEventRecord(CUevent arg0, CUstream arg1) {
  7614. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent, CUstream);
  7615. ON_ENTRY(cuEventRecord);
  7616. f_ptr_t f = (f_ptr_t)(g_func_table[450]);
  7617. return f(arg0, arg1);
  7618. }
  7619. CUresult _WRAPLIB_API_CALL cuEventRecordWithFlags(CUevent arg0, CUstream arg1, unsigned int arg2) {
  7620. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUevent, CUstream, unsigned int);
  7621. ON_ENTRY(cuEventRecordWithFlags);
  7622. f_ptr_t f = (f_ptr_t)(g_func_table[451]);
  7623. return f(arg0, arg1, arg2);
  7624. }
  7625. CUresult _WRAPLIB_API_CALL cuLaunchKernel(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9, void **arg10) {
  7626. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **, void **);
  7627. ON_ENTRY(cuLaunchKernel);
  7628. f_ptr_t f = (f_ptr_t)(g_func_table[452]);
  7629. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  7630. }
  7631. CUresult _WRAPLIB_API_CALL cuLaunchHostFunc(CUstream arg0, CUhostFn arg1, void *arg2) {
  7632. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUhostFn, void *);
  7633. ON_ENTRY(cuLaunchHostFunc);
  7634. f_ptr_t f = (f_ptr_t)(g_func_table[453]);
  7635. return f(arg0, arg1, arg2);
  7636. }
  7637. CUresult _WRAPLIB_API_CALL cuGraphicsMapResources(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  7638. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUgraphicsResource *, CUstream);
  7639. ON_ENTRY(cuGraphicsMapResources);
  7640. f_ptr_t f = (f_ptr_t)(g_func_table[454]);
  7641. return f(arg0, arg1, arg2);
  7642. }
  7643. CUresult _WRAPLIB_API_CALL cuGraphicsUnmapResources(unsigned int arg0, CUgraphicsResource *arg1, CUstream arg2) {
  7644. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(unsigned int, CUgraphicsResource *, CUstream);
  7645. ON_ENTRY(cuGraphicsUnmapResources);
  7646. f_ptr_t f = (f_ptr_t)(g_func_table[455]);
  7647. return f(arg0, arg1, arg2);
  7648. }
  7649. CUresult _WRAPLIB_API_CALL cuStreamWriteValue32(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  7650. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint32_t, unsigned int);
  7651. ON_ENTRY(cuStreamWriteValue32);
  7652. f_ptr_t f = (f_ptr_t)(g_func_table[456]);
  7653. return f(arg0, arg1, arg2, arg3);
  7654. }
  7655. CUresult _WRAPLIB_API_CALL cuStreamWaitValue32(CUstream arg0, CUdeviceptr arg1, cuuint32_t arg2, unsigned int arg3) {
  7656. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint32_t, unsigned int);
  7657. ON_ENTRY(cuStreamWaitValue32);
  7658. f_ptr_t f = (f_ptr_t)(g_func_table[457]);
  7659. return f(arg0, arg1, arg2, arg3);
  7660. }
  7661. CUresult _WRAPLIB_API_CALL cuStreamWriteValue64(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  7662. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint64_t, unsigned int);
  7663. ON_ENTRY(cuStreamWriteValue64);
  7664. f_ptr_t f = (f_ptr_t)(g_func_table[458]);
  7665. return f(arg0, arg1, arg2, arg3);
  7666. }
  7667. CUresult _WRAPLIB_API_CALL cuStreamWaitValue64(CUstream arg0, CUdeviceptr arg1, cuuint64_t arg2, unsigned int arg3) {
  7668. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUdeviceptr, cuuint64_t, unsigned int);
  7669. ON_ENTRY(cuStreamWaitValue64);
  7670. f_ptr_t f = (f_ptr_t)(g_func_table[459]);
  7671. return f(arg0, arg1, arg2, arg3);
  7672. }
  7673. CUresult _WRAPLIB_API_CALL cuStreamBatchMemOp(CUstream arg0, unsigned int arg1, CUstreamBatchMemOpParams *arg2, unsigned int arg3) {
  7674. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, unsigned int, CUstreamBatchMemOpParams *, unsigned int);
  7675. ON_ENTRY(cuStreamBatchMemOp);
  7676. f_ptr_t f = (f_ptr_t)(g_func_table[460]);
  7677. return f(arg0, arg1, arg2, arg3);
  7678. }
  7679. CUresult _WRAPLIB_API_CALL cuMemPrefetchAsync(CUdeviceptr arg0, size_t arg1, CUdevice arg2, CUstream arg3) {
  7680. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, size_t, CUdevice, CUstream);
  7681. ON_ENTRY(cuMemPrefetchAsync);
  7682. f_ptr_t f = (f_ptr_t)(g_func_table[461]);
  7683. return f(arg0, arg1, arg2, arg3);
  7684. }
  7685. CUresult _WRAPLIB_API_CALL cuLaunchCooperativeKernel(CUfunction arg0, unsigned int arg1, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5, unsigned int arg6, unsigned int arg7, CUstream arg8, void **arg9) {
  7686. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUfunction, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, CUstream, void **);
  7687. ON_ENTRY(cuLaunchCooperativeKernel);
  7688. f_ptr_t f = (f_ptr_t)(g_func_table[462]);
  7689. return f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  7690. }
  7691. CUresult _WRAPLIB_API_CALL cuSignalExternalSemaphoresAsync(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  7692. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *, unsigned int, CUstream);
  7693. ON_ENTRY(cuSignalExternalSemaphoresAsync);
  7694. f_ptr_t f = (f_ptr_t)(g_func_table[463]);
  7695. return f(arg0, arg1, arg2, arg3);
  7696. }
  7697. CUresult _WRAPLIB_API_CALL cuWaitExternalSemaphoresAsync(const CUexternalSemaphore *arg0, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *arg1, unsigned int arg2, CUstream arg3) {
  7698. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const CUexternalSemaphore *, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *, unsigned int, CUstream);
  7699. ON_ENTRY(cuWaitExternalSemaphoresAsync);
  7700. f_ptr_t f = (f_ptr_t)(g_func_table[464]);
  7701. return f(arg0, arg1, arg2, arg3);
  7702. }
  7703. CUresult _WRAPLIB_API_CALL cuStreamBeginCapture(CUstream arg0) {
  7704. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  7705. ON_ENTRY(cuStreamBeginCapture);
  7706. f_ptr_t f = (f_ptr_t)(g_func_table[465]);
  7707. return f(arg0);
  7708. }
  7709. CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_ptsz(CUstream arg0) {
  7710. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream);
  7711. ON_ENTRY(cuStreamBeginCapture_ptsz);
  7712. f_ptr_t f = (f_ptr_t)(g_func_table[466]);
  7713. return f(arg0);
  7714. }
  7715. CUresult _WRAPLIB_API_CALL cuStreamBeginCapture_v2(CUstream arg0, CUstreamCaptureMode arg1) {
  7716. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureMode);
  7717. ON_ENTRY(cuStreamBeginCapture_v2);
  7718. f_ptr_t f = (f_ptr_t)(g_func_table[467]);
  7719. return f(arg0, arg1);
  7720. }
  7721. CUresult _WRAPLIB_API_CALL cuStreamEndCapture(CUstream arg0, CUgraph *arg1) {
  7722. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUgraph *);
  7723. ON_ENTRY(cuStreamEndCapture);
  7724. f_ptr_t f = (f_ptr_t)(g_func_table[468]);
  7725. return f(arg0, arg1);
  7726. }
  7727. CUresult _WRAPLIB_API_CALL cuStreamIsCapturing(CUstream arg0, CUstreamCaptureStatus *arg1) {
  7728. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *);
  7729. ON_ENTRY(cuStreamIsCapturing);
  7730. f_ptr_t f = (f_ptr_t)(g_func_table[469]);
  7731. return f(arg0, arg1);
  7732. }
  7733. CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2) {
  7734. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *, cuuint64_t *);
  7735. ON_ENTRY(cuStreamGetCaptureInfo);
  7736. f_ptr_t f = (f_ptr_t)(g_func_table[470]);
  7737. return f(arg0, arg1, arg2);
  7738. }
  7739. CUresult _WRAPLIB_API_CALL cuStreamGetCaptureInfo_v2(CUstream arg0, CUstreamCaptureStatus *arg1, cuuint64_t *arg2, CUgraph *arg3, const CUgraphNode **arg4, size_t *arg5) {
  7740. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamCaptureStatus *, cuuint64_t *, CUgraph *, const CUgraphNode **, size_t *);
  7741. ON_ENTRY(cuStreamGetCaptureInfo_v2);
  7742. f_ptr_t f = (f_ptr_t)(g_func_table[471]);
  7743. return f(arg0, arg1, arg2, arg3, arg4, arg5);
  7744. }
  7745. CUresult _WRAPLIB_API_CALL cuGraphUpload(CUgraphExec arg0, CUstream arg1) {
  7746. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUstream);
  7747. ON_ENTRY(cuGraphUpload);
  7748. f_ptr_t f = (f_ptr_t)(g_func_table[472]);
  7749. return f(arg0, arg1);
  7750. }
  7751. CUresult _WRAPLIB_API_CALL cuGraphLaunch(CUgraphExec arg0, CUstream arg1) {
  7752. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec, CUstream);
  7753. ON_ENTRY(cuGraphLaunch);
  7754. f_ptr_t f = (f_ptr_t)(g_func_table[473]);
  7755. return f(arg0, arg1);
  7756. }
  7757. CUresult _WRAPLIB_API_CALL cuStreamCopyAttributes(CUstream arg0, CUstream arg1) {
  7758. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstream);
  7759. ON_ENTRY(cuStreamCopyAttributes);
  7760. f_ptr_t f = (f_ptr_t)(g_func_table[474]);
  7761. return f(arg0, arg1);
  7762. }
  7763. CUresult _WRAPLIB_API_CALL cuStreamGetAttribute(CUstream arg0, CUstreamAttrID arg1, CUstreamAttrValue *arg2) {
  7764. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamAttrID, CUstreamAttrValue *);
  7765. ON_ENTRY(cuStreamGetAttribute);
  7766. f_ptr_t f = (f_ptr_t)(g_func_table[475]);
  7767. return f(arg0, arg1, arg2);
  7768. }
  7769. CUresult _WRAPLIB_API_CALL cuStreamSetAttribute(CUstream arg0, CUstreamAttrID arg1, const CUstreamAttrValue *arg2) {
  7770. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUstreamAttrID, const CUstreamAttrValue *);
  7771. ON_ENTRY(cuStreamSetAttribute);
  7772. f_ptr_t f = (f_ptr_t)(g_func_table[476]);
  7773. return f(arg0, arg1, arg2);
  7774. }
  7775. CUresult _WRAPLIB_API_CALL cuIpcOpenMemHandle(CUdeviceptr *arg0, CUipcMemHandle arg1, unsigned int arg2) {
  7776. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, CUipcMemHandle, unsigned int);
  7777. ON_ENTRY(cuIpcOpenMemHandle);
  7778. f_ptr_t f = (f_ptr_t)(g_func_table[477]);
  7779. return f(arg0, arg1, arg2);
  7780. }
  7781. CUresult _WRAPLIB_API_CALL cuGraphInstantiate(CUgraphExec *arg0, CUgraph arg1, CUgraphNode *arg2, char *arg3, size_t arg4) {
  7782. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUgraphExec *, CUgraph, CUgraphNode *, char *, size_t);
  7783. ON_ENTRY(cuGraphInstantiate);
  7784. f_ptr_t f = (f_ptr_t)(g_func_table[478]);
  7785. return f(arg0, arg1, arg2, arg3, arg4);
  7786. }
  7787. CUresult _WRAPLIB_API_CALL cuMemMapArrayAsync(CUarrayMapInfo *arg0, unsigned int arg1, CUstream arg2) {
  7788. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUarrayMapInfo *, unsigned int, CUstream);
  7789. ON_ENTRY(cuMemMapArrayAsync);
  7790. f_ptr_t f = (f_ptr_t)(g_func_table[479]);
  7791. return f(arg0, arg1, arg2);
  7792. }
  7793. CUresult _WRAPLIB_API_CALL cuMemFreeAsync(CUdeviceptr arg0, CUstream arg1) {
  7794. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr, CUstream);
  7795. ON_ENTRY(cuMemFreeAsync);
  7796. f_ptr_t f = (f_ptr_t)(g_func_table[480]);
  7797. return f(arg0, arg1);
  7798. }
  7799. CUresult _WRAPLIB_API_CALL cuMemAllocAsync(CUdeviceptr *arg0, size_t arg1, CUstream arg2) {
  7800. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, CUstream);
  7801. ON_ENTRY(cuMemAllocAsync);
  7802. f_ptr_t f = (f_ptr_t)(g_func_table[481]);
  7803. return f(arg0, arg1, arg2);
  7804. }
  7805. CUresult _WRAPLIB_API_CALL cuMemAllocFromPoolAsync(CUdeviceptr *arg0, size_t arg1, CUmemoryPool arg2, CUstream arg3) {
  7806. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUdeviceptr *, size_t, CUmemoryPool, CUstream);
  7807. ON_ENTRY(cuMemAllocFromPoolAsync);
  7808. f_ptr_t f = (f_ptr_t)(g_func_table[482]);
  7809. return f(arg0, arg1, arg2, arg3);
  7810. }
  7811. CUresult _WRAPLIB_API_CALL cuStreamUpdateCaptureDependencies(CUstream arg0, CUgraphNode *arg1, size_t arg2, unsigned int arg3) {
  7812. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(CUstream, CUgraphNode *, size_t, unsigned int);
  7813. ON_ENTRY(cuStreamUpdateCaptureDependencies);
  7814. f_ptr_t f = (f_ptr_t)(g_func_table[483]);
  7815. return f(arg0, arg1, arg2, arg3);
  7816. }
  7817. CUresult _WRAPLIB_API_CALL cuProfilerInitialize(const char *arg0, const char *arg1, CUoutput_mode arg2) {
  7818. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)(const char *, const char *, CUoutput_mode);
  7819. ON_ENTRY(cuProfilerInitialize);
  7820. f_ptr_t f = (f_ptr_t)(g_func_table[484]);
  7821. return f(arg0, arg1, arg2);
  7822. }
  7823. CUresult _WRAPLIB_API_CALL cuProfilerStart() {
  7824. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)();
  7825. ON_ENTRY(cuProfilerStart);
  7826. f_ptr_t f = (f_ptr_t)(g_func_table[485]);
  7827. return f();
  7828. }
  7829. CUresult _WRAPLIB_API_CALL cuProfilerStop() {
  7830. typedef CUresult (_WRAPLIB_API_CALL *f_ptr_t)();
  7831. ON_ENTRY(cuProfilerStop);
  7832. f_ptr_t f = (f_ptr_t)(g_func_table[486]);
  7833. return f();
  7834. }