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_10.2.h 298 kB

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