hip.py 240 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909
  1. # mypy: ignore-errors
  2. # -*- coding: utf-8 -*-
  3. #
  4. # TARGET arch is: ['-D__HIP_PLATFORM_AMD__', '-I/opt/rocm/include', '-x', 'c++']
  5. # WORD_SIZE is: 8
  6. # POINTER_SIZE is: 8
  7. # LONGDOUBLE_SIZE is: 16
  8. #
  9. import ctypes, os
  10. class AsDictMixin:
  11. @classmethod
  12. def as_dict(cls, self):
  13. result = {}
  14. if not isinstance(self, AsDictMixin):
  15. # not a structure, assume it's already a python object
  16. return self
  17. if not hasattr(cls, "_fields_"):
  18. return result
  19. # sys.version_info >= (3, 5)
  20. # for (field, *_) in cls._fields_: # noqa
  21. for field_tuple in cls._fields_: # noqa
  22. field = field_tuple[0]
  23. if field.startswith('PADDING_'):
  24. continue
  25. value = getattr(self, field)
  26. type_ = type(value)
  27. if hasattr(value, "_length_") and hasattr(value, "_type_"):
  28. # array
  29. if not hasattr(type_, "as_dict"):
  30. value = [v for v in value]
  31. else:
  32. type_ = type_._type_
  33. value = [type_.as_dict(v) for v in value]
  34. elif hasattr(value, "contents") and hasattr(value, "_type_"):
  35. # pointer
  36. try:
  37. if not hasattr(type_, "as_dict"):
  38. value = value.contents
  39. else:
  40. type_ = type_._type_
  41. value = type_.as_dict(value.contents)
  42. except ValueError:
  43. # nullptr
  44. value = None
  45. elif isinstance(value, AsDictMixin):
  46. # other structure
  47. value = type_.as_dict(value)
  48. result[field] = value
  49. return result
  50. class Structure(ctypes.Structure, AsDictMixin):
  51. def __init__(self, *args, **kwds):
  52. # We don't want to use positional arguments fill PADDING_* fields
  53. args = dict(zip(self.__class__._field_names_(), args))
  54. args.update(kwds)
  55. super(Structure, self).__init__(**args)
  56. @classmethod
  57. def _field_names_(cls):
  58. if hasattr(cls, '_fields_'):
  59. return (f[0] for f in cls._fields_ if not f[0].startswith('PADDING'))
  60. else:
  61. return ()
  62. @classmethod
  63. def get_type(cls, field):
  64. for f in cls._fields_:
  65. if f[0] == field:
  66. return f[1]
  67. return None
  68. @classmethod
  69. def bind(cls, bound_fields):
  70. fields = {}
  71. for name, type_ in cls._fields_:
  72. if hasattr(type_, "restype"):
  73. if name in bound_fields:
  74. if bound_fields[name] is None:
  75. fields[name] = type_()
  76. else:
  77. # use a closure to capture the callback from the loop scope
  78. fields[name] = (
  79. type_((lambda callback: lambda *args: callback(*args))(
  80. bound_fields[name]))
  81. )
  82. del bound_fields[name]
  83. else:
  84. # default callback implementation (does nothing)
  85. try:
  86. default_ = type_(0).restype().value
  87. except TypeError:
  88. default_ = None
  89. fields[name] = type_((
  90. lambda default_: lambda *args: default_)(default_))
  91. else:
  92. # not a callback function, use default initialization
  93. if name in bound_fields:
  94. fields[name] = bound_fields[name]
  95. del bound_fields[name]
  96. else:
  97. fields[name] = type_()
  98. if len(bound_fields) != 0:
  99. raise ValueError(
  100. "Cannot bind the following unknown callback(s) {}.{}".format(
  101. cls.__name__, bound_fields.keys()
  102. ))
  103. return cls(**fields)
  104. class Union(ctypes.Union, AsDictMixin):
  105. pass
  106. c_int128 = ctypes.c_ubyte*16
  107. c_uint128 = c_int128
  108. void = None
  109. if ctypes.sizeof(ctypes.c_longdouble) == 16:
  110. c_long_double_t = ctypes.c_longdouble
  111. else:
  112. c_long_double_t = ctypes.c_ubyte*16
  113. class FunctionFactoryStub:
  114. def __getattr__(self, _):
  115. return ctypes.CFUNCTYPE(lambda y:y)
  116. # libraries['FIXME_STUB'] explanation
  117. # As you did not list (-l libraryname.so) a library that exports this function
  118. # This is a non-working stub instead.
  119. # You can either re-run clan2py with -l /path/to/library.so
  120. # Or manually fix this by comment the ctypes.CDLL loading
  121. _libraries = {}
  122. _libraries['FIXME_STUB'] = FunctionFactoryStub() # ctypes.CDLL('FIXME_STUB')
  123. def string_cast(char_pointer, encoding='utf-8', errors='strict'):
  124. value = ctypes.cast(char_pointer, ctypes.c_char_p).value
  125. if value is not None and encoding is not None:
  126. value = value.decode(encoding, errors=errors)
  127. return value
  128. def char_pointer_cast(string, encoding='utf-8'):
  129. if encoding is not None:
  130. try:
  131. string = string.encode(encoding)
  132. except AttributeError:
  133. # In Python3, bytes has no encode attribute
  134. pass
  135. string = ctypes.c_char_p(string)
  136. return ctypes.cast(string, ctypes.POINTER(ctypes.c_char))
  137. _libraries['libamdhip64.so'] = ctypes.CDLL(os.getenv('ROCM_PATH', '/opt/rocm/')+'/lib/libamdhip64.so')
  138. # values for enumeration 'c__Ea_HIP_SUCCESS'
  139. c__Ea_HIP_SUCCESS__enumvalues = {
  140. 0: 'HIP_SUCCESS',
  141. 1: 'HIP_ERROR_INVALID_VALUE',
  142. 2: 'HIP_ERROR_NOT_INITIALIZED',
  143. 3: 'HIP_ERROR_LAUNCH_OUT_OF_RESOURCES',
  144. }
  145. HIP_SUCCESS = 0
  146. HIP_ERROR_INVALID_VALUE = 1
  147. HIP_ERROR_NOT_INITIALIZED = 2
  148. HIP_ERROR_LAUNCH_OUT_OF_RESOURCES = 3
  149. c__Ea_HIP_SUCCESS = ctypes.c_uint32 # enum
  150. class struct_c__SA_hipDeviceArch_t(Structure):
  151. pass
  152. struct_c__SA_hipDeviceArch_t._pack_ = 1 # source:False
  153. struct_c__SA_hipDeviceArch_t._fields_ = [
  154. ('hasGlobalInt32Atomics', ctypes.c_uint32, 1),
  155. ('hasGlobalFloatAtomicExch', ctypes.c_uint32, 1),
  156. ('hasSharedInt32Atomics', ctypes.c_uint32, 1),
  157. ('hasSharedFloatAtomicExch', ctypes.c_uint32, 1),
  158. ('hasFloatAtomicAdd', ctypes.c_uint32, 1),
  159. ('hasGlobalInt64Atomics', ctypes.c_uint32, 1),
  160. ('hasSharedInt64Atomics', ctypes.c_uint32, 1),
  161. ('hasDoubles', ctypes.c_uint32, 1),
  162. ('hasWarpVote', ctypes.c_uint32, 1),
  163. ('hasWarpBallot', ctypes.c_uint32, 1),
  164. ('hasWarpShuffle', ctypes.c_uint32, 1),
  165. ('hasFunnelShift', ctypes.c_uint32, 1),
  166. ('hasThreadFenceSystem', ctypes.c_uint32, 1),
  167. ('hasSyncThreadsExt', ctypes.c_uint32, 1),
  168. ('hasSurfaceFuncs', ctypes.c_uint32, 1),
  169. ('has3dGrid', ctypes.c_uint32, 1),
  170. ('hasDynamicParallelism', ctypes.c_uint32, 1),
  171. ('PADDING_0', ctypes.c_uint16, 15),
  172. ]
  173. hipDeviceArch_t = struct_c__SA_hipDeviceArch_t
  174. class struct_hipUUID_t(Structure):
  175. pass
  176. struct_hipUUID_t._pack_ = 1 # source:False
  177. struct_hipUUID_t._fields_ = [
  178. ('bytes', ctypes.c_char * 16),
  179. ]
  180. hipUUID = struct_hipUUID_t
  181. class struct_hipDeviceProp_tR0600(Structure):
  182. pass
  183. struct_hipDeviceProp_tR0600._pack_ = 1 # source:False
  184. struct_hipDeviceProp_tR0600._fields_ = [
  185. ('name', ctypes.c_char * 256),
  186. ('uuid', hipUUID),
  187. ('luid', ctypes.c_char * 8),
  188. ('luidDeviceNodeMask', ctypes.c_uint32),
  189. ('PADDING_0', ctypes.c_ubyte * 4),
  190. ('totalGlobalMem', ctypes.c_uint64),
  191. ('sharedMemPerBlock', ctypes.c_uint64),
  192. ('regsPerBlock', ctypes.c_int32),
  193. ('warpSize', ctypes.c_int32),
  194. ('memPitch', ctypes.c_uint64),
  195. ('maxThreadsPerBlock', ctypes.c_int32),
  196. ('maxThreadsDim', ctypes.c_int32 * 3),
  197. ('maxGridSize', ctypes.c_int32 * 3),
  198. ('clockRate', ctypes.c_int32),
  199. ('totalConstMem', ctypes.c_uint64),
  200. ('major', ctypes.c_int32),
  201. ('minor', ctypes.c_int32),
  202. ('textureAlignment', ctypes.c_uint64),
  203. ('texturePitchAlignment', ctypes.c_uint64),
  204. ('deviceOverlap', ctypes.c_int32),
  205. ('multiProcessorCount', ctypes.c_int32),
  206. ('kernelExecTimeoutEnabled', ctypes.c_int32),
  207. ('integrated', ctypes.c_int32),
  208. ('canMapHostMemory', ctypes.c_int32),
  209. ('computeMode', ctypes.c_int32),
  210. ('maxTexture1D', ctypes.c_int32),
  211. ('maxTexture1DMipmap', ctypes.c_int32),
  212. ('maxTexture1DLinear', ctypes.c_int32),
  213. ('maxTexture2D', ctypes.c_int32 * 2),
  214. ('maxTexture2DMipmap', ctypes.c_int32 * 2),
  215. ('maxTexture2DLinear', ctypes.c_int32 * 3),
  216. ('maxTexture2DGather', ctypes.c_int32 * 2),
  217. ('maxTexture3D', ctypes.c_int32 * 3),
  218. ('maxTexture3DAlt', ctypes.c_int32 * 3),
  219. ('maxTextureCubemap', ctypes.c_int32),
  220. ('maxTexture1DLayered', ctypes.c_int32 * 2),
  221. ('maxTexture2DLayered', ctypes.c_int32 * 3),
  222. ('maxTextureCubemapLayered', ctypes.c_int32 * 2),
  223. ('maxSurface1D', ctypes.c_int32),
  224. ('maxSurface2D', ctypes.c_int32 * 2),
  225. ('maxSurface3D', ctypes.c_int32 * 3),
  226. ('maxSurface1DLayered', ctypes.c_int32 * 2),
  227. ('maxSurface2DLayered', ctypes.c_int32 * 3),
  228. ('maxSurfaceCubemap', ctypes.c_int32),
  229. ('maxSurfaceCubemapLayered', ctypes.c_int32 * 2),
  230. ('surfaceAlignment', ctypes.c_uint64),
  231. ('concurrentKernels', ctypes.c_int32),
  232. ('ECCEnabled', ctypes.c_int32),
  233. ('pciBusID', ctypes.c_int32),
  234. ('pciDeviceID', ctypes.c_int32),
  235. ('pciDomainID', ctypes.c_int32),
  236. ('tccDriver', ctypes.c_int32),
  237. ('asyncEngineCount', ctypes.c_int32),
  238. ('unifiedAddressing', ctypes.c_int32),
  239. ('memoryClockRate', ctypes.c_int32),
  240. ('memoryBusWidth', ctypes.c_int32),
  241. ('l2CacheSize', ctypes.c_int32),
  242. ('persistingL2CacheMaxSize', ctypes.c_int32),
  243. ('maxThreadsPerMultiProcessor', ctypes.c_int32),
  244. ('streamPrioritiesSupported', ctypes.c_int32),
  245. ('globalL1CacheSupported', ctypes.c_int32),
  246. ('localL1CacheSupported', ctypes.c_int32),
  247. ('sharedMemPerMultiprocessor', ctypes.c_uint64),
  248. ('regsPerMultiprocessor', ctypes.c_int32),
  249. ('managedMemory', ctypes.c_int32),
  250. ('isMultiGpuBoard', ctypes.c_int32),
  251. ('multiGpuBoardGroupID', ctypes.c_int32),
  252. ('hostNativeAtomicSupported', ctypes.c_int32),
  253. ('singleToDoublePrecisionPerfRatio', ctypes.c_int32),
  254. ('pageableMemoryAccess', ctypes.c_int32),
  255. ('concurrentManagedAccess', ctypes.c_int32),
  256. ('computePreemptionSupported', ctypes.c_int32),
  257. ('canUseHostPointerForRegisteredMem', ctypes.c_int32),
  258. ('cooperativeLaunch', ctypes.c_int32),
  259. ('cooperativeMultiDeviceLaunch', ctypes.c_int32),
  260. ('sharedMemPerBlockOptin', ctypes.c_uint64),
  261. ('pageableMemoryAccessUsesHostPageTables', ctypes.c_int32),
  262. ('directManagedMemAccessFromHost', ctypes.c_int32),
  263. ('maxBlocksPerMultiProcessor', ctypes.c_int32),
  264. ('accessPolicyMaxWindowSize', ctypes.c_int32),
  265. ('reservedSharedMemPerBlock', ctypes.c_uint64),
  266. ('hostRegisterSupported', ctypes.c_int32),
  267. ('sparseHipArraySupported', ctypes.c_int32),
  268. ('hostRegisterReadOnlySupported', ctypes.c_int32),
  269. ('timelineSemaphoreInteropSupported', ctypes.c_int32),
  270. ('memoryPoolsSupported', ctypes.c_int32),
  271. ('gpuDirectRDMASupported', ctypes.c_int32),
  272. ('gpuDirectRDMAFlushWritesOptions', ctypes.c_uint32),
  273. ('gpuDirectRDMAWritesOrdering', ctypes.c_int32),
  274. ('memoryPoolSupportedHandleTypes', ctypes.c_uint32),
  275. ('deferredMappingHipArraySupported', ctypes.c_int32),
  276. ('ipcEventSupported', ctypes.c_int32),
  277. ('clusterLaunch', ctypes.c_int32),
  278. ('unifiedFunctionPointers', ctypes.c_int32),
  279. ('reserved', ctypes.c_int32 * 63),
  280. ('hipReserved', ctypes.c_int32 * 32),
  281. ('gcnArchName', ctypes.c_char * 256),
  282. ('maxSharedMemoryPerMultiProcessor', ctypes.c_uint64),
  283. ('clockInstructionRate', ctypes.c_int32),
  284. ('arch', hipDeviceArch_t),
  285. ('hdpMemFlushCntl', ctypes.POINTER(ctypes.c_uint32)),
  286. ('hdpRegFlushCntl', ctypes.POINTER(ctypes.c_uint32)),
  287. ('cooperativeMultiDeviceUnmatchedFunc', ctypes.c_int32),
  288. ('cooperativeMultiDeviceUnmatchedGridDim', ctypes.c_int32),
  289. ('cooperativeMultiDeviceUnmatchedBlockDim', ctypes.c_int32),
  290. ('cooperativeMultiDeviceUnmatchedSharedMem', ctypes.c_int32),
  291. ('isLargeBar', ctypes.c_int32),
  292. ('asicRevision', ctypes.c_int32),
  293. ]
  294. hipDeviceProp_tR0600 = struct_hipDeviceProp_tR0600
  295. # values for enumeration 'hipMemoryType'
  296. hipMemoryType__enumvalues = {
  297. 0: 'hipMemoryTypeUnregistered',
  298. 1: 'hipMemoryTypeHost',
  299. 2: 'hipMemoryTypeDevice',
  300. 3: 'hipMemoryTypeManaged',
  301. 10: 'hipMemoryTypeArray',
  302. 11: 'hipMemoryTypeUnified',
  303. }
  304. hipMemoryTypeUnregistered = 0
  305. hipMemoryTypeHost = 1
  306. hipMemoryTypeDevice = 2
  307. hipMemoryTypeManaged = 3
  308. hipMemoryTypeArray = 10
  309. hipMemoryTypeUnified = 11
  310. hipMemoryType = ctypes.c_uint32 # enum
  311. class struct_hipPointerAttribute_t(Structure):
  312. pass
  313. struct_hipPointerAttribute_t._pack_ = 1 # source:False
  314. struct_hipPointerAttribute_t._fields_ = [
  315. ('type', hipMemoryType),
  316. ('device', ctypes.c_int32),
  317. ('devicePointer', ctypes.POINTER(None)),
  318. ('hostPointer', ctypes.POINTER(None)),
  319. ('isManaged', ctypes.c_int32),
  320. ('allocationFlags', ctypes.c_uint32),
  321. ]
  322. hipPointerAttribute_t = struct_hipPointerAttribute_t
  323. # values for enumeration 'hipError_t'
  324. hipError_t__enumvalues = {
  325. 0: 'hipSuccess',
  326. 1: 'hipErrorInvalidValue',
  327. 2: 'hipErrorOutOfMemory',
  328. 2: 'hipErrorMemoryAllocation',
  329. 3: 'hipErrorNotInitialized',
  330. 3: 'hipErrorInitializationError',
  331. 4: 'hipErrorDeinitialized',
  332. 5: 'hipErrorProfilerDisabled',
  333. 6: 'hipErrorProfilerNotInitialized',
  334. 7: 'hipErrorProfilerAlreadyStarted',
  335. 8: 'hipErrorProfilerAlreadyStopped',
  336. 9: 'hipErrorInvalidConfiguration',
  337. 12: 'hipErrorInvalidPitchValue',
  338. 13: 'hipErrorInvalidSymbol',
  339. 17: 'hipErrorInvalidDevicePointer',
  340. 21: 'hipErrorInvalidMemcpyDirection',
  341. 35: 'hipErrorInsufficientDriver',
  342. 52: 'hipErrorMissingConfiguration',
  343. 53: 'hipErrorPriorLaunchFailure',
  344. 98: 'hipErrorInvalidDeviceFunction',
  345. 100: 'hipErrorNoDevice',
  346. 101: 'hipErrorInvalidDevice',
  347. 200: 'hipErrorInvalidImage',
  348. 201: 'hipErrorInvalidContext',
  349. 202: 'hipErrorContextAlreadyCurrent',
  350. 205: 'hipErrorMapFailed',
  351. 205: 'hipErrorMapBufferObjectFailed',
  352. 206: 'hipErrorUnmapFailed',
  353. 207: 'hipErrorArrayIsMapped',
  354. 208: 'hipErrorAlreadyMapped',
  355. 209: 'hipErrorNoBinaryForGpu',
  356. 210: 'hipErrorAlreadyAcquired',
  357. 211: 'hipErrorNotMapped',
  358. 212: 'hipErrorNotMappedAsArray',
  359. 213: 'hipErrorNotMappedAsPointer',
  360. 214: 'hipErrorECCNotCorrectable',
  361. 215: 'hipErrorUnsupportedLimit',
  362. 216: 'hipErrorContextAlreadyInUse',
  363. 217: 'hipErrorPeerAccessUnsupported',
  364. 218: 'hipErrorInvalidKernelFile',
  365. 219: 'hipErrorInvalidGraphicsContext',
  366. 300: 'hipErrorInvalidSource',
  367. 301: 'hipErrorFileNotFound',
  368. 302: 'hipErrorSharedObjectSymbolNotFound',
  369. 303: 'hipErrorSharedObjectInitFailed',
  370. 304: 'hipErrorOperatingSystem',
  371. 400: 'hipErrorInvalidHandle',
  372. 400: 'hipErrorInvalidResourceHandle',
  373. 401: 'hipErrorIllegalState',
  374. 500: 'hipErrorNotFound',
  375. 600: 'hipErrorNotReady',
  376. 700: 'hipErrorIllegalAddress',
  377. 701: 'hipErrorLaunchOutOfResources',
  378. 702: 'hipErrorLaunchTimeOut',
  379. 704: 'hipErrorPeerAccessAlreadyEnabled',
  380. 705: 'hipErrorPeerAccessNotEnabled',
  381. 708: 'hipErrorSetOnActiveProcess',
  382. 709: 'hipErrorContextIsDestroyed',
  383. 710: 'hipErrorAssert',
  384. 712: 'hipErrorHostMemoryAlreadyRegistered',
  385. 713: 'hipErrorHostMemoryNotRegistered',
  386. 719: 'hipErrorLaunchFailure',
  387. 720: 'hipErrorCooperativeLaunchTooLarge',
  388. 801: 'hipErrorNotSupported',
  389. 900: 'hipErrorStreamCaptureUnsupported',
  390. 901: 'hipErrorStreamCaptureInvalidated',
  391. 902: 'hipErrorStreamCaptureMerge',
  392. 903: 'hipErrorStreamCaptureUnmatched',
  393. 904: 'hipErrorStreamCaptureUnjoined',
  394. 905: 'hipErrorStreamCaptureIsolation',
  395. 906: 'hipErrorStreamCaptureImplicit',
  396. 907: 'hipErrorCapturedEvent',
  397. 908: 'hipErrorStreamCaptureWrongThread',
  398. 910: 'hipErrorGraphExecUpdateFailure',
  399. 999: 'hipErrorUnknown',
  400. 1052: 'hipErrorRuntimeMemory',
  401. 1053: 'hipErrorRuntimeOther',
  402. 1054: 'hipErrorTbd',
  403. }
  404. hipSuccess = 0
  405. hipErrorInvalidValue = 1
  406. hipErrorOutOfMemory = 2
  407. hipErrorMemoryAllocation = 2
  408. hipErrorNotInitialized = 3
  409. hipErrorInitializationError = 3
  410. hipErrorDeinitialized = 4
  411. hipErrorProfilerDisabled = 5
  412. hipErrorProfilerNotInitialized = 6
  413. hipErrorProfilerAlreadyStarted = 7
  414. hipErrorProfilerAlreadyStopped = 8
  415. hipErrorInvalidConfiguration = 9
  416. hipErrorInvalidPitchValue = 12
  417. hipErrorInvalidSymbol = 13
  418. hipErrorInvalidDevicePointer = 17
  419. hipErrorInvalidMemcpyDirection = 21
  420. hipErrorInsufficientDriver = 35
  421. hipErrorMissingConfiguration = 52
  422. hipErrorPriorLaunchFailure = 53
  423. hipErrorInvalidDeviceFunction = 98
  424. hipErrorNoDevice = 100
  425. hipErrorInvalidDevice = 101
  426. hipErrorInvalidImage = 200
  427. hipErrorInvalidContext = 201
  428. hipErrorContextAlreadyCurrent = 202
  429. hipErrorMapFailed = 205
  430. hipErrorMapBufferObjectFailed = 205
  431. hipErrorUnmapFailed = 206
  432. hipErrorArrayIsMapped = 207
  433. hipErrorAlreadyMapped = 208
  434. hipErrorNoBinaryForGpu = 209
  435. hipErrorAlreadyAcquired = 210
  436. hipErrorNotMapped = 211
  437. hipErrorNotMappedAsArray = 212
  438. hipErrorNotMappedAsPointer = 213
  439. hipErrorECCNotCorrectable = 214
  440. hipErrorUnsupportedLimit = 215
  441. hipErrorContextAlreadyInUse = 216
  442. hipErrorPeerAccessUnsupported = 217
  443. hipErrorInvalidKernelFile = 218
  444. hipErrorInvalidGraphicsContext = 219
  445. hipErrorInvalidSource = 300
  446. hipErrorFileNotFound = 301
  447. hipErrorSharedObjectSymbolNotFound = 302
  448. hipErrorSharedObjectInitFailed = 303
  449. hipErrorOperatingSystem = 304
  450. hipErrorInvalidHandle = 400
  451. hipErrorInvalidResourceHandle = 400
  452. hipErrorIllegalState = 401
  453. hipErrorNotFound = 500
  454. hipErrorNotReady = 600
  455. hipErrorIllegalAddress = 700
  456. hipErrorLaunchOutOfResources = 701
  457. hipErrorLaunchTimeOut = 702
  458. hipErrorPeerAccessAlreadyEnabled = 704
  459. hipErrorPeerAccessNotEnabled = 705
  460. hipErrorSetOnActiveProcess = 708
  461. hipErrorContextIsDestroyed = 709
  462. hipErrorAssert = 710
  463. hipErrorHostMemoryAlreadyRegistered = 712
  464. hipErrorHostMemoryNotRegistered = 713
  465. hipErrorLaunchFailure = 719
  466. hipErrorCooperativeLaunchTooLarge = 720
  467. hipErrorNotSupported = 801
  468. hipErrorStreamCaptureUnsupported = 900
  469. hipErrorStreamCaptureInvalidated = 901
  470. hipErrorStreamCaptureMerge = 902
  471. hipErrorStreamCaptureUnmatched = 903
  472. hipErrorStreamCaptureUnjoined = 904
  473. hipErrorStreamCaptureIsolation = 905
  474. hipErrorStreamCaptureImplicit = 906
  475. hipErrorCapturedEvent = 907
  476. hipErrorStreamCaptureWrongThread = 908
  477. hipErrorGraphExecUpdateFailure = 910
  478. hipErrorUnknown = 999
  479. hipErrorRuntimeMemory = 1052
  480. hipErrorRuntimeOther = 1053
  481. hipErrorTbd = 1054
  482. hipError_t = ctypes.c_uint32 # enum
  483. # values for enumeration 'hipDeviceAttribute_t'
  484. hipDeviceAttribute_t__enumvalues = {
  485. 0: 'hipDeviceAttributeCudaCompatibleBegin',
  486. 0: 'hipDeviceAttributeEccEnabled',
  487. 1: 'hipDeviceAttributeAccessPolicyMaxWindowSize',
  488. 2: 'hipDeviceAttributeAsyncEngineCount',
  489. 3: 'hipDeviceAttributeCanMapHostMemory',
  490. 4: 'hipDeviceAttributeCanUseHostPointerForRegisteredMem',
  491. 5: 'hipDeviceAttributeClockRate',
  492. 6: 'hipDeviceAttributeComputeMode',
  493. 7: 'hipDeviceAttributeComputePreemptionSupported',
  494. 8: 'hipDeviceAttributeConcurrentKernels',
  495. 9: 'hipDeviceAttributeConcurrentManagedAccess',
  496. 10: 'hipDeviceAttributeCooperativeLaunch',
  497. 11: 'hipDeviceAttributeCooperativeMultiDeviceLaunch',
  498. 12: 'hipDeviceAttributeDeviceOverlap',
  499. 13: 'hipDeviceAttributeDirectManagedMemAccessFromHost',
  500. 14: 'hipDeviceAttributeGlobalL1CacheSupported',
  501. 15: 'hipDeviceAttributeHostNativeAtomicSupported',
  502. 16: 'hipDeviceAttributeIntegrated',
  503. 17: 'hipDeviceAttributeIsMultiGpuBoard',
  504. 18: 'hipDeviceAttributeKernelExecTimeout',
  505. 19: 'hipDeviceAttributeL2CacheSize',
  506. 20: 'hipDeviceAttributeLocalL1CacheSupported',
  507. 21: 'hipDeviceAttributeLuid',
  508. 22: 'hipDeviceAttributeLuidDeviceNodeMask',
  509. 23: 'hipDeviceAttributeComputeCapabilityMajor',
  510. 24: 'hipDeviceAttributeManagedMemory',
  511. 25: 'hipDeviceAttributeMaxBlocksPerMultiProcessor',
  512. 26: 'hipDeviceAttributeMaxBlockDimX',
  513. 27: 'hipDeviceAttributeMaxBlockDimY',
  514. 28: 'hipDeviceAttributeMaxBlockDimZ',
  515. 29: 'hipDeviceAttributeMaxGridDimX',
  516. 30: 'hipDeviceAttributeMaxGridDimY',
  517. 31: 'hipDeviceAttributeMaxGridDimZ',
  518. 32: 'hipDeviceAttributeMaxSurface1D',
  519. 33: 'hipDeviceAttributeMaxSurface1DLayered',
  520. 34: 'hipDeviceAttributeMaxSurface2D',
  521. 35: 'hipDeviceAttributeMaxSurface2DLayered',
  522. 36: 'hipDeviceAttributeMaxSurface3D',
  523. 37: 'hipDeviceAttributeMaxSurfaceCubemap',
  524. 38: 'hipDeviceAttributeMaxSurfaceCubemapLayered',
  525. 39: 'hipDeviceAttributeMaxTexture1DWidth',
  526. 40: 'hipDeviceAttributeMaxTexture1DLayered',
  527. 41: 'hipDeviceAttributeMaxTexture1DLinear',
  528. 42: 'hipDeviceAttributeMaxTexture1DMipmap',
  529. 43: 'hipDeviceAttributeMaxTexture2DWidth',
  530. 44: 'hipDeviceAttributeMaxTexture2DHeight',
  531. 45: 'hipDeviceAttributeMaxTexture2DGather',
  532. 46: 'hipDeviceAttributeMaxTexture2DLayered',
  533. 47: 'hipDeviceAttributeMaxTexture2DLinear',
  534. 48: 'hipDeviceAttributeMaxTexture2DMipmap',
  535. 49: 'hipDeviceAttributeMaxTexture3DWidth',
  536. 50: 'hipDeviceAttributeMaxTexture3DHeight',
  537. 51: 'hipDeviceAttributeMaxTexture3DDepth',
  538. 52: 'hipDeviceAttributeMaxTexture3DAlt',
  539. 53: 'hipDeviceAttributeMaxTextureCubemap',
  540. 54: 'hipDeviceAttributeMaxTextureCubemapLayered',
  541. 55: 'hipDeviceAttributeMaxThreadsDim',
  542. 56: 'hipDeviceAttributeMaxThreadsPerBlock',
  543. 57: 'hipDeviceAttributeMaxThreadsPerMultiProcessor',
  544. 58: 'hipDeviceAttributeMaxPitch',
  545. 59: 'hipDeviceAttributeMemoryBusWidth',
  546. 60: 'hipDeviceAttributeMemoryClockRate',
  547. 61: 'hipDeviceAttributeComputeCapabilityMinor',
  548. 62: 'hipDeviceAttributeMultiGpuBoardGroupID',
  549. 63: 'hipDeviceAttributeMultiprocessorCount',
  550. 64: 'hipDeviceAttributeUnused1',
  551. 65: 'hipDeviceAttributePageableMemoryAccess',
  552. 66: 'hipDeviceAttributePageableMemoryAccessUsesHostPageTables',
  553. 67: 'hipDeviceAttributePciBusId',
  554. 68: 'hipDeviceAttributePciDeviceId',
  555. 69: 'hipDeviceAttributePciDomainID',
  556. 70: 'hipDeviceAttributePersistingL2CacheMaxSize',
  557. 71: 'hipDeviceAttributeMaxRegistersPerBlock',
  558. 72: 'hipDeviceAttributeMaxRegistersPerMultiprocessor',
  559. 73: 'hipDeviceAttributeReservedSharedMemPerBlock',
  560. 74: 'hipDeviceAttributeMaxSharedMemoryPerBlock',
  561. 75: 'hipDeviceAttributeSharedMemPerBlockOptin',
  562. 76: 'hipDeviceAttributeSharedMemPerMultiprocessor',
  563. 77: 'hipDeviceAttributeSingleToDoublePrecisionPerfRatio',
  564. 78: 'hipDeviceAttributeStreamPrioritiesSupported',
  565. 79: 'hipDeviceAttributeSurfaceAlignment',
  566. 80: 'hipDeviceAttributeTccDriver',
  567. 81: 'hipDeviceAttributeTextureAlignment',
  568. 82: 'hipDeviceAttributeTexturePitchAlignment',
  569. 83: 'hipDeviceAttributeTotalConstantMemory',
  570. 84: 'hipDeviceAttributeTotalGlobalMem',
  571. 85: 'hipDeviceAttributeUnifiedAddressing',
  572. 86: 'hipDeviceAttributeUnused2',
  573. 87: 'hipDeviceAttributeWarpSize',
  574. 88: 'hipDeviceAttributeMemoryPoolsSupported',
  575. 89: 'hipDeviceAttributeVirtualMemoryManagementSupported',
  576. 90: 'hipDeviceAttributeHostRegisterSupported',
  577. 9999: 'hipDeviceAttributeCudaCompatibleEnd',
  578. 10000: 'hipDeviceAttributeAmdSpecificBegin',
  579. 10000: 'hipDeviceAttributeClockInstructionRate',
  580. 10001: 'hipDeviceAttributeUnused3',
  581. 10002: 'hipDeviceAttributeMaxSharedMemoryPerMultiprocessor',
  582. 10003: 'hipDeviceAttributeUnused4',
  583. 10004: 'hipDeviceAttributeUnused5',
  584. 10005: 'hipDeviceAttributeHdpMemFlushCntl',
  585. 10006: 'hipDeviceAttributeHdpRegFlushCntl',
  586. 10007: 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc',
  587. 10008: 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim',
  588. 10009: 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim',
  589. 10010: 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem',
  590. 10011: 'hipDeviceAttributeIsLargeBar',
  591. 10012: 'hipDeviceAttributeAsicRevision',
  592. 10013: 'hipDeviceAttributeCanUseStreamWaitValue',
  593. 10014: 'hipDeviceAttributeImageSupport',
  594. 10015: 'hipDeviceAttributePhysicalMultiProcessorCount',
  595. 10016: 'hipDeviceAttributeFineGrainSupport',
  596. 10017: 'hipDeviceAttributeWallClockRate',
  597. 19999: 'hipDeviceAttributeAmdSpecificEnd',
  598. 20000: 'hipDeviceAttributeVendorSpecificBegin',
  599. }
  600. hipDeviceAttributeCudaCompatibleBegin = 0
  601. hipDeviceAttributeEccEnabled = 0
  602. hipDeviceAttributeAccessPolicyMaxWindowSize = 1
  603. hipDeviceAttributeAsyncEngineCount = 2
  604. hipDeviceAttributeCanMapHostMemory = 3
  605. hipDeviceAttributeCanUseHostPointerForRegisteredMem = 4
  606. hipDeviceAttributeClockRate = 5
  607. hipDeviceAttributeComputeMode = 6
  608. hipDeviceAttributeComputePreemptionSupported = 7
  609. hipDeviceAttributeConcurrentKernels = 8
  610. hipDeviceAttributeConcurrentManagedAccess = 9
  611. hipDeviceAttributeCooperativeLaunch = 10
  612. hipDeviceAttributeCooperativeMultiDeviceLaunch = 11
  613. hipDeviceAttributeDeviceOverlap = 12
  614. hipDeviceAttributeDirectManagedMemAccessFromHost = 13
  615. hipDeviceAttributeGlobalL1CacheSupported = 14
  616. hipDeviceAttributeHostNativeAtomicSupported = 15
  617. hipDeviceAttributeIntegrated = 16
  618. hipDeviceAttributeIsMultiGpuBoard = 17
  619. hipDeviceAttributeKernelExecTimeout = 18
  620. hipDeviceAttributeL2CacheSize = 19
  621. hipDeviceAttributeLocalL1CacheSupported = 20
  622. hipDeviceAttributeLuid = 21
  623. hipDeviceAttributeLuidDeviceNodeMask = 22
  624. hipDeviceAttributeComputeCapabilityMajor = 23
  625. hipDeviceAttributeManagedMemory = 24
  626. hipDeviceAttributeMaxBlocksPerMultiProcessor = 25
  627. hipDeviceAttributeMaxBlockDimX = 26
  628. hipDeviceAttributeMaxBlockDimY = 27
  629. hipDeviceAttributeMaxBlockDimZ = 28
  630. hipDeviceAttributeMaxGridDimX = 29
  631. hipDeviceAttributeMaxGridDimY = 30
  632. hipDeviceAttributeMaxGridDimZ = 31
  633. hipDeviceAttributeMaxSurface1D = 32
  634. hipDeviceAttributeMaxSurface1DLayered = 33
  635. hipDeviceAttributeMaxSurface2D = 34
  636. hipDeviceAttributeMaxSurface2DLayered = 35
  637. hipDeviceAttributeMaxSurface3D = 36
  638. hipDeviceAttributeMaxSurfaceCubemap = 37
  639. hipDeviceAttributeMaxSurfaceCubemapLayered = 38
  640. hipDeviceAttributeMaxTexture1DWidth = 39
  641. hipDeviceAttributeMaxTexture1DLayered = 40
  642. hipDeviceAttributeMaxTexture1DLinear = 41
  643. hipDeviceAttributeMaxTexture1DMipmap = 42
  644. hipDeviceAttributeMaxTexture2DWidth = 43
  645. hipDeviceAttributeMaxTexture2DHeight = 44
  646. hipDeviceAttributeMaxTexture2DGather = 45
  647. hipDeviceAttributeMaxTexture2DLayered = 46
  648. hipDeviceAttributeMaxTexture2DLinear = 47
  649. hipDeviceAttributeMaxTexture2DMipmap = 48
  650. hipDeviceAttributeMaxTexture3DWidth = 49
  651. hipDeviceAttributeMaxTexture3DHeight = 50
  652. hipDeviceAttributeMaxTexture3DDepth = 51
  653. hipDeviceAttributeMaxTexture3DAlt = 52
  654. hipDeviceAttributeMaxTextureCubemap = 53
  655. hipDeviceAttributeMaxTextureCubemapLayered = 54
  656. hipDeviceAttributeMaxThreadsDim = 55
  657. hipDeviceAttributeMaxThreadsPerBlock = 56
  658. hipDeviceAttributeMaxThreadsPerMultiProcessor = 57
  659. hipDeviceAttributeMaxPitch = 58
  660. hipDeviceAttributeMemoryBusWidth = 59
  661. hipDeviceAttributeMemoryClockRate = 60
  662. hipDeviceAttributeComputeCapabilityMinor = 61
  663. hipDeviceAttributeMultiGpuBoardGroupID = 62
  664. hipDeviceAttributeMultiprocessorCount = 63
  665. hipDeviceAttributeUnused1 = 64
  666. hipDeviceAttributePageableMemoryAccess = 65
  667. hipDeviceAttributePageableMemoryAccessUsesHostPageTables = 66
  668. hipDeviceAttributePciBusId = 67
  669. hipDeviceAttributePciDeviceId = 68
  670. hipDeviceAttributePciDomainID = 69
  671. hipDeviceAttributePersistingL2CacheMaxSize = 70
  672. hipDeviceAttributeMaxRegistersPerBlock = 71
  673. hipDeviceAttributeMaxRegistersPerMultiprocessor = 72
  674. hipDeviceAttributeReservedSharedMemPerBlock = 73
  675. hipDeviceAttributeMaxSharedMemoryPerBlock = 74
  676. hipDeviceAttributeSharedMemPerBlockOptin = 75
  677. hipDeviceAttributeSharedMemPerMultiprocessor = 76
  678. hipDeviceAttributeSingleToDoublePrecisionPerfRatio = 77
  679. hipDeviceAttributeStreamPrioritiesSupported = 78
  680. hipDeviceAttributeSurfaceAlignment = 79
  681. hipDeviceAttributeTccDriver = 80
  682. hipDeviceAttributeTextureAlignment = 81
  683. hipDeviceAttributeTexturePitchAlignment = 82
  684. hipDeviceAttributeTotalConstantMemory = 83
  685. hipDeviceAttributeTotalGlobalMem = 84
  686. hipDeviceAttributeUnifiedAddressing = 85
  687. hipDeviceAttributeUnused2 = 86
  688. hipDeviceAttributeWarpSize = 87
  689. hipDeviceAttributeMemoryPoolsSupported = 88
  690. hipDeviceAttributeVirtualMemoryManagementSupported = 89
  691. hipDeviceAttributeHostRegisterSupported = 90
  692. hipDeviceAttributeCudaCompatibleEnd = 9999
  693. hipDeviceAttributeAmdSpecificBegin = 10000
  694. hipDeviceAttributeClockInstructionRate = 10000
  695. hipDeviceAttributeUnused3 = 10001
  696. hipDeviceAttributeMaxSharedMemoryPerMultiprocessor = 10002
  697. hipDeviceAttributeUnused4 = 10003
  698. hipDeviceAttributeUnused5 = 10004
  699. hipDeviceAttributeHdpMemFlushCntl = 10005
  700. hipDeviceAttributeHdpRegFlushCntl = 10006
  701. hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc = 10007
  702. hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim = 10008
  703. hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim = 10009
  704. hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem = 10010
  705. hipDeviceAttributeIsLargeBar = 10011
  706. hipDeviceAttributeAsicRevision = 10012
  707. hipDeviceAttributeCanUseStreamWaitValue = 10013
  708. hipDeviceAttributeImageSupport = 10014
  709. hipDeviceAttributePhysicalMultiProcessorCount = 10015
  710. hipDeviceAttributeFineGrainSupport = 10016
  711. hipDeviceAttributeWallClockRate = 10017
  712. hipDeviceAttributeAmdSpecificEnd = 19999
  713. hipDeviceAttributeVendorSpecificBegin = 20000
  714. hipDeviceAttribute_t = ctypes.c_uint32 # enum
  715. # values for enumeration 'hipComputeMode'
  716. hipComputeMode__enumvalues = {
  717. 0: 'hipComputeModeDefault',
  718. 1: 'hipComputeModeExclusive',
  719. 2: 'hipComputeModeProhibited',
  720. 3: 'hipComputeModeExclusiveProcess',
  721. }
  722. hipComputeModeDefault = 0
  723. hipComputeModeExclusive = 1
  724. hipComputeModeProhibited = 2
  725. hipComputeModeExclusiveProcess = 3
  726. hipComputeMode = ctypes.c_uint32 # enum
  727. hipDeviceptr_t = ctypes.POINTER(None)
  728. # values for enumeration 'hipChannelFormatKind'
  729. hipChannelFormatKind__enumvalues = {
  730. 0: 'hipChannelFormatKindSigned',
  731. 1: 'hipChannelFormatKindUnsigned',
  732. 2: 'hipChannelFormatKindFloat',
  733. 3: 'hipChannelFormatKindNone',
  734. }
  735. hipChannelFormatKindSigned = 0
  736. hipChannelFormatKindUnsigned = 1
  737. hipChannelFormatKindFloat = 2
  738. hipChannelFormatKindNone = 3
  739. hipChannelFormatKind = ctypes.c_uint32 # enum
  740. class struct_hipChannelFormatDesc(Structure):
  741. pass
  742. struct_hipChannelFormatDesc._pack_ = 1 # source:False
  743. struct_hipChannelFormatDesc._fields_ = [
  744. ('x', ctypes.c_int32),
  745. ('y', ctypes.c_int32),
  746. ('z', ctypes.c_int32),
  747. ('w', ctypes.c_int32),
  748. ('f', hipChannelFormatKind),
  749. ]
  750. hipChannelFormatDesc = struct_hipChannelFormatDesc
  751. class struct_hipArray(Structure):
  752. pass
  753. hipArray_t = ctypes.POINTER(struct_hipArray)
  754. hipArray_const_t = ctypes.POINTER(struct_hipArray)
  755. # values for enumeration 'hipArray_Format'
  756. hipArray_Format__enumvalues = {
  757. 1: 'HIP_AD_FORMAT_UNSIGNED_INT8',
  758. 2: 'HIP_AD_FORMAT_UNSIGNED_INT16',
  759. 3: 'HIP_AD_FORMAT_UNSIGNED_INT32',
  760. 8: 'HIP_AD_FORMAT_SIGNED_INT8',
  761. 9: 'HIP_AD_FORMAT_SIGNED_INT16',
  762. 10: 'HIP_AD_FORMAT_SIGNED_INT32',
  763. 16: 'HIP_AD_FORMAT_HALF',
  764. 32: 'HIP_AD_FORMAT_FLOAT',
  765. }
  766. HIP_AD_FORMAT_UNSIGNED_INT8 = 1
  767. HIP_AD_FORMAT_UNSIGNED_INT16 = 2
  768. HIP_AD_FORMAT_UNSIGNED_INT32 = 3
  769. HIP_AD_FORMAT_SIGNED_INT8 = 8
  770. HIP_AD_FORMAT_SIGNED_INT16 = 9
  771. HIP_AD_FORMAT_SIGNED_INT32 = 10
  772. HIP_AD_FORMAT_HALF = 16
  773. HIP_AD_FORMAT_FLOAT = 32
  774. hipArray_Format = ctypes.c_uint32 # enum
  775. class struct_HIP_ARRAY_DESCRIPTOR(Structure):
  776. pass
  777. struct_HIP_ARRAY_DESCRIPTOR._pack_ = 1 # source:False
  778. struct_HIP_ARRAY_DESCRIPTOR._fields_ = [
  779. ('Width', ctypes.c_uint64),
  780. ('Height', ctypes.c_uint64),
  781. ('Format', hipArray_Format),
  782. ('NumChannels', ctypes.c_uint32),
  783. ]
  784. HIP_ARRAY_DESCRIPTOR = struct_HIP_ARRAY_DESCRIPTOR
  785. class struct_HIP_ARRAY3D_DESCRIPTOR(Structure):
  786. pass
  787. struct_HIP_ARRAY3D_DESCRIPTOR._pack_ = 1 # source:False
  788. struct_HIP_ARRAY3D_DESCRIPTOR._fields_ = [
  789. ('Width', ctypes.c_uint64),
  790. ('Height', ctypes.c_uint64),
  791. ('Depth', ctypes.c_uint64),
  792. ('Format', hipArray_Format),
  793. ('NumChannels', ctypes.c_uint32),
  794. ('Flags', ctypes.c_uint32),
  795. ('PADDING_0', ctypes.c_ubyte * 4),
  796. ]
  797. HIP_ARRAY3D_DESCRIPTOR = struct_HIP_ARRAY3D_DESCRIPTOR
  798. class struct_hip_Memcpy2D(Structure):
  799. pass
  800. struct_hip_Memcpy2D._pack_ = 1 # source:False
  801. struct_hip_Memcpy2D._fields_ = [
  802. ('srcXInBytes', ctypes.c_uint64),
  803. ('srcY', ctypes.c_uint64),
  804. ('srcMemoryType', hipMemoryType),
  805. ('PADDING_0', ctypes.c_ubyte * 4),
  806. ('srcHost', ctypes.POINTER(None)),
  807. ('srcDevice', ctypes.POINTER(None)),
  808. ('srcArray', ctypes.POINTER(struct_hipArray)),
  809. ('srcPitch', ctypes.c_uint64),
  810. ('dstXInBytes', ctypes.c_uint64),
  811. ('dstY', ctypes.c_uint64),
  812. ('dstMemoryType', hipMemoryType),
  813. ('PADDING_1', ctypes.c_ubyte * 4),
  814. ('dstHost', ctypes.POINTER(None)),
  815. ('dstDevice', ctypes.POINTER(None)),
  816. ('dstArray', ctypes.POINTER(struct_hipArray)),
  817. ('dstPitch', ctypes.c_uint64),
  818. ('WidthInBytes', ctypes.c_uint64),
  819. ('Height', ctypes.c_uint64),
  820. ]
  821. hip_Memcpy2D = struct_hip_Memcpy2D
  822. class struct_hipMipmappedArray(Structure):
  823. pass
  824. struct_hipMipmappedArray._pack_ = 1 # source:False
  825. struct_hipMipmappedArray._fields_ = [
  826. ('data', ctypes.POINTER(None)),
  827. ('desc', struct_hipChannelFormatDesc),
  828. ('type', ctypes.c_uint32),
  829. ('width', ctypes.c_uint32),
  830. ('height', ctypes.c_uint32),
  831. ('depth', ctypes.c_uint32),
  832. ('min_mipmap_level', ctypes.c_uint32),
  833. ('max_mipmap_level', ctypes.c_uint32),
  834. ('flags', ctypes.c_uint32),
  835. ('format', hipArray_Format),
  836. ('num_channels', ctypes.c_uint32),
  837. ]
  838. hipMipmappedArray = struct_hipMipmappedArray
  839. hipMipmappedArray_t = ctypes.POINTER(struct_hipMipmappedArray)
  840. hipmipmappedArray = ctypes.POINTER(struct_hipMipmappedArray)
  841. hipMipmappedArray_const_t = ctypes.POINTER(struct_hipMipmappedArray)
  842. # values for enumeration 'hipResourceType'
  843. hipResourceType__enumvalues = {
  844. 0: 'hipResourceTypeArray',
  845. 1: 'hipResourceTypeMipmappedArray',
  846. 2: 'hipResourceTypeLinear',
  847. 3: 'hipResourceTypePitch2D',
  848. }
  849. hipResourceTypeArray = 0
  850. hipResourceTypeMipmappedArray = 1
  851. hipResourceTypeLinear = 2
  852. hipResourceTypePitch2D = 3
  853. hipResourceType = ctypes.c_uint32 # enum
  854. # values for enumeration 'HIPresourcetype_enum'
  855. HIPresourcetype_enum__enumvalues = {
  856. 0: 'HIP_RESOURCE_TYPE_ARRAY',
  857. 1: 'HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY',
  858. 2: 'HIP_RESOURCE_TYPE_LINEAR',
  859. 3: 'HIP_RESOURCE_TYPE_PITCH2D',
  860. }
  861. HIP_RESOURCE_TYPE_ARRAY = 0
  862. HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1
  863. HIP_RESOURCE_TYPE_LINEAR = 2
  864. HIP_RESOURCE_TYPE_PITCH2D = 3
  865. HIPresourcetype_enum = ctypes.c_uint32 # enum
  866. HIPresourcetype = HIPresourcetype_enum
  867. HIPresourcetype__enumvalues = HIPresourcetype_enum__enumvalues
  868. hipResourcetype = HIPresourcetype_enum
  869. hipResourcetype__enumvalues = HIPresourcetype_enum__enumvalues
  870. # values for enumeration 'HIPaddress_mode_enum'
  871. HIPaddress_mode_enum__enumvalues = {
  872. 0: 'HIP_TR_ADDRESS_MODE_WRAP',
  873. 1: 'HIP_TR_ADDRESS_MODE_CLAMP',
  874. 2: 'HIP_TR_ADDRESS_MODE_MIRROR',
  875. 3: 'HIP_TR_ADDRESS_MODE_BORDER',
  876. }
  877. HIP_TR_ADDRESS_MODE_WRAP = 0
  878. HIP_TR_ADDRESS_MODE_CLAMP = 1
  879. HIP_TR_ADDRESS_MODE_MIRROR = 2
  880. HIP_TR_ADDRESS_MODE_BORDER = 3
  881. HIPaddress_mode_enum = ctypes.c_uint32 # enum
  882. HIPaddress_mode = HIPaddress_mode_enum
  883. HIPaddress_mode__enumvalues = HIPaddress_mode_enum__enumvalues
  884. # values for enumeration 'HIPfilter_mode_enum'
  885. HIPfilter_mode_enum__enumvalues = {
  886. 0: 'HIP_TR_FILTER_MODE_POINT',
  887. 1: 'HIP_TR_FILTER_MODE_LINEAR',
  888. }
  889. HIP_TR_FILTER_MODE_POINT = 0
  890. HIP_TR_FILTER_MODE_LINEAR = 1
  891. HIPfilter_mode_enum = ctypes.c_uint32 # enum
  892. HIPfilter_mode = HIPfilter_mode_enum
  893. HIPfilter_mode__enumvalues = HIPfilter_mode_enum__enumvalues
  894. class struct_HIP_TEXTURE_DESC_st(Structure):
  895. pass
  896. struct_HIP_TEXTURE_DESC_st._pack_ = 1 # source:False
  897. struct_HIP_TEXTURE_DESC_st._fields_ = [
  898. ('addressMode', HIPaddress_mode_enum * 3),
  899. ('filterMode', HIPfilter_mode),
  900. ('flags', ctypes.c_uint32),
  901. ('maxAnisotropy', ctypes.c_uint32),
  902. ('mipmapFilterMode', HIPfilter_mode),
  903. ('mipmapLevelBias', ctypes.c_float),
  904. ('minMipmapLevelClamp', ctypes.c_float),
  905. ('maxMipmapLevelClamp', ctypes.c_float),
  906. ('borderColor', ctypes.c_float * 4),
  907. ('reserved', ctypes.c_int32 * 12),
  908. ]
  909. HIP_TEXTURE_DESC = struct_HIP_TEXTURE_DESC_st
  910. # values for enumeration 'hipResourceViewFormat'
  911. hipResourceViewFormat__enumvalues = {
  912. 0: 'hipResViewFormatNone',
  913. 1: 'hipResViewFormatUnsignedChar1',
  914. 2: 'hipResViewFormatUnsignedChar2',
  915. 3: 'hipResViewFormatUnsignedChar4',
  916. 4: 'hipResViewFormatSignedChar1',
  917. 5: 'hipResViewFormatSignedChar2',
  918. 6: 'hipResViewFormatSignedChar4',
  919. 7: 'hipResViewFormatUnsignedShort1',
  920. 8: 'hipResViewFormatUnsignedShort2',
  921. 9: 'hipResViewFormatUnsignedShort4',
  922. 10: 'hipResViewFormatSignedShort1',
  923. 11: 'hipResViewFormatSignedShort2',
  924. 12: 'hipResViewFormatSignedShort4',
  925. 13: 'hipResViewFormatUnsignedInt1',
  926. 14: 'hipResViewFormatUnsignedInt2',
  927. 15: 'hipResViewFormatUnsignedInt4',
  928. 16: 'hipResViewFormatSignedInt1',
  929. 17: 'hipResViewFormatSignedInt2',
  930. 18: 'hipResViewFormatSignedInt4',
  931. 19: 'hipResViewFormatHalf1',
  932. 20: 'hipResViewFormatHalf2',
  933. 21: 'hipResViewFormatHalf4',
  934. 22: 'hipResViewFormatFloat1',
  935. 23: 'hipResViewFormatFloat2',
  936. 24: 'hipResViewFormatFloat4',
  937. 25: 'hipResViewFormatUnsignedBlockCompressed1',
  938. 26: 'hipResViewFormatUnsignedBlockCompressed2',
  939. 27: 'hipResViewFormatUnsignedBlockCompressed3',
  940. 28: 'hipResViewFormatUnsignedBlockCompressed4',
  941. 29: 'hipResViewFormatSignedBlockCompressed4',
  942. 30: 'hipResViewFormatUnsignedBlockCompressed5',
  943. 31: 'hipResViewFormatSignedBlockCompressed5',
  944. 32: 'hipResViewFormatUnsignedBlockCompressed6H',
  945. 33: 'hipResViewFormatSignedBlockCompressed6H',
  946. 34: 'hipResViewFormatUnsignedBlockCompressed7',
  947. }
  948. hipResViewFormatNone = 0
  949. hipResViewFormatUnsignedChar1 = 1
  950. hipResViewFormatUnsignedChar2 = 2
  951. hipResViewFormatUnsignedChar4 = 3
  952. hipResViewFormatSignedChar1 = 4
  953. hipResViewFormatSignedChar2 = 5
  954. hipResViewFormatSignedChar4 = 6
  955. hipResViewFormatUnsignedShort1 = 7
  956. hipResViewFormatUnsignedShort2 = 8
  957. hipResViewFormatUnsignedShort4 = 9
  958. hipResViewFormatSignedShort1 = 10
  959. hipResViewFormatSignedShort2 = 11
  960. hipResViewFormatSignedShort4 = 12
  961. hipResViewFormatUnsignedInt1 = 13
  962. hipResViewFormatUnsignedInt2 = 14
  963. hipResViewFormatUnsignedInt4 = 15
  964. hipResViewFormatSignedInt1 = 16
  965. hipResViewFormatSignedInt2 = 17
  966. hipResViewFormatSignedInt4 = 18
  967. hipResViewFormatHalf1 = 19
  968. hipResViewFormatHalf2 = 20
  969. hipResViewFormatHalf4 = 21
  970. hipResViewFormatFloat1 = 22
  971. hipResViewFormatFloat2 = 23
  972. hipResViewFormatFloat4 = 24
  973. hipResViewFormatUnsignedBlockCompressed1 = 25
  974. hipResViewFormatUnsignedBlockCompressed2 = 26
  975. hipResViewFormatUnsignedBlockCompressed3 = 27
  976. hipResViewFormatUnsignedBlockCompressed4 = 28
  977. hipResViewFormatSignedBlockCompressed4 = 29
  978. hipResViewFormatUnsignedBlockCompressed5 = 30
  979. hipResViewFormatSignedBlockCompressed5 = 31
  980. hipResViewFormatUnsignedBlockCompressed6H = 32
  981. hipResViewFormatSignedBlockCompressed6H = 33
  982. hipResViewFormatUnsignedBlockCompressed7 = 34
  983. hipResourceViewFormat = ctypes.c_uint32 # enum
  984. # values for enumeration 'HIPresourceViewFormat_enum'
  985. HIPresourceViewFormat_enum__enumvalues = {
  986. 0: 'HIP_RES_VIEW_FORMAT_NONE',
  987. 1: 'HIP_RES_VIEW_FORMAT_UINT_1X8',
  988. 2: 'HIP_RES_VIEW_FORMAT_UINT_2X8',
  989. 3: 'HIP_RES_VIEW_FORMAT_UINT_4X8',
  990. 4: 'HIP_RES_VIEW_FORMAT_SINT_1X8',
  991. 5: 'HIP_RES_VIEW_FORMAT_SINT_2X8',
  992. 6: 'HIP_RES_VIEW_FORMAT_SINT_4X8',
  993. 7: 'HIP_RES_VIEW_FORMAT_UINT_1X16',
  994. 8: 'HIP_RES_VIEW_FORMAT_UINT_2X16',
  995. 9: 'HIP_RES_VIEW_FORMAT_UINT_4X16',
  996. 10: 'HIP_RES_VIEW_FORMAT_SINT_1X16',
  997. 11: 'HIP_RES_VIEW_FORMAT_SINT_2X16',
  998. 12: 'HIP_RES_VIEW_FORMAT_SINT_4X16',
  999. 13: 'HIP_RES_VIEW_FORMAT_UINT_1X32',
  1000. 14: 'HIP_RES_VIEW_FORMAT_UINT_2X32',
  1001. 15: 'HIP_RES_VIEW_FORMAT_UINT_4X32',
  1002. 16: 'HIP_RES_VIEW_FORMAT_SINT_1X32',
  1003. 17: 'HIP_RES_VIEW_FORMAT_SINT_2X32',
  1004. 18: 'HIP_RES_VIEW_FORMAT_SINT_4X32',
  1005. 19: 'HIP_RES_VIEW_FORMAT_FLOAT_1X16',
  1006. 20: 'HIP_RES_VIEW_FORMAT_FLOAT_2X16',
  1007. 21: 'HIP_RES_VIEW_FORMAT_FLOAT_4X16',
  1008. 22: 'HIP_RES_VIEW_FORMAT_FLOAT_1X32',
  1009. 23: 'HIP_RES_VIEW_FORMAT_FLOAT_2X32',
  1010. 24: 'HIP_RES_VIEW_FORMAT_FLOAT_4X32',
  1011. 25: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC1',
  1012. 26: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC2',
  1013. 27: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC3',
  1014. 28: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC4',
  1015. 29: 'HIP_RES_VIEW_FORMAT_SIGNED_BC4',
  1016. 30: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC5',
  1017. 31: 'HIP_RES_VIEW_FORMAT_SIGNED_BC5',
  1018. 32: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H',
  1019. 33: 'HIP_RES_VIEW_FORMAT_SIGNED_BC6H',
  1020. 34: 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC7',
  1021. }
  1022. HIP_RES_VIEW_FORMAT_NONE = 0
  1023. HIP_RES_VIEW_FORMAT_UINT_1X8 = 1
  1024. HIP_RES_VIEW_FORMAT_UINT_2X8 = 2
  1025. HIP_RES_VIEW_FORMAT_UINT_4X8 = 3
  1026. HIP_RES_VIEW_FORMAT_SINT_1X8 = 4
  1027. HIP_RES_VIEW_FORMAT_SINT_2X8 = 5
  1028. HIP_RES_VIEW_FORMAT_SINT_4X8 = 6
  1029. HIP_RES_VIEW_FORMAT_UINT_1X16 = 7
  1030. HIP_RES_VIEW_FORMAT_UINT_2X16 = 8
  1031. HIP_RES_VIEW_FORMAT_UINT_4X16 = 9
  1032. HIP_RES_VIEW_FORMAT_SINT_1X16 = 10
  1033. HIP_RES_VIEW_FORMAT_SINT_2X16 = 11
  1034. HIP_RES_VIEW_FORMAT_SINT_4X16 = 12
  1035. HIP_RES_VIEW_FORMAT_UINT_1X32 = 13
  1036. HIP_RES_VIEW_FORMAT_UINT_2X32 = 14
  1037. HIP_RES_VIEW_FORMAT_UINT_4X32 = 15
  1038. HIP_RES_VIEW_FORMAT_SINT_1X32 = 16
  1039. HIP_RES_VIEW_FORMAT_SINT_2X32 = 17
  1040. HIP_RES_VIEW_FORMAT_SINT_4X32 = 18
  1041. HIP_RES_VIEW_FORMAT_FLOAT_1X16 = 19
  1042. HIP_RES_VIEW_FORMAT_FLOAT_2X16 = 20
  1043. HIP_RES_VIEW_FORMAT_FLOAT_4X16 = 21
  1044. HIP_RES_VIEW_FORMAT_FLOAT_1X32 = 22
  1045. HIP_RES_VIEW_FORMAT_FLOAT_2X32 = 23
  1046. HIP_RES_VIEW_FORMAT_FLOAT_4X32 = 24
  1047. HIP_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25
  1048. HIP_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26
  1049. HIP_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27
  1050. HIP_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28
  1051. HIP_RES_VIEW_FORMAT_SIGNED_BC4 = 29
  1052. HIP_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30
  1053. HIP_RES_VIEW_FORMAT_SIGNED_BC5 = 31
  1054. HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32
  1055. HIP_RES_VIEW_FORMAT_SIGNED_BC6H = 33
  1056. HIP_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34
  1057. HIPresourceViewFormat_enum = ctypes.c_uint32 # enum
  1058. HIPresourceViewFormat = HIPresourceViewFormat_enum
  1059. HIPresourceViewFormat__enumvalues = HIPresourceViewFormat_enum__enumvalues
  1060. class struct_hipResourceDesc(Structure):
  1061. pass
  1062. class union_hipResourceDesc_res(Union):
  1063. pass
  1064. class struct_hipResourceDesc_0_array(Structure):
  1065. pass
  1066. struct_hipResourceDesc_0_array._pack_ = 1 # source:False
  1067. struct_hipResourceDesc_0_array._fields_ = [
  1068. ('array', ctypes.POINTER(struct_hipArray)),
  1069. ]
  1070. class struct_hipResourceDesc_0_mipmap(Structure):
  1071. pass
  1072. struct_hipResourceDesc_0_mipmap._pack_ = 1 # source:False
  1073. struct_hipResourceDesc_0_mipmap._fields_ = [
  1074. ('mipmap', ctypes.POINTER(struct_hipMipmappedArray)),
  1075. ]
  1076. class struct_hipResourceDesc_0_linear(Structure):
  1077. pass
  1078. struct_hipResourceDesc_0_linear._pack_ = 1 # source:False
  1079. struct_hipResourceDesc_0_linear._fields_ = [
  1080. ('devPtr', ctypes.POINTER(None)),
  1081. ('desc', struct_hipChannelFormatDesc),
  1082. ('PADDING_0', ctypes.c_ubyte * 4),
  1083. ('sizeInBytes', ctypes.c_uint64),
  1084. ]
  1085. class struct_hipResourceDesc_0_pitch2D(Structure):
  1086. pass
  1087. struct_hipResourceDesc_0_pitch2D._pack_ = 1 # source:False
  1088. struct_hipResourceDesc_0_pitch2D._fields_ = [
  1089. ('devPtr', ctypes.POINTER(None)),
  1090. ('desc', struct_hipChannelFormatDesc),
  1091. ('PADDING_0', ctypes.c_ubyte * 4),
  1092. ('width', ctypes.c_uint64),
  1093. ('height', ctypes.c_uint64),
  1094. ('pitchInBytes', ctypes.c_uint64),
  1095. ]
  1096. union_hipResourceDesc_res._pack_ = 1 # source:False
  1097. union_hipResourceDesc_res._fields_ = [
  1098. ('array', struct_hipResourceDesc_0_array),
  1099. ('mipmap', struct_hipResourceDesc_0_mipmap),
  1100. ('linear', struct_hipResourceDesc_0_linear),
  1101. ('pitch2D', struct_hipResourceDesc_0_pitch2D),
  1102. ]
  1103. struct_hipResourceDesc._pack_ = 1 # source:False
  1104. struct_hipResourceDesc._fields_ = [
  1105. ('resType', hipResourceType),
  1106. ('PADDING_0', ctypes.c_ubyte * 4),
  1107. ('res', union_hipResourceDesc_res),
  1108. ]
  1109. hipResourceDesc = struct_hipResourceDesc
  1110. class struct_HIP_RESOURCE_DESC_st(Structure):
  1111. pass
  1112. class union_HIP_RESOURCE_DESC_st_res(Union):
  1113. pass
  1114. class struct_HIP_RESOURCE_DESC_st_0_array(Structure):
  1115. pass
  1116. struct_HIP_RESOURCE_DESC_st_0_array._pack_ = 1 # source:False
  1117. struct_HIP_RESOURCE_DESC_st_0_array._fields_ = [
  1118. ('hArray', ctypes.POINTER(struct_hipArray)),
  1119. ]
  1120. class struct_HIP_RESOURCE_DESC_st_0_mipmap(Structure):
  1121. pass
  1122. struct_HIP_RESOURCE_DESC_st_0_mipmap._pack_ = 1 # source:False
  1123. struct_HIP_RESOURCE_DESC_st_0_mipmap._fields_ = [
  1124. ('hMipmappedArray', ctypes.POINTER(struct_hipMipmappedArray)),
  1125. ]
  1126. class struct_HIP_RESOURCE_DESC_st_0_linear(Structure):
  1127. pass
  1128. struct_HIP_RESOURCE_DESC_st_0_linear._pack_ = 1 # source:False
  1129. struct_HIP_RESOURCE_DESC_st_0_linear._fields_ = [
  1130. ('devPtr', ctypes.POINTER(None)),
  1131. ('format', hipArray_Format),
  1132. ('numChannels', ctypes.c_uint32),
  1133. ('sizeInBytes', ctypes.c_uint64),
  1134. ]
  1135. class struct_HIP_RESOURCE_DESC_st_0_pitch2D(Structure):
  1136. pass
  1137. struct_HIP_RESOURCE_DESC_st_0_pitch2D._pack_ = 1 # source:False
  1138. struct_HIP_RESOURCE_DESC_st_0_pitch2D._fields_ = [
  1139. ('devPtr', ctypes.POINTER(None)),
  1140. ('format', hipArray_Format),
  1141. ('numChannels', ctypes.c_uint32),
  1142. ('width', ctypes.c_uint64),
  1143. ('height', ctypes.c_uint64),
  1144. ('pitchInBytes', ctypes.c_uint64),
  1145. ]
  1146. class struct_HIP_RESOURCE_DESC_st_0_reserved(Structure):
  1147. pass
  1148. struct_HIP_RESOURCE_DESC_st_0_reserved._pack_ = 1 # source:False
  1149. struct_HIP_RESOURCE_DESC_st_0_reserved._fields_ = [
  1150. ('reserved', ctypes.c_int32 * 32),
  1151. ]
  1152. union_HIP_RESOURCE_DESC_st_res._pack_ = 1 # source:False
  1153. union_HIP_RESOURCE_DESC_st_res._fields_ = [
  1154. ('array', struct_HIP_RESOURCE_DESC_st_0_array),
  1155. ('mipmap', struct_HIP_RESOURCE_DESC_st_0_mipmap),
  1156. ('linear', struct_HIP_RESOURCE_DESC_st_0_linear),
  1157. ('pitch2D', struct_HIP_RESOURCE_DESC_st_0_pitch2D),
  1158. ('reserved', struct_HIP_RESOURCE_DESC_st_0_reserved),
  1159. ]
  1160. struct_HIP_RESOURCE_DESC_st._pack_ = 1 # source:False
  1161. struct_HIP_RESOURCE_DESC_st._fields_ = [
  1162. ('resType', HIPresourcetype),
  1163. ('PADDING_0', ctypes.c_ubyte * 4),
  1164. ('res', union_HIP_RESOURCE_DESC_st_res),
  1165. ('flags', ctypes.c_uint32),
  1166. ('PADDING_1', ctypes.c_ubyte * 4),
  1167. ]
  1168. HIP_RESOURCE_DESC = struct_HIP_RESOURCE_DESC_st
  1169. class struct_hipResourceViewDesc(Structure):
  1170. pass
  1171. struct_hipResourceViewDesc._pack_ = 1 # source:False
  1172. struct_hipResourceViewDesc._fields_ = [
  1173. ('format', hipResourceViewFormat),
  1174. ('PADDING_0', ctypes.c_ubyte * 4),
  1175. ('width', ctypes.c_uint64),
  1176. ('height', ctypes.c_uint64),
  1177. ('depth', ctypes.c_uint64),
  1178. ('firstMipmapLevel', ctypes.c_uint32),
  1179. ('lastMipmapLevel', ctypes.c_uint32),
  1180. ('firstLayer', ctypes.c_uint32),
  1181. ('lastLayer', ctypes.c_uint32),
  1182. ]
  1183. class struct_HIP_RESOURCE_VIEW_DESC_st(Structure):
  1184. pass
  1185. struct_HIP_RESOURCE_VIEW_DESC_st._pack_ = 1 # source:False
  1186. struct_HIP_RESOURCE_VIEW_DESC_st._fields_ = [
  1187. ('format', HIPresourceViewFormat),
  1188. ('PADDING_0', ctypes.c_ubyte * 4),
  1189. ('width', ctypes.c_uint64),
  1190. ('height', ctypes.c_uint64),
  1191. ('depth', ctypes.c_uint64),
  1192. ('firstMipmapLevel', ctypes.c_uint32),
  1193. ('lastMipmapLevel', ctypes.c_uint32),
  1194. ('firstLayer', ctypes.c_uint32),
  1195. ('lastLayer', ctypes.c_uint32),
  1196. ('reserved', ctypes.c_uint32 * 16),
  1197. ]
  1198. HIP_RESOURCE_VIEW_DESC = struct_HIP_RESOURCE_VIEW_DESC_st
  1199. # values for enumeration 'hipMemcpyKind'
  1200. hipMemcpyKind__enumvalues = {
  1201. 0: 'hipMemcpyHostToHost',
  1202. 1: 'hipMemcpyHostToDevice',
  1203. 2: 'hipMemcpyDeviceToHost',
  1204. 3: 'hipMemcpyDeviceToDevice',
  1205. 4: 'hipMemcpyDefault',
  1206. }
  1207. hipMemcpyHostToHost = 0
  1208. hipMemcpyHostToDevice = 1
  1209. hipMemcpyDeviceToHost = 2
  1210. hipMemcpyDeviceToDevice = 3
  1211. hipMemcpyDefault = 4
  1212. hipMemcpyKind = ctypes.c_uint32 # enum
  1213. class struct_hipPitchedPtr(Structure):
  1214. pass
  1215. struct_hipPitchedPtr._pack_ = 1 # source:False
  1216. struct_hipPitchedPtr._fields_ = [
  1217. ('ptr', ctypes.POINTER(None)),
  1218. ('pitch', ctypes.c_uint64),
  1219. ('xsize', ctypes.c_uint64),
  1220. ('ysize', ctypes.c_uint64),
  1221. ]
  1222. hipPitchedPtr = struct_hipPitchedPtr
  1223. class struct_hipExtent(Structure):
  1224. pass
  1225. struct_hipExtent._pack_ = 1 # source:False
  1226. struct_hipExtent._fields_ = [
  1227. ('width', ctypes.c_uint64),
  1228. ('height', ctypes.c_uint64),
  1229. ('depth', ctypes.c_uint64),
  1230. ]
  1231. hipExtent = struct_hipExtent
  1232. class struct_hipPos(Structure):
  1233. pass
  1234. struct_hipPos._pack_ = 1 # source:False
  1235. struct_hipPos._fields_ = [
  1236. ('x', ctypes.c_uint64),
  1237. ('y', ctypes.c_uint64),
  1238. ('z', ctypes.c_uint64),
  1239. ]
  1240. hipPos = struct_hipPos
  1241. class struct_hipMemcpy3DParms(Structure):
  1242. pass
  1243. struct_hipMemcpy3DParms._pack_ = 1 # source:False
  1244. struct_hipMemcpy3DParms._fields_ = [
  1245. ('srcArray', ctypes.POINTER(struct_hipArray)),
  1246. ('srcPos', struct_hipPos),
  1247. ('srcPtr', struct_hipPitchedPtr),
  1248. ('dstArray', ctypes.POINTER(struct_hipArray)),
  1249. ('dstPos', struct_hipPos),
  1250. ('dstPtr', struct_hipPitchedPtr),
  1251. ('extent', struct_hipExtent),
  1252. ('kind', hipMemcpyKind),
  1253. ('PADDING_0', ctypes.c_ubyte * 4),
  1254. ]
  1255. hipMemcpy3DParms = struct_hipMemcpy3DParms
  1256. class struct_HIP_MEMCPY3D(Structure):
  1257. pass
  1258. struct_HIP_MEMCPY3D._pack_ = 1 # source:False
  1259. struct_HIP_MEMCPY3D._fields_ = [
  1260. ('srcXInBytes', ctypes.c_uint64),
  1261. ('srcY', ctypes.c_uint64),
  1262. ('srcZ', ctypes.c_uint64),
  1263. ('srcLOD', ctypes.c_uint64),
  1264. ('srcMemoryType', hipMemoryType),
  1265. ('PADDING_0', ctypes.c_ubyte * 4),
  1266. ('srcHost', ctypes.POINTER(None)),
  1267. ('srcDevice', ctypes.POINTER(None)),
  1268. ('srcArray', ctypes.POINTER(struct_hipArray)),
  1269. ('srcPitch', ctypes.c_uint64),
  1270. ('srcHeight', ctypes.c_uint64),
  1271. ('dstXInBytes', ctypes.c_uint64),
  1272. ('dstY', ctypes.c_uint64),
  1273. ('dstZ', ctypes.c_uint64),
  1274. ('dstLOD', ctypes.c_uint64),
  1275. ('dstMemoryType', hipMemoryType),
  1276. ('PADDING_1', ctypes.c_ubyte * 4),
  1277. ('dstHost', ctypes.POINTER(None)),
  1278. ('dstDevice', ctypes.POINTER(None)),
  1279. ('dstArray', ctypes.POINTER(struct_hipArray)),
  1280. ('dstPitch', ctypes.c_uint64),
  1281. ('dstHeight', ctypes.c_uint64),
  1282. ('WidthInBytes', ctypes.c_uint64),
  1283. ('Height', ctypes.c_uint64),
  1284. ('Depth', ctypes.c_uint64),
  1285. ]
  1286. HIP_MEMCPY3D = struct_HIP_MEMCPY3D
  1287. size_t = ctypes.c_uint64
  1288. try:
  1289. make_hipPitchedPtr = _libraries['FIXME_STUB'].make_hipPitchedPtr
  1290. make_hipPitchedPtr.restype = struct_hipPitchedPtr
  1291. make_hipPitchedPtr.argtypes = [ctypes.POINTER(None), size_t, size_t, size_t]
  1292. except AttributeError:
  1293. pass
  1294. try:
  1295. make_hipPos = _libraries['FIXME_STUB'].make_hipPos
  1296. make_hipPos.restype = struct_hipPos
  1297. make_hipPos.argtypes = [size_t, size_t, size_t]
  1298. except AttributeError:
  1299. pass
  1300. try:
  1301. make_hipExtent = _libraries['FIXME_STUB'].make_hipExtent
  1302. make_hipExtent.restype = struct_hipExtent
  1303. make_hipExtent.argtypes = [size_t, size_t, size_t]
  1304. except AttributeError:
  1305. pass
  1306. # values for enumeration 'hipFunction_attribute'
  1307. hipFunction_attribute__enumvalues = {
  1308. 0: 'HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK',
  1309. 1: 'HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES',
  1310. 2: 'HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES',
  1311. 3: 'HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES',
  1312. 4: 'HIP_FUNC_ATTRIBUTE_NUM_REGS',
  1313. 5: 'HIP_FUNC_ATTRIBUTE_PTX_VERSION',
  1314. 6: 'HIP_FUNC_ATTRIBUTE_BINARY_VERSION',
  1315. 7: 'HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA',
  1316. 8: 'HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES',
  1317. 9: 'HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT',
  1318. 10: 'HIP_FUNC_ATTRIBUTE_MAX',
  1319. }
  1320. HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0
  1321. HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1
  1322. HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2
  1323. HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3
  1324. HIP_FUNC_ATTRIBUTE_NUM_REGS = 4
  1325. HIP_FUNC_ATTRIBUTE_PTX_VERSION = 5
  1326. HIP_FUNC_ATTRIBUTE_BINARY_VERSION = 6
  1327. HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7
  1328. HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8
  1329. HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9
  1330. HIP_FUNC_ATTRIBUTE_MAX = 10
  1331. hipFunction_attribute = ctypes.c_uint32 # enum
  1332. # values for enumeration 'hipPointer_attribute'
  1333. hipPointer_attribute__enumvalues = {
  1334. 1: 'HIP_POINTER_ATTRIBUTE_CONTEXT',
  1335. 2: 'HIP_POINTER_ATTRIBUTE_MEMORY_TYPE',
  1336. 3: 'HIP_POINTER_ATTRIBUTE_DEVICE_POINTER',
  1337. 4: 'HIP_POINTER_ATTRIBUTE_HOST_POINTER',
  1338. 5: 'HIP_POINTER_ATTRIBUTE_P2P_TOKENS',
  1339. 6: 'HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS',
  1340. 7: 'HIP_POINTER_ATTRIBUTE_BUFFER_ID',
  1341. 8: 'HIP_POINTER_ATTRIBUTE_IS_MANAGED',
  1342. 9: 'HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL',
  1343. 10: 'HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE',
  1344. 11: 'HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR',
  1345. 12: 'HIP_POINTER_ATTRIBUTE_RANGE_SIZE',
  1346. 13: 'HIP_POINTER_ATTRIBUTE_MAPPED',
  1347. 14: 'HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES',
  1348. 15: 'HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE',
  1349. 16: 'HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS',
  1350. 17: 'HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE',
  1351. }
  1352. HIP_POINTER_ATTRIBUTE_CONTEXT = 1
  1353. HIP_POINTER_ATTRIBUTE_MEMORY_TYPE = 2
  1354. HIP_POINTER_ATTRIBUTE_DEVICE_POINTER = 3
  1355. HIP_POINTER_ATTRIBUTE_HOST_POINTER = 4
  1356. HIP_POINTER_ATTRIBUTE_P2P_TOKENS = 5
  1357. HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6
  1358. HIP_POINTER_ATTRIBUTE_BUFFER_ID = 7
  1359. HIP_POINTER_ATTRIBUTE_IS_MANAGED = 8
  1360. HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9
  1361. HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE = 10
  1362. HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11
  1363. HIP_POINTER_ATTRIBUTE_RANGE_SIZE = 12
  1364. HIP_POINTER_ATTRIBUTE_MAPPED = 13
  1365. HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14
  1366. HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15
  1367. HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16
  1368. HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17
  1369. hipPointer_attribute = ctypes.c_uint32 # enum
  1370. try:
  1371. hip_init = _libraries['FIXME_STUB'].hip_init
  1372. hip_init.restype = hipError_t
  1373. hip_init.argtypes = []
  1374. except AttributeError:
  1375. pass
  1376. class struct_ihipCtx_t(Structure):
  1377. pass
  1378. hipCtx_t = ctypes.POINTER(struct_ihipCtx_t)
  1379. hipDevice_t = ctypes.c_int32
  1380. # values for enumeration 'hipDeviceP2PAttr'
  1381. hipDeviceP2PAttr__enumvalues = {
  1382. 0: 'hipDevP2PAttrPerformanceRank',
  1383. 1: 'hipDevP2PAttrAccessSupported',
  1384. 2: 'hipDevP2PAttrNativeAtomicSupported',
  1385. 3: 'hipDevP2PAttrHipArrayAccessSupported',
  1386. }
  1387. hipDevP2PAttrPerformanceRank = 0
  1388. hipDevP2PAttrAccessSupported = 1
  1389. hipDevP2PAttrNativeAtomicSupported = 2
  1390. hipDevP2PAttrHipArrayAccessSupported = 3
  1391. hipDeviceP2PAttr = ctypes.c_uint32 # enum
  1392. class struct_ihipStream_t(Structure):
  1393. pass
  1394. hipStream_t = ctypes.POINTER(struct_ihipStream_t)
  1395. class struct_hipIpcMemHandle_st(Structure):
  1396. pass
  1397. struct_hipIpcMemHandle_st._pack_ = 1 # source:False
  1398. struct_hipIpcMemHandle_st._fields_ = [
  1399. ('reserved', ctypes.c_char * 64),
  1400. ]
  1401. hipIpcMemHandle_t = struct_hipIpcMemHandle_st
  1402. class struct_hipIpcEventHandle_st(Structure):
  1403. pass
  1404. struct_hipIpcEventHandle_st._pack_ = 1 # source:False
  1405. struct_hipIpcEventHandle_st._fields_ = [
  1406. ('reserved', ctypes.c_char * 64),
  1407. ]
  1408. hipIpcEventHandle_t = struct_hipIpcEventHandle_st
  1409. class struct_ihipModule_t(Structure):
  1410. pass
  1411. hipModule_t = ctypes.POINTER(struct_ihipModule_t)
  1412. class struct_ihipModuleSymbol_t(Structure):
  1413. pass
  1414. hipFunction_t = ctypes.POINTER(struct_ihipModuleSymbol_t)
  1415. class struct_ihipMemPoolHandle_t(Structure):
  1416. pass
  1417. hipMemPool_t = ctypes.POINTER(struct_ihipMemPoolHandle_t)
  1418. class struct_hipFuncAttributes(Structure):
  1419. pass
  1420. struct_hipFuncAttributes._pack_ = 1 # source:False
  1421. struct_hipFuncAttributes._fields_ = [
  1422. ('binaryVersion', ctypes.c_int32),
  1423. ('cacheModeCA', ctypes.c_int32),
  1424. ('constSizeBytes', ctypes.c_uint64),
  1425. ('localSizeBytes', ctypes.c_uint64),
  1426. ('maxDynamicSharedSizeBytes', ctypes.c_int32),
  1427. ('maxThreadsPerBlock', ctypes.c_int32),
  1428. ('numRegs', ctypes.c_int32),
  1429. ('preferredShmemCarveout', ctypes.c_int32),
  1430. ('ptxVersion', ctypes.c_int32),
  1431. ('PADDING_0', ctypes.c_ubyte * 4),
  1432. ('sharedSizeBytes', ctypes.c_uint64),
  1433. ]
  1434. hipFuncAttributes = struct_hipFuncAttributes
  1435. class struct_ihipEvent_t(Structure):
  1436. pass
  1437. hipEvent_t = ctypes.POINTER(struct_ihipEvent_t)
  1438. # values for enumeration 'hipLimit_t'
  1439. hipLimit_t__enumvalues = {
  1440. 0: 'hipLimitStackSize',
  1441. 1: 'hipLimitPrintfFifoSize',
  1442. 2: 'hipLimitMallocHeapSize',
  1443. 3: 'hipLimitRange',
  1444. }
  1445. hipLimitStackSize = 0
  1446. hipLimitPrintfFifoSize = 1
  1447. hipLimitMallocHeapSize = 2
  1448. hipLimitRange = 3
  1449. hipLimit_t = ctypes.c_uint32 # enum
  1450. # values for enumeration 'hipMemoryAdvise'
  1451. hipMemoryAdvise__enumvalues = {
  1452. 1: 'hipMemAdviseSetReadMostly',
  1453. 2: 'hipMemAdviseUnsetReadMostly',
  1454. 3: 'hipMemAdviseSetPreferredLocation',
  1455. 4: 'hipMemAdviseUnsetPreferredLocation',
  1456. 5: 'hipMemAdviseSetAccessedBy',
  1457. 6: 'hipMemAdviseUnsetAccessedBy',
  1458. 100: 'hipMemAdviseSetCoarseGrain',
  1459. 101: 'hipMemAdviseUnsetCoarseGrain',
  1460. }
  1461. hipMemAdviseSetReadMostly = 1
  1462. hipMemAdviseUnsetReadMostly = 2
  1463. hipMemAdviseSetPreferredLocation = 3
  1464. hipMemAdviseUnsetPreferredLocation = 4
  1465. hipMemAdviseSetAccessedBy = 5
  1466. hipMemAdviseUnsetAccessedBy = 6
  1467. hipMemAdviseSetCoarseGrain = 100
  1468. hipMemAdviseUnsetCoarseGrain = 101
  1469. hipMemoryAdvise = ctypes.c_uint32 # enum
  1470. # values for enumeration 'hipMemRangeCoherencyMode'
  1471. hipMemRangeCoherencyMode__enumvalues = {
  1472. 0: 'hipMemRangeCoherencyModeFineGrain',
  1473. 1: 'hipMemRangeCoherencyModeCoarseGrain',
  1474. 2: 'hipMemRangeCoherencyModeIndeterminate',
  1475. }
  1476. hipMemRangeCoherencyModeFineGrain = 0
  1477. hipMemRangeCoherencyModeCoarseGrain = 1
  1478. hipMemRangeCoherencyModeIndeterminate = 2
  1479. hipMemRangeCoherencyMode = ctypes.c_uint32 # enum
  1480. # values for enumeration 'hipMemRangeAttribute'
  1481. hipMemRangeAttribute__enumvalues = {
  1482. 1: 'hipMemRangeAttributeReadMostly',
  1483. 2: 'hipMemRangeAttributePreferredLocation',
  1484. 3: 'hipMemRangeAttributeAccessedBy',
  1485. 4: 'hipMemRangeAttributeLastPrefetchLocation',
  1486. 100: 'hipMemRangeAttributeCoherencyMode',
  1487. }
  1488. hipMemRangeAttributeReadMostly = 1
  1489. hipMemRangeAttributePreferredLocation = 2
  1490. hipMemRangeAttributeAccessedBy = 3
  1491. hipMemRangeAttributeLastPrefetchLocation = 4
  1492. hipMemRangeAttributeCoherencyMode = 100
  1493. hipMemRangeAttribute = ctypes.c_uint32 # enum
  1494. # values for enumeration 'hipMemPoolAttr'
  1495. hipMemPoolAttr__enumvalues = {
  1496. 1: 'hipMemPoolReuseFollowEventDependencies',
  1497. 2: 'hipMemPoolReuseAllowOpportunistic',
  1498. 3: 'hipMemPoolReuseAllowInternalDependencies',
  1499. 4: 'hipMemPoolAttrReleaseThreshold',
  1500. 5: 'hipMemPoolAttrReservedMemCurrent',
  1501. 6: 'hipMemPoolAttrReservedMemHigh',
  1502. 7: 'hipMemPoolAttrUsedMemCurrent',
  1503. 8: 'hipMemPoolAttrUsedMemHigh',
  1504. }
  1505. hipMemPoolReuseFollowEventDependencies = 1
  1506. hipMemPoolReuseAllowOpportunistic = 2
  1507. hipMemPoolReuseAllowInternalDependencies = 3
  1508. hipMemPoolAttrReleaseThreshold = 4
  1509. hipMemPoolAttrReservedMemCurrent = 5
  1510. hipMemPoolAttrReservedMemHigh = 6
  1511. hipMemPoolAttrUsedMemCurrent = 7
  1512. hipMemPoolAttrUsedMemHigh = 8
  1513. hipMemPoolAttr = ctypes.c_uint32 # enum
  1514. # values for enumeration 'hipMemLocationType'
  1515. hipMemLocationType__enumvalues = {
  1516. 0: 'hipMemLocationTypeInvalid',
  1517. 1: 'hipMemLocationTypeDevice',
  1518. }
  1519. hipMemLocationTypeInvalid = 0
  1520. hipMemLocationTypeDevice = 1
  1521. hipMemLocationType = ctypes.c_uint32 # enum
  1522. class struct_hipMemLocation(Structure):
  1523. pass
  1524. struct_hipMemLocation._pack_ = 1 # source:False
  1525. struct_hipMemLocation._fields_ = [
  1526. ('type', hipMemLocationType),
  1527. ('id', ctypes.c_int32),
  1528. ]
  1529. hipMemLocation = struct_hipMemLocation
  1530. # values for enumeration 'hipMemAccessFlags'
  1531. hipMemAccessFlags__enumvalues = {
  1532. 0: 'hipMemAccessFlagsProtNone',
  1533. 1: 'hipMemAccessFlagsProtRead',
  1534. 3: 'hipMemAccessFlagsProtReadWrite',
  1535. }
  1536. hipMemAccessFlagsProtNone = 0
  1537. hipMemAccessFlagsProtRead = 1
  1538. hipMemAccessFlagsProtReadWrite = 3
  1539. hipMemAccessFlags = ctypes.c_uint32 # enum
  1540. class struct_hipMemAccessDesc(Structure):
  1541. _pack_ = 1 # source:False
  1542. _fields_ = [
  1543. ('location', hipMemLocation),
  1544. ('flags', hipMemAccessFlags),
  1545. ]
  1546. hipMemAccessDesc = struct_hipMemAccessDesc
  1547. # values for enumeration 'hipMemAllocationType'
  1548. hipMemAllocationType__enumvalues = {
  1549. 0: 'hipMemAllocationTypeInvalid',
  1550. 1: 'hipMemAllocationTypePinned',
  1551. 2147483647: 'hipMemAllocationTypeMax',
  1552. }
  1553. hipMemAllocationTypeInvalid = 0
  1554. hipMemAllocationTypePinned = 1
  1555. hipMemAllocationTypeMax = 2147483647
  1556. hipMemAllocationType = ctypes.c_uint32 # enum
  1557. # values for enumeration 'hipMemAllocationHandleType'
  1558. hipMemAllocationHandleType__enumvalues = {
  1559. 0: 'hipMemHandleTypeNone',
  1560. 1: 'hipMemHandleTypePosixFileDescriptor',
  1561. 2: 'hipMemHandleTypeWin32',
  1562. 4: 'hipMemHandleTypeWin32Kmt',
  1563. }
  1564. hipMemHandleTypeNone = 0
  1565. hipMemHandleTypePosixFileDescriptor = 1
  1566. hipMemHandleTypeWin32 = 2
  1567. hipMemHandleTypeWin32Kmt = 4
  1568. hipMemAllocationHandleType = ctypes.c_uint32 # enum
  1569. class struct_hipMemPoolProps(Structure):
  1570. pass
  1571. struct_hipMemPoolProps._pack_ = 1 # source:False
  1572. struct_hipMemPoolProps._fields_ = [
  1573. ('allocType', hipMemAllocationType),
  1574. ('handleTypes', hipMemAllocationHandleType),
  1575. ('location', hipMemLocation),
  1576. ('win32SecurityAttributes', ctypes.POINTER(None)),
  1577. ('reserved', ctypes.c_ubyte * 64),
  1578. ]
  1579. hipMemPoolProps = struct_hipMemPoolProps
  1580. class struct_hipMemPoolPtrExportData(Structure):
  1581. pass
  1582. struct_hipMemPoolPtrExportData._pack_ = 1 # source:False
  1583. struct_hipMemPoolPtrExportData._fields_ = [
  1584. ('reserved', ctypes.c_ubyte * 64),
  1585. ]
  1586. hipMemPoolPtrExportData = struct_hipMemPoolPtrExportData
  1587. # values for enumeration 'hipJitOption'
  1588. hipJitOption__enumvalues = {
  1589. 0: 'hipJitOptionMaxRegisters',
  1590. 1: 'hipJitOptionThreadsPerBlock',
  1591. 2: 'hipJitOptionWallTime',
  1592. 3: 'hipJitOptionInfoLogBuffer',
  1593. 4: 'hipJitOptionInfoLogBufferSizeBytes',
  1594. 5: 'hipJitOptionErrorLogBuffer',
  1595. 6: 'hipJitOptionErrorLogBufferSizeBytes',
  1596. 7: 'hipJitOptionOptimizationLevel',
  1597. 8: 'hipJitOptionTargetFromContext',
  1598. 9: 'hipJitOptionTarget',
  1599. 10: 'hipJitOptionFallbackStrategy',
  1600. 11: 'hipJitOptionGenerateDebugInfo',
  1601. 12: 'hipJitOptionLogVerbose',
  1602. 13: 'hipJitOptionGenerateLineInfo',
  1603. 14: 'hipJitOptionCacheMode',
  1604. 15: 'hipJitOptionSm3xOpt',
  1605. 16: 'hipJitOptionFastCompile',
  1606. 17: 'hipJitOptionNumOptions',
  1607. }
  1608. hipJitOptionMaxRegisters = 0
  1609. hipJitOptionThreadsPerBlock = 1
  1610. hipJitOptionWallTime = 2
  1611. hipJitOptionInfoLogBuffer = 3
  1612. hipJitOptionInfoLogBufferSizeBytes = 4
  1613. hipJitOptionErrorLogBuffer = 5
  1614. hipJitOptionErrorLogBufferSizeBytes = 6
  1615. hipJitOptionOptimizationLevel = 7
  1616. hipJitOptionTargetFromContext = 8
  1617. hipJitOptionTarget = 9
  1618. hipJitOptionFallbackStrategy = 10
  1619. hipJitOptionGenerateDebugInfo = 11
  1620. hipJitOptionLogVerbose = 12
  1621. hipJitOptionGenerateLineInfo = 13
  1622. hipJitOptionCacheMode = 14
  1623. hipJitOptionSm3xOpt = 15
  1624. hipJitOptionFastCompile = 16
  1625. hipJitOptionNumOptions = 17
  1626. hipJitOption = ctypes.c_uint32 # enum
  1627. # values for enumeration 'hipFuncAttribute'
  1628. hipFuncAttribute__enumvalues = {
  1629. 8: 'hipFuncAttributeMaxDynamicSharedMemorySize',
  1630. 9: 'hipFuncAttributePreferredSharedMemoryCarveout',
  1631. 10: 'hipFuncAttributeMax',
  1632. }
  1633. hipFuncAttributeMaxDynamicSharedMemorySize = 8
  1634. hipFuncAttributePreferredSharedMemoryCarveout = 9
  1635. hipFuncAttributeMax = 10
  1636. hipFuncAttribute = ctypes.c_uint32 # enum
  1637. # values for enumeration 'hipFuncCache_t'
  1638. hipFuncCache_t__enumvalues = {
  1639. 0: 'hipFuncCachePreferNone',
  1640. 1: 'hipFuncCachePreferShared',
  1641. 2: 'hipFuncCachePreferL1',
  1642. 3: 'hipFuncCachePreferEqual',
  1643. }
  1644. hipFuncCachePreferNone = 0
  1645. hipFuncCachePreferShared = 1
  1646. hipFuncCachePreferL1 = 2
  1647. hipFuncCachePreferEqual = 3
  1648. hipFuncCache_t = ctypes.c_uint32 # enum
  1649. # values for enumeration 'hipSharedMemConfig'
  1650. hipSharedMemConfig__enumvalues = {
  1651. 0: 'hipSharedMemBankSizeDefault',
  1652. 1: 'hipSharedMemBankSizeFourByte',
  1653. 2: 'hipSharedMemBankSizeEightByte',
  1654. }
  1655. hipSharedMemBankSizeDefault = 0
  1656. hipSharedMemBankSizeFourByte = 1
  1657. hipSharedMemBankSizeEightByte = 2
  1658. hipSharedMemConfig = ctypes.c_uint32 # enum
  1659. class struct_dim3(Structure):
  1660. pass
  1661. struct_dim3._pack_ = 1 # source:False
  1662. struct_dim3._fields_ = [
  1663. ('x', ctypes.c_uint32),
  1664. ('y', ctypes.c_uint32),
  1665. ('z', ctypes.c_uint32),
  1666. ]
  1667. dim3 = struct_dim3
  1668. class struct_hipLaunchParams_t(Structure):
  1669. pass
  1670. struct_hipLaunchParams_t._pack_ = 1 # source:False
  1671. struct_hipLaunchParams_t._fields_ = [
  1672. ('func', ctypes.POINTER(None)),
  1673. ('gridDim', dim3),
  1674. ('blockDim', dim3),
  1675. ('args', ctypes.POINTER(ctypes.POINTER(None))),
  1676. ('sharedMem', ctypes.c_uint64),
  1677. ('stream', ctypes.POINTER(struct_ihipStream_t)),
  1678. ]
  1679. hipLaunchParams = struct_hipLaunchParams_t
  1680. class struct_hipFunctionLaunchParams_t(Structure):
  1681. pass
  1682. struct_hipFunctionLaunchParams_t._pack_ = 1 # source:False
  1683. struct_hipFunctionLaunchParams_t._fields_ = [
  1684. ('function', ctypes.POINTER(struct_ihipModuleSymbol_t)),
  1685. ('gridDimX', ctypes.c_uint32),
  1686. ('gridDimY', ctypes.c_uint32),
  1687. ('gridDimZ', ctypes.c_uint32),
  1688. ('blockDimX', ctypes.c_uint32),
  1689. ('blockDimY', ctypes.c_uint32),
  1690. ('blockDimZ', ctypes.c_uint32),
  1691. ('sharedMemBytes', ctypes.c_uint32),
  1692. ('PADDING_0', ctypes.c_ubyte * 4),
  1693. ('hStream', ctypes.POINTER(struct_ihipStream_t)),
  1694. ('kernelParams', ctypes.POINTER(ctypes.POINTER(None))),
  1695. ]
  1696. hipFunctionLaunchParams = struct_hipFunctionLaunchParams_t
  1697. # values for enumeration 'hipExternalMemoryHandleType_enum'
  1698. hipExternalMemoryHandleType_enum__enumvalues = {
  1699. 1: 'hipExternalMemoryHandleTypeOpaqueFd',
  1700. 2: 'hipExternalMemoryHandleTypeOpaqueWin32',
  1701. 3: 'hipExternalMemoryHandleTypeOpaqueWin32Kmt',
  1702. 4: 'hipExternalMemoryHandleTypeD3D12Heap',
  1703. 5: 'hipExternalMemoryHandleTypeD3D12Resource',
  1704. 6: 'hipExternalMemoryHandleTypeD3D11Resource',
  1705. 7: 'hipExternalMemoryHandleTypeD3D11ResourceKmt',
  1706. 8: 'hipExternalMemoryHandleTypeNvSciBuf',
  1707. }
  1708. hipExternalMemoryHandleTypeOpaqueFd = 1
  1709. hipExternalMemoryHandleTypeOpaqueWin32 = 2
  1710. hipExternalMemoryHandleTypeOpaqueWin32Kmt = 3
  1711. hipExternalMemoryHandleTypeD3D12Heap = 4
  1712. hipExternalMemoryHandleTypeD3D12Resource = 5
  1713. hipExternalMemoryHandleTypeD3D11Resource = 6
  1714. hipExternalMemoryHandleTypeD3D11ResourceKmt = 7
  1715. hipExternalMemoryHandleTypeNvSciBuf = 8
  1716. hipExternalMemoryHandleType_enum = ctypes.c_uint32 # enum
  1717. hipExternalMemoryHandleType = hipExternalMemoryHandleType_enum
  1718. hipExternalMemoryHandleType__enumvalues = hipExternalMemoryHandleType_enum__enumvalues
  1719. class struct_hipExternalMemoryHandleDesc_st(Structure):
  1720. pass
  1721. class union_hipExternalMemoryHandleDesc_st_handle(Union):
  1722. pass
  1723. class struct_hipExternalMemoryHandleDesc_st_0_win32(Structure):
  1724. pass
  1725. struct_hipExternalMemoryHandleDesc_st_0_win32._pack_ = 1 # source:False
  1726. struct_hipExternalMemoryHandleDesc_st_0_win32._fields_ = [
  1727. ('handle', ctypes.POINTER(None)),
  1728. ('name', ctypes.POINTER(None)),
  1729. ]
  1730. union_hipExternalMemoryHandleDesc_st_handle._pack_ = 1 # source:False
  1731. union_hipExternalMemoryHandleDesc_st_handle._fields_ = [
  1732. ('fd', ctypes.c_int32),
  1733. ('win32', struct_hipExternalMemoryHandleDesc_st_0_win32),
  1734. ('nvSciBufObject', ctypes.POINTER(None)),
  1735. ('PADDING_0', ctypes.c_ubyte * 8),
  1736. ]
  1737. struct_hipExternalMemoryHandleDesc_st._pack_ = 1 # source:False
  1738. struct_hipExternalMemoryHandleDesc_st._fields_ = [
  1739. ('type', hipExternalMemoryHandleType),
  1740. ('PADDING_0', ctypes.c_ubyte * 4),
  1741. ('handle', union_hipExternalMemoryHandleDesc_st_handle),
  1742. ('size', ctypes.c_uint64),
  1743. ('flags', ctypes.c_uint32),
  1744. ('reserved', ctypes.c_uint32 * 16),
  1745. ('PADDING_1', ctypes.c_ubyte * 4),
  1746. ]
  1747. hipExternalMemoryHandleDesc = struct_hipExternalMemoryHandleDesc_st
  1748. class struct_hipExternalMemoryBufferDesc_st(Structure):
  1749. pass
  1750. struct_hipExternalMemoryBufferDesc_st._pack_ = 1 # source:False
  1751. struct_hipExternalMemoryBufferDesc_st._fields_ = [
  1752. ('offset', ctypes.c_uint64),
  1753. ('size', ctypes.c_uint64),
  1754. ('flags', ctypes.c_uint32),
  1755. ('reserved', ctypes.c_uint32 * 16),
  1756. ('PADDING_0', ctypes.c_ubyte * 4),
  1757. ]
  1758. hipExternalMemoryBufferDesc = struct_hipExternalMemoryBufferDesc_st
  1759. class struct_hipExternalMemoryMipmappedArrayDesc_st(Structure):
  1760. pass
  1761. struct_hipExternalMemoryMipmappedArrayDesc_st._pack_ = 1 # source:False
  1762. struct_hipExternalMemoryMipmappedArrayDesc_st._fields_ = [
  1763. ('offset', ctypes.c_uint64),
  1764. ('formatDesc', hipChannelFormatDesc),
  1765. ('PADDING_0', ctypes.c_ubyte * 4),
  1766. ('extent', hipExtent),
  1767. ('flags', ctypes.c_uint32),
  1768. ('numLevels', ctypes.c_uint32),
  1769. ]
  1770. hipExternalMemoryMipmappedArrayDesc = struct_hipExternalMemoryMipmappedArrayDesc_st
  1771. hipExternalMemory_t = ctypes.POINTER(None)
  1772. # values for enumeration 'hipExternalSemaphoreHandleType_enum'
  1773. hipExternalSemaphoreHandleType_enum__enumvalues = {
  1774. 1: 'hipExternalSemaphoreHandleTypeOpaqueFd',
  1775. 2: 'hipExternalSemaphoreHandleTypeOpaqueWin32',
  1776. 3: 'hipExternalSemaphoreHandleTypeOpaqueWin32Kmt',
  1777. 4: 'hipExternalSemaphoreHandleTypeD3D12Fence',
  1778. 5: 'hipExternalSemaphoreHandleTypeD3D11Fence',
  1779. 6: 'hipExternalSemaphoreHandleTypeNvSciSync',
  1780. 7: 'hipExternalSemaphoreHandleTypeKeyedMutex',
  1781. 8: 'hipExternalSemaphoreHandleTypeKeyedMutexKmt',
  1782. 9: 'hipExternalSemaphoreHandleTypeTimelineSemaphoreFd',
  1783. 10: 'hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32',
  1784. }
  1785. hipExternalSemaphoreHandleTypeOpaqueFd = 1
  1786. hipExternalSemaphoreHandleTypeOpaqueWin32 = 2
  1787. hipExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
  1788. hipExternalSemaphoreHandleTypeD3D12Fence = 4
  1789. hipExternalSemaphoreHandleTypeD3D11Fence = 5
  1790. hipExternalSemaphoreHandleTypeNvSciSync = 6
  1791. hipExternalSemaphoreHandleTypeKeyedMutex = 7
  1792. hipExternalSemaphoreHandleTypeKeyedMutexKmt = 8
  1793. hipExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
  1794. hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
  1795. hipExternalSemaphoreHandleType_enum = ctypes.c_uint32 # enum
  1796. hipExternalSemaphoreHandleType = hipExternalSemaphoreHandleType_enum
  1797. hipExternalSemaphoreHandleType__enumvalues = hipExternalSemaphoreHandleType_enum__enumvalues
  1798. class struct_hipExternalSemaphoreHandleDesc_st(Structure):
  1799. pass
  1800. class union_hipExternalSemaphoreHandleDesc_st_handle(Union):
  1801. pass
  1802. class struct_hipExternalSemaphoreHandleDesc_st_0_win32(Structure):
  1803. pass
  1804. struct_hipExternalSemaphoreHandleDesc_st_0_win32._pack_ = 1 # source:False
  1805. struct_hipExternalSemaphoreHandleDesc_st_0_win32._fields_ = [
  1806. ('handle', ctypes.POINTER(None)),
  1807. ('name', ctypes.POINTER(None)),
  1808. ]
  1809. union_hipExternalSemaphoreHandleDesc_st_handle._pack_ = 1 # source:False
  1810. union_hipExternalSemaphoreHandleDesc_st_handle._fields_ = [
  1811. ('fd', ctypes.c_int32),
  1812. ('win32', struct_hipExternalSemaphoreHandleDesc_st_0_win32),
  1813. ('NvSciSyncObj', ctypes.POINTER(None)),
  1814. ('PADDING_0', ctypes.c_ubyte * 8),
  1815. ]
  1816. struct_hipExternalSemaphoreHandleDesc_st._pack_ = 1 # source:False
  1817. struct_hipExternalSemaphoreHandleDesc_st._fields_ = [
  1818. ('type', hipExternalSemaphoreHandleType),
  1819. ('PADDING_0', ctypes.c_ubyte * 4),
  1820. ('handle', union_hipExternalSemaphoreHandleDesc_st_handle),
  1821. ('flags', ctypes.c_uint32),
  1822. ('reserved', ctypes.c_uint32 * 16),
  1823. ('PADDING_1', ctypes.c_ubyte * 4),
  1824. ]
  1825. hipExternalSemaphoreHandleDesc = struct_hipExternalSemaphoreHandleDesc_st
  1826. hipExternalSemaphore_t = ctypes.POINTER(None)
  1827. class struct_hipExternalSemaphoreSignalParams_st(Structure):
  1828. pass
  1829. class struct_hipExternalSemaphoreSignalParams_st_params(Structure):
  1830. pass
  1831. class struct_hipExternalSemaphoreSignalParams_st_0_fence(Structure):
  1832. pass
  1833. struct_hipExternalSemaphoreSignalParams_st_0_fence._pack_ = 1 # source:False
  1834. struct_hipExternalSemaphoreSignalParams_st_0_fence._fields_ = [
  1835. ('value', ctypes.c_uint64),
  1836. ]
  1837. class union_hipExternalSemaphoreSignalParams_st_0_nvSciSync(Union):
  1838. pass
  1839. union_hipExternalSemaphoreSignalParams_st_0_nvSciSync._pack_ = 1 # source:False
  1840. union_hipExternalSemaphoreSignalParams_st_0_nvSciSync._fields_ = [
  1841. ('fence', ctypes.POINTER(None)),
  1842. ('reserved', ctypes.c_uint64),
  1843. ]
  1844. class struct_hipExternalSemaphoreSignalParams_st_0_keyedMutex(Structure):
  1845. pass
  1846. struct_hipExternalSemaphoreSignalParams_st_0_keyedMutex._pack_ = 1 # source:False
  1847. struct_hipExternalSemaphoreSignalParams_st_0_keyedMutex._fields_ = [
  1848. ('key', ctypes.c_uint64),
  1849. ]
  1850. struct_hipExternalSemaphoreSignalParams_st_params._pack_ = 1 # source:False
  1851. struct_hipExternalSemaphoreSignalParams_st_params._fields_ = [
  1852. ('fence', struct_hipExternalSemaphoreSignalParams_st_0_fence),
  1853. ('nvSciSync', union_hipExternalSemaphoreSignalParams_st_0_nvSciSync),
  1854. ('keyedMutex', struct_hipExternalSemaphoreSignalParams_st_0_keyedMutex),
  1855. ('reserved', ctypes.c_uint32 * 12),
  1856. ]
  1857. struct_hipExternalSemaphoreSignalParams_st._pack_ = 1 # source:False
  1858. struct_hipExternalSemaphoreSignalParams_st._fields_ = [
  1859. ('params', struct_hipExternalSemaphoreSignalParams_st_params),
  1860. ('flags', ctypes.c_uint32),
  1861. ('reserved', ctypes.c_uint32 * 16),
  1862. ('PADDING_0', ctypes.c_ubyte * 4),
  1863. ]
  1864. hipExternalSemaphoreSignalParams = struct_hipExternalSemaphoreSignalParams_st
  1865. class struct_hipExternalSemaphoreWaitParams_st(Structure):
  1866. pass
  1867. class struct_hipExternalSemaphoreWaitParams_st_params(Structure):
  1868. pass
  1869. class struct_hipExternalSemaphoreWaitParams_st_0_fence(Structure):
  1870. pass
  1871. struct_hipExternalSemaphoreWaitParams_st_0_fence._pack_ = 1 # source:False
  1872. struct_hipExternalSemaphoreWaitParams_st_0_fence._fields_ = [
  1873. ('value', ctypes.c_uint64),
  1874. ]
  1875. class union_hipExternalSemaphoreWaitParams_st_0_nvSciSync(Union):
  1876. pass
  1877. union_hipExternalSemaphoreWaitParams_st_0_nvSciSync._pack_ = 1 # source:False
  1878. union_hipExternalSemaphoreWaitParams_st_0_nvSciSync._fields_ = [
  1879. ('fence', ctypes.POINTER(None)),
  1880. ('reserved', ctypes.c_uint64),
  1881. ]
  1882. class struct_hipExternalSemaphoreWaitParams_st_0_keyedMutex(Structure):
  1883. pass
  1884. struct_hipExternalSemaphoreWaitParams_st_0_keyedMutex._pack_ = 1 # source:False
  1885. struct_hipExternalSemaphoreWaitParams_st_0_keyedMutex._fields_ = [
  1886. ('key', ctypes.c_uint64),
  1887. ('timeoutMs', ctypes.c_uint32),
  1888. ('PADDING_0', ctypes.c_ubyte * 4),
  1889. ]
  1890. struct_hipExternalSemaphoreWaitParams_st_params._pack_ = 1 # source:False
  1891. struct_hipExternalSemaphoreWaitParams_st_params._fields_ = [
  1892. ('fence', struct_hipExternalSemaphoreWaitParams_st_0_fence),
  1893. ('nvSciSync', union_hipExternalSemaphoreWaitParams_st_0_nvSciSync),
  1894. ('keyedMutex', struct_hipExternalSemaphoreWaitParams_st_0_keyedMutex),
  1895. ('reserved', ctypes.c_uint32 * 10),
  1896. ]
  1897. struct_hipExternalSemaphoreWaitParams_st._pack_ = 1 # source:False
  1898. struct_hipExternalSemaphoreWaitParams_st._fields_ = [
  1899. ('params', struct_hipExternalSemaphoreWaitParams_st_params),
  1900. ('flags', ctypes.c_uint32),
  1901. ('reserved', ctypes.c_uint32 * 16),
  1902. ('PADDING_0', ctypes.c_ubyte * 4),
  1903. ]
  1904. hipExternalSemaphoreWaitParams = struct_hipExternalSemaphoreWaitParams_st
  1905. try:
  1906. __hipGetPCH = _libraries['libamdhip64.so'].__hipGetPCH
  1907. __hipGetPCH.restype = None
  1908. __hipGetPCH.argtypes = [ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_uint32)]
  1909. except AttributeError:
  1910. pass
  1911. # values for enumeration 'hipGraphicsRegisterFlags'
  1912. hipGraphicsRegisterFlags__enumvalues = {
  1913. 0: 'hipGraphicsRegisterFlagsNone',
  1914. 1: 'hipGraphicsRegisterFlagsReadOnly',
  1915. 2: 'hipGraphicsRegisterFlagsWriteDiscard',
  1916. 4: 'hipGraphicsRegisterFlagsSurfaceLoadStore',
  1917. 8: 'hipGraphicsRegisterFlagsTextureGather',
  1918. }
  1919. hipGraphicsRegisterFlagsNone = 0
  1920. hipGraphicsRegisterFlagsReadOnly = 1
  1921. hipGraphicsRegisterFlagsWriteDiscard = 2
  1922. hipGraphicsRegisterFlagsSurfaceLoadStore = 4
  1923. hipGraphicsRegisterFlagsTextureGather = 8
  1924. hipGraphicsRegisterFlags = ctypes.c_uint32 # enum
  1925. class struct__hipGraphicsResource(Structure):
  1926. pass
  1927. hipGraphicsResource = struct__hipGraphicsResource
  1928. hipGraphicsResource_t = ctypes.POINTER(struct__hipGraphicsResource)
  1929. class struct_ihipGraph(Structure):
  1930. pass
  1931. hipGraph_t = ctypes.POINTER(struct_ihipGraph)
  1932. class struct_hipGraphNode(Structure):
  1933. pass
  1934. hipGraphNode_t = ctypes.POINTER(struct_hipGraphNode)
  1935. class struct_hipGraphExec(Structure):
  1936. pass
  1937. hipGraphExec_t = ctypes.POINTER(struct_hipGraphExec)
  1938. class struct_hipUserObject(Structure):
  1939. pass
  1940. hipUserObject_t = ctypes.POINTER(struct_hipUserObject)
  1941. # values for enumeration 'hipGraphNodeType'
  1942. hipGraphNodeType__enumvalues = {
  1943. 0: 'hipGraphNodeTypeKernel',
  1944. 1: 'hipGraphNodeTypeMemcpy',
  1945. 2: 'hipGraphNodeTypeMemset',
  1946. 3: 'hipGraphNodeTypeHost',
  1947. 4: 'hipGraphNodeTypeGraph',
  1948. 5: 'hipGraphNodeTypeEmpty',
  1949. 6: 'hipGraphNodeTypeWaitEvent',
  1950. 7: 'hipGraphNodeTypeEventRecord',
  1951. 8: 'hipGraphNodeTypeExtSemaphoreSignal',
  1952. 9: 'hipGraphNodeTypeExtSemaphoreWait',
  1953. 10: 'hipGraphNodeTypeMemAlloc',
  1954. 11: 'hipGraphNodeTypeMemFree',
  1955. 12: 'hipGraphNodeTypeMemcpyFromSymbol',
  1956. 13: 'hipGraphNodeTypeMemcpyToSymbol',
  1957. 14: 'hipGraphNodeTypeCount',
  1958. }
  1959. hipGraphNodeTypeKernel = 0
  1960. hipGraphNodeTypeMemcpy = 1
  1961. hipGraphNodeTypeMemset = 2
  1962. hipGraphNodeTypeHost = 3
  1963. hipGraphNodeTypeGraph = 4
  1964. hipGraphNodeTypeEmpty = 5
  1965. hipGraphNodeTypeWaitEvent = 6
  1966. hipGraphNodeTypeEventRecord = 7
  1967. hipGraphNodeTypeExtSemaphoreSignal = 8
  1968. hipGraphNodeTypeExtSemaphoreWait = 9
  1969. hipGraphNodeTypeMemAlloc = 10
  1970. hipGraphNodeTypeMemFree = 11
  1971. hipGraphNodeTypeMemcpyFromSymbol = 12
  1972. hipGraphNodeTypeMemcpyToSymbol = 13
  1973. hipGraphNodeTypeCount = 14
  1974. hipGraphNodeType = ctypes.c_uint32 # enum
  1975. hipHostFn_t = ctypes.CFUNCTYPE(None, ctypes.POINTER(None))
  1976. class struct_hipHostNodeParams(Structure):
  1977. pass
  1978. struct_hipHostNodeParams._pack_ = 1 # source:False
  1979. struct_hipHostNodeParams._fields_ = [
  1980. ('fn', ctypes.CFUNCTYPE(None, ctypes.POINTER(None))),
  1981. ('userData', ctypes.POINTER(None)),
  1982. ]
  1983. hipHostNodeParams = struct_hipHostNodeParams
  1984. class struct_hipKernelNodeParams(Structure):
  1985. pass
  1986. struct_hipKernelNodeParams._pack_ = 1 # source:False
  1987. struct_hipKernelNodeParams._fields_ = [
  1988. ('blockDim', dim3),
  1989. ('PADDING_0', ctypes.c_ubyte * 4),
  1990. ('extra', ctypes.POINTER(ctypes.POINTER(None))),
  1991. ('func', ctypes.POINTER(None)),
  1992. ('gridDim', dim3),
  1993. ('PADDING_1', ctypes.c_ubyte * 4),
  1994. ('kernelParams', ctypes.POINTER(ctypes.POINTER(None))),
  1995. ('sharedMemBytes', ctypes.c_uint32),
  1996. ('PADDING_2', ctypes.c_ubyte * 4),
  1997. ]
  1998. hipKernelNodeParams = struct_hipKernelNodeParams
  1999. class struct_hipMemsetParams(Structure):
  2000. pass
  2001. struct_hipMemsetParams._pack_ = 1 # source:False
  2002. struct_hipMemsetParams._fields_ = [
  2003. ('dst', ctypes.POINTER(None)),
  2004. ('elementSize', ctypes.c_uint32),
  2005. ('PADDING_0', ctypes.c_ubyte * 4),
  2006. ('height', ctypes.c_uint64),
  2007. ('pitch', ctypes.c_uint64),
  2008. ('value', ctypes.c_uint32),
  2009. ('PADDING_1', ctypes.c_ubyte * 4),
  2010. ('width', ctypes.c_uint64),
  2011. ]
  2012. hipMemsetParams = struct_hipMemsetParams
  2013. class struct_hipMemAllocNodeParams(Structure):
  2014. pass
  2015. struct_hipMemAllocNodeParams._pack_ = 1 # source:False
  2016. struct_hipMemAllocNodeParams._fields_ = [
  2017. ('poolProps', hipMemPoolProps),
  2018. ('accessDescs', ctypes.POINTER(struct_hipMemAccessDesc)),
  2019. ('accessDescCount', ctypes.c_uint64),
  2020. ('bytesize', ctypes.c_uint64),
  2021. ('dptr', ctypes.POINTER(None)),
  2022. ]
  2023. hipMemAllocNodeParams = struct_hipMemAllocNodeParams
  2024. # values for enumeration 'hipKernelNodeAttrID'
  2025. hipKernelNodeAttrID__enumvalues = {
  2026. 1: 'hipKernelNodeAttributeAccessPolicyWindow',
  2027. 2: 'hipKernelNodeAttributeCooperative',
  2028. }
  2029. hipKernelNodeAttributeAccessPolicyWindow = 1
  2030. hipKernelNodeAttributeCooperative = 2
  2031. hipKernelNodeAttrID = ctypes.c_uint32 # enum
  2032. # values for enumeration 'hipAccessProperty'
  2033. hipAccessProperty__enumvalues = {
  2034. 0: 'hipAccessPropertyNormal',
  2035. 1: 'hipAccessPropertyStreaming',
  2036. 2: 'hipAccessPropertyPersisting',
  2037. }
  2038. hipAccessPropertyNormal = 0
  2039. hipAccessPropertyStreaming = 1
  2040. hipAccessPropertyPersisting = 2
  2041. hipAccessProperty = ctypes.c_uint32 # enum
  2042. class struct_hipAccessPolicyWindow(Structure):
  2043. pass
  2044. struct_hipAccessPolicyWindow._pack_ = 1 # source:False
  2045. struct_hipAccessPolicyWindow._fields_ = [
  2046. ('base_ptr', ctypes.POINTER(None)),
  2047. ('hitProp', hipAccessProperty),
  2048. ('hitRatio', ctypes.c_float),
  2049. ('missProp', hipAccessProperty),
  2050. ('PADDING_0', ctypes.c_ubyte * 4),
  2051. ('num_bytes', ctypes.c_uint64),
  2052. ]
  2053. hipAccessPolicyWindow = struct_hipAccessPolicyWindow
  2054. class union_hipKernelNodeAttrValue(Union):
  2055. pass
  2056. union_hipKernelNodeAttrValue._pack_ = 1 # source:False
  2057. union_hipKernelNodeAttrValue._fields_ = [
  2058. ('accessPolicyWindow', hipAccessPolicyWindow),
  2059. ('cooperative', ctypes.c_int32),
  2060. ('PADDING_0', ctypes.c_ubyte * 28),
  2061. ]
  2062. hipKernelNodeAttrValue = union_hipKernelNodeAttrValue
  2063. # values for enumeration 'hipGraphExecUpdateResult'
  2064. hipGraphExecUpdateResult__enumvalues = {
  2065. 0: 'hipGraphExecUpdateSuccess',
  2066. 1: 'hipGraphExecUpdateError',
  2067. 2: 'hipGraphExecUpdateErrorTopologyChanged',
  2068. 3: 'hipGraphExecUpdateErrorNodeTypeChanged',
  2069. 4: 'hipGraphExecUpdateErrorFunctionChanged',
  2070. 5: 'hipGraphExecUpdateErrorParametersChanged',
  2071. 6: 'hipGraphExecUpdateErrorNotSupported',
  2072. 7: 'hipGraphExecUpdateErrorUnsupportedFunctionChange',
  2073. }
  2074. hipGraphExecUpdateSuccess = 0
  2075. hipGraphExecUpdateError = 1
  2076. hipGraphExecUpdateErrorTopologyChanged = 2
  2077. hipGraphExecUpdateErrorNodeTypeChanged = 3
  2078. hipGraphExecUpdateErrorFunctionChanged = 4
  2079. hipGraphExecUpdateErrorParametersChanged = 5
  2080. hipGraphExecUpdateErrorNotSupported = 6
  2081. hipGraphExecUpdateErrorUnsupportedFunctionChange = 7
  2082. hipGraphExecUpdateResult = ctypes.c_uint32 # enum
  2083. # values for enumeration 'hipStreamCaptureMode'
  2084. hipStreamCaptureMode__enumvalues = {
  2085. 0: 'hipStreamCaptureModeGlobal',
  2086. 1: 'hipStreamCaptureModeThreadLocal',
  2087. 2: 'hipStreamCaptureModeRelaxed',
  2088. }
  2089. hipStreamCaptureModeGlobal = 0
  2090. hipStreamCaptureModeThreadLocal = 1
  2091. hipStreamCaptureModeRelaxed = 2
  2092. hipStreamCaptureMode = ctypes.c_uint32 # enum
  2093. # values for enumeration 'hipStreamCaptureStatus'
  2094. hipStreamCaptureStatus__enumvalues = {
  2095. 0: 'hipStreamCaptureStatusNone',
  2096. 1: 'hipStreamCaptureStatusActive',
  2097. 2: 'hipStreamCaptureStatusInvalidated',
  2098. }
  2099. hipStreamCaptureStatusNone = 0
  2100. hipStreamCaptureStatusActive = 1
  2101. hipStreamCaptureStatusInvalidated = 2
  2102. hipStreamCaptureStatus = ctypes.c_uint32 # enum
  2103. # values for enumeration 'hipStreamUpdateCaptureDependenciesFlags'
  2104. hipStreamUpdateCaptureDependenciesFlags__enumvalues = {
  2105. 0: 'hipStreamAddCaptureDependencies',
  2106. 1: 'hipStreamSetCaptureDependencies',
  2107. }
  2108. hipStreamAddCaptureDependencies = 0
  2109. hipStreamSetCaptureDependencies = 1
  2110. hipStreamUpdateCaptureDependenciesFlags = ctypes.c_uint32 # enum
  2111. # values for enumeration 'hipGraphMemAttributeType'
  2112. hipGraphMemAttributeType__enumvalues = {
  2113. 0: 'hipGraphMemAttrUsedMemCurrent',
  2114. 1: 'hipGraphMemAttrUsedMemHigh',
  2115. 2: 'hipGraphMemAttrReservedMemCurrent',
  2116. 3: 'hipGraphMemAttrReservedMemHigh',
  2117. }
  2118. hipGraphMemAttrUsedMemCurrent = 0
  2119. hipGraphMemAttrUsedMemHigh = 1
  2120. hipGraphMemAttrReservedMemCurrent = 2
  2121. hipGraphMemAttrReservedMemHigh = 3
  2122. hipGraphMemAttributeType = ctypes.c_uint32 # enum
  2123. # values for enumeration 'hipUserObjectFlags'
  2124. hipUserObjectFlags__enumvalues = {
  2125. 1: 'hipUserObjectNoDestructorSync',
  2126. }
  2127. hipUserObjectNoDestructorSync = 1
  2128. hipUserObjectFlags = ctypes.c_uint32 # enum
  2129. # values for enumeration 'hipUserObjectRetainFlags'
  2130. hipUserObjectRetainFlags__enumvalues = {
  2131. 1: 'hipGraphUserObjectMove',
  2132. }
  2133. hipGraphUserObjectMove = 1
  2134. hipUserObjectRetainFlags = ctypes.c_uint32 # enum
  2135. # values for enumeration 'hipGraphInstantiateFlags'
  2136. hipGraphInstantiateFlags__enumvalues = {
  2137. 1: 'hipGraphInstantiateFlagAutoFreeOnLaunch',
  2138. 2: 'hipGraphInstantiateFlagUpload',
  2139. 4: 'hipGraphInstantiateFlagDeviceLaunch',
  2140. 8: 'hipGraphInstantiateFlagUseNodePriority',
  2141. }
  2142. hipGraphInstantiateFlagAutoFreeOnLaunch = 1
  2143. hipGraphInstantiateFlagUpload = 2
  2144. hipGraphInstantiateFlagDeviceLaunch = 4
  2145. hipGraphInstantiateFlagUseNodePriority = 8
  2146. hipGraphInstantiateFlags = ctypes.c_uint32 # enum
  2147. # values for enumeration 'hipGraphDebugDotFlags'
  2148. hipGraphDebugDotFlags__enumvalues = {
  2149. 1: 'hipGraphDebugDotFlagsVerbose',
  2150. 4: 'hipGraphDebugDotFlagsKernelNodeParams',
  2151. 8: 'hipGraphDebugDotFlagsMemcpyNodeParams',
  2152. 16: 'hipGraphDebugDotFlagsMemsetNodeParams',
  2153. 32: 'hipGraphDebugDotFlagsHostNodeParams',
  2154. 64: 'hipGraphDebugDotFlagsEventNodeParams',
  2155. 128: 'hipGraphDebugDotFlagsExtSemasSignalNodeParams',
  2156. 256: 'hipGraphDebugDotFlagsExtSemasWaitNodeParams',
  2157. 512: 'hipGraphDebugDotFlagsKernelNodeAttributes',
  2158. 1024: 'hipGraphDebugDotFlagsHandles',
  2159. }
  2160. hipGraphDebugDotFlagsVerbose = 1
  2161. hipGraphDebugDotFlagsKernelNodeParams = 4
  2162. hipGraphDebugDotFlagsMemcpyNodeParams = 8
  2163. hipGraphDebugDotFlagsMemsetNodeParams = 16
  2164. hipGraphDebugDotFlagsHostNodeParams = 32
  2165. hipGraphDebugDotFlagsEventNodeParams = 64
  2166. hipGraphDebugDotFlagsExtSemasSignalNodeParams = 128
  2167. hipGraphDebugDotFlagsExtSemasWaitNodeParams = 256
  2168. hipGraphDebugDotFlagsKernelNodeAttributes = 512
  2169. hipGraphDebugDotFlagsHandles = 1024
  2170. hipGraphDebugDotFlags = ctypes.c_uint32 # enum
  2171. class struct_hipMemAllocationProp(Structure):
  2172. pass
  2173. class struct_hipMemAllocationProp_allocFlags(Structure):
  2174. pass
  2175. struct_hipMemAllocationProp_allocFlags._pack_ = 1 # source:False
  2176. struct_hipMemAllocationProp_allocFlags._fields_ = [
  2177. ('compressionType', ctypes.c_ubyte),
  2178. ('gpuDirectRDMACapable', ctypes.c_ubyte),
  2179. ('usage', ctypes.c_uint16),
  2180. ]
  2181. struct_hipMemAllocationProp._pack_ = 1 # source:False
  2182. struct_hipMemAllocationProp._fields_ = [
  2183. ('type', hipMemAllocationType),
  2184. ('requestedHandleType', hipMemAllocationHandleType),
  2185. ('location', hipMemLocation),
  2186. ('win32HandleMetaData', ctypes.POINTER(None)),
  2187. ('allocFlags', struct_hipMemAllocationProp_allocFlags),
  2188. ('PADDING_0', ctypes.c_ubyte * 4),
  2189. ]
  2190. hipMemAllocationProp = struct_hipMemAllocationProp
  2191. class struct_hipExternalSemaphoreSignalNodeParams(Structure):
  2192. pass
  2193. struct_hipExternalSemaphoreSignalNodeParams._pack_ = 1 # source:False
  2194. struct_hipExternalSemaphoreSignalNodeParams._fields_ = [
  2195. ('extSemArray', ctypes.POINTER(ctypes.POINTER(None))),
  2196. ('paramsArray', ctypes.POINTER(struct_hipExternalSemaphoreSignalParams_st)),
  2197. ('numExtSems', ctypes.c_uint32),
  2198. ('PADDING_0', ctypes.c_ubyte * 4),
  2199. ]
  2200. hipExternalSemaphoreSignalNodeParams = struct_hipExternalSemaphoreSignalNodeParams
  2201. class struct_hipExternalSemaphoreWaitNodeParams(Structure):
  2202. pass
  2203. struct_hipExternalSemaphoreWaitNodeParams._pack_ = 1 # source:False
  2204. struct_hipExternalSemaphoreWaitNodeParams._fields_ = [
  2205. ('extSemArray', ctypes.POINTER(ctypes.POINTER(None))),
  2206. ('paramsArray', ctypes.POINTER(struct_hipExternalSemaphoreWaitParams_st)),
  2207. ('numExtSems', ctypes.c_uint32),
  2208. ('PADDING_0', ctypes.c_ubyte * 4),
  2209. ]
  2210. hipExternalSemaphoreWaitNodeParams = struct_hipExternalSemaphoreWaitNodeParams
  2211. class struct_ihipMemGenericAllocationHandle(Structure):
  2212. pass
  2213. hipMemGenericAllocationHandle_t = ctypes.POINTER(struct_ihipMemGenericAllocationHandle)
  2214. # values for enumeration 'hipMemAllocationGranularity_flags'
  2215. hipMemAllocationGranularity_flags__enumvalues = {
  2216. 0: 'hipMemAllocationGranularityMinimum',
  2217. 1: 'hipMemAllocationGranularityRecommended',
  2218. }
  2219. hipMemAllocationGranularityMinimum = 0
  2220. hipMemAllocationGranularityRecommended = 1
  2221. hipMemAllocationGranularity_flags = ctypes.c_uint32 # enum
  2222. # values for enumeration 'hipMemHandleType'
  2223. hipMemHandleType__enumvalues = {
  2224. 0: 'hipMemHandleTypeGeneric',
  2225. }
  2226. hipMemHandleTypeGeneric = 0
  2227. hipMemHandleType = ctypes.c_uint32 # enum
  2228. # values for enumeration 'hipMemOperationType'
  2229. hipMemOperationType__enumvalues = {
  2230. 1: 'hipMemOperationTypeMap',
  2231. 2: 'hipMemOperationTypeUnmap',
  2232. }
  2233. hipMemOperationTypeMap = 1
  2234. hipMemOperationTypeUnmap = 2
  2235. hipMemOperationType = ctypes.c_uint32 # enum
  2236. # values for enumeration 'hipArraySparseSubresourceType'
  2237. hipArraySparseSubresourceType__enumvalues = {
  2238. 0: 'hipArraySparseSubresourceTypeSparseLevel',
  2239. 1: 'hipArraySparseSubresourceTypeMiptail',
  2240. }
  2241. hipArraySparseSubresourceTypeSparseLevel = 0
  2242. hipArraySparseSubresourceTypeMiptail = 1
  2243. hipArraySparseSubresourceType = ctypes.c_uint32 # enum
  2244. class struct_hipArrayMapInfo(Structure):
  2245. pass
  2246. class union_hipArrayMapInfo_resource(Union):
  2247. pass
  2248. union_hipArrayMapInfo_resource._pack_ = 1 # source:False
  2249. union_hipArrayMapInfo_resource._fields_ = [
  2250. ('mipmap', hipMipmappedArray),
  2251. ('array', ctypes.POINTER(struct_hipArray)),
  2252. ('PADDING_0', ctypes.c_ubyte * 56),
  2253. ]
  2254. class union_hipArrayMapInfo_subresource(Union):
  2255. pass
  2256. class struct_hipArrayMapInfo_1_sparseLevel(Structure):
  2257. pass
  2258. struct_hipArrayMapInfo_1_sparseLevel._pack_ = 1 # source:False
  2259. struct_hipArrayMapInfo_1_sparseLevel._fields_ = [
  2260. ('level', ctypes.c_uint32),
  2261. ('layer', ctypes.c_uint32),
  2262. ('offsetX', ctypes.c_uint32),
  2263. ('offsetY', ctypes.c_uint32),
  2264. ('offsetZ', ctypes.c_uint32),
  2265. ('extentWidth', ctypes.c_uint32),
  2266. ('extentHeight', ctypes.c_uint32),
  2267. ('extentDepth', ctypes.c_uint32),
  2268. ]
  2269. class struct_hipArrayMapInfo_1_miptail(Structure):
  2270. pass
  2271. struct_hipArrayMapInfo_1_miptail._pack_ = 1 # source:False
  2272. struct_hipArrayMapInfo_1_miptail._fields_ = [
  2273. ('layer', ctypes.c_uint32),
  2274. ('PADDING_0', ctypes.c_ubyte * 4),
  2275. ('offset', ctypes.c_uint64),
  2276. ('size', ctypes.c_uint64),
  2277. ]
  2278. union_hipArrayMapInfo_subresource._pack_ = 1 # source:False
  2279. union_hipArrayMapInfo_subresource._fields_ = [
  2280. ('sparseLevel', struct_hipArrayMapInfo_1_sparseLevel),
  2281. ('miptail', struct_hipArrayMapInfo_1_miptail),
  2282. ('PADDING_0', ctypes.c_ubyte * 8),
  2283. ]
  2284. class union_hipArrayMapInfo_memHandle(Union):
  2285. pass
  2286. union_hipArrayMapInfo_memHandle._pack_ = 1 # source:False
  2287. union_hipArrayMapInfo_memHandle._fields_ = [
  2288. ('memHandle', ctypes.POINTER(struct_ihipMemGenericAllocationHandle)),
  2289. ]
  2290. struct_hipArrayMapInfo._pack_ = 1 # source:False
  2291. struct_hipArrayMapInfo._fields_ = [
  2292. ('resourceType', hipResourceType),
  2293. ('PADDING_0', ctypes.c_ubyte * 4),
  2294. ('resource', union_hipArrayMapInfo_resource),
  2295. ('subresourceType', hipArraySparseSubresourceType),
  2296. ('PADDING_1', ctypes.c_ubyte * 4),
  2297. ('subresource', union_hipArrayMapInfo_subresource),
  2298. ('memOperationType', hipMemOperationType),
  2299. ('memHandleType', hipMemHandleType),
  2300. ('memHandle', union_hipArrayMapInfo_memHandle),
  2301. ('offset', ctypes.c_uint64),
  2302. ('deviceBitMask', ctypes.c_uint32),
  2303. ('flags', ctypes.c_uint32),
  2304. ('reserved', ctypes.c_uint32 * 2),
  2305. ]
  2306. hipArrayMapInfo = struct_hipArrayMapInfo
  2307. try:
  2308. hipInit = _libraries['libamdhip64.so'].hipInit
  2309. hipInit.restype = hipError_t
  2310. hipInit.argtypes = [ctypes.c_uint32]
  2311. except AttributeError:
  2312. pass
  2313. try:
  2314. hipDriverGetVersion = _libraries['libamdhip64.so'].hipDriverGetVersion
  2315. hipDriverGetVersion.restype = hipError_t
  2316. hipDriverGetVersion.argtypes = [ctypes.POINTER(ctypes.c_int32)]
  2317. except AttributeError:
  2318. pass
  2319. try:
  2320. hipRuntimeGetVersion = _libraries['libamdhip64.so'].hipRuntimeGetVersion
  2321. hipRuntimeGetVersion.restype = hipError_t
  2322. hipRuntimeGetVersion.argtypes = [ctypes.POINTER(ctypes.c_int32)]
  2323. except AttributeError:
  2324. pass
  2325. try:
  2326. hipDeviceGet = _libraries['libamdhip64.so'].hipDeviceGet
  2327. hipDeviceGet.restype = hipError_t
  2328. hipDeviceGet.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.c_int32]
  2329. except AttributeError:
  2330. pass
  2331. try:
  2332. hipDeviceComputeCapability = _libraries['libamdhip64.so'].hipDeviceComputeCapability
  2333. hipDeviceComputeCapability.restype = hipError_t
  2334. hipDeviceComputeCapability.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), hipDevice_t]
  2335. except AttributeError:
  2336. pass
  2337. try:
  2338. hipDeviceGetName = _libraries['libamdhip64.so'].hipDeviceGetName
  2339. hipDeviceGetName.restype = hipError_t
  2340. hipDeviceGetName.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, hipDevice_t]
  2341. except AttributeError:
  2342. pass
  2343. try:
  2344. hipDeviceGetUuid = _libraries['libamdhip64.so'].hipDeviceGetUuid
  2345. hipDeviceGetUuid.restype = hipError_t
  2346. hipDeviceGetUuid.argtypes = [ctypes.POINTER(struct_hipUUID_t), hipDevice_t]
  2347. except AttributeError:
  2348. pass
  2349. try:
  2350. hipDeviceGetP2PAttribute = _libraries['libamdhip64.so'].hipDeviceGetP2PAttribute
  2351. hipDeviceGetP2PAttribute.restype = hipError_t
  2352. hipDeviceGetP2PAttribute.argtypes = [ctypes.POINTER(ctypes.c_int32), hipDeviceP2PAttr, ctypes.c_int32, ctypes.c_int32]
  2353. except AttributeError:
  2354. pass
  2355. try:
  2356. hipDeviceGetPCIBusId = _libraries['libamdhip64.so'].hipDeviceGetPCIBusId
  2357. hipDeviceGetPCIBusId.restype = hipError_t
  2358. hipDeviceGetPCIBusId.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_int32]
  2359. except AttributeError:
  2360. pass
  2361. try:
  2362. hipDeviceGetByPCIBusId = _libraries['libamdhip64.so'].hipDeviceGetByPCIBusId
  2363. hipDeviceGetByPCIBusId.restype = hipError_t
  2364. hipDeviceGetByPCIBusId.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_char)]
  2365. except AttributeError:
  2366. pass
  2367. try:
  2368. hipDeviceTotalMem = _libraries['libamdhip64.so'].hipDeviceTotalMem
  2369. hipDeviceTotalMem.restype = hipError_t
  2370. hipDeviceTotalMem.argtypes = [ctypes.POINTER(ctypes.c_uint64), hipDevice_t]
  2371. except AttributeError:
  2372. pass
  2373. try:
  2374. hipDeviceSynchronize = _libraries['libamdhip64.so'].hipDeviceSynchronize
  2375. hipDeviceSynchronize.restype = hipError_t
  2376. hipDeviceSynchronize.argtypes = []
  2377. except AttributeError:
  2378. pass
  2379. try:
  2380. hipDeviceReset = _libraries['libamdhip64.so'].hipDeviceReset
  2381. hipDeviceReset.restype = hipError_t
  2382. hipDeviceReset.argtypes = []
  2383. except AttributeError:
  2384. pass
  2385. try:
  2386. hipSetDevice = _libraries['libamdhip64.so'].hipSetDevice
  2387. hipSetDevice.restype = hipError_t
  2388. hipSetDevice.argtypes = [ctypes.c_int32]
  2389. except AttributeError:
  2390. pass
  2391. try:
  2392. hipGetDevice = _libraries['libamdhip64.so'].hipGetDevice
  2393. hipGetDevice.restype = hipError_t
  2394. hipGetDevice.argtypes = [ctypes.POINTER(ctypes.c_int32)]
  2395. except AttributeError:
  2396. pass
  2397. try:
  2398. hipGetDeviceCount = _libraries['libamdhip64.so'].hipGetDeviceCount
  2399. hipGetDeviceCount.restype = hipError_t
  2400. hipGetDeviceCount.argtypes = [ctypes.POINTER(ctypes.c_int32)]
  2401. except AttributeError:
  2402. pass
  2403. try:
  2404. hipDeviceGetAttribute = _libraries['libamdhip64.so'].hipDeviceGetAttribute
  2405. hipDeviceGetAttribute.restype = hipError_t
  2406. hipDeviceGetAttribute.argtypes = [ctypes.POINTER(ctypes.c_int32), hipDeviceAttribute_t, ctypes.c_int32]
  2407. except AttributeError:
  2408. pass
  2409. try:
  2410. hipDeviceGetDefaultMemPool = _libraries['libamdhip64.so'].hipDeviceGetDefaultMemPool
  2411. hipDeviceGetDefaultMemPool.restype = hipError_t
  2412. hipDeviceGetDefaultMemPool.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemPoolHandle_t)), ctypes.c_int32]
  2413. except AttributeError:
  2414. pass
  2415. try:
  2416. hipDeviceSetMemPool = _libraries['libamdhip64.so'].hipDeviceSetMemPool
  2417. hipDeviceSetMemPool.restype = hipError_t
  2418. hipDeviceSetMemPool.argtypes = [ctypes.c_int32, hipMemPool_t]
  2419. except AttributeError:
  2420. pass
  2421. try:
  2422. hipDeviceGetMemPool = _libraries['libamdhip64.so'].hipDeviceGetMemPool
  2423. hipDeviceGetMemPool.restype = hipError_t
  2424. hipDeviceGetMemPool.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemPoolHandle_t)), ctypes.c_int32]
  2425. except AttributeError:
  2426. pass
  2427. try:
  2428. hipGetDevicePropertiesR0600 = _libraries['libamdhip64.so'].hipGetDevicePropertiesR0600
  2429. hipGetDevicePropertiesR0600.restype = hipError_t
  2430. hipGetDevicePropertiesR0600.argtypes = [ctypes.POINTER(struct_hipDeviceProp_tR0600), ctypes.c_int32]
  2431. except AttributeError:
  2432. pass
  2433. try:
  2434. hipDeviceSetCacheConfig = _libraries['libamdhip64.so'].hipDeviceSetCacheConfig
  2435. hipDeviceSetCacheConfig.restype = hipError_t
  2436. hipDeviceSetCacheConfig.argtypes = [hipFuncCache_t]
  2437. except AttributeError:
  2438. pass
  2439. try:
  2440. hipDeviceGetCacheConfig = _libraries['libamdhip64.so'].hipDeviceGetCacheConfig
  2441. hipDeviceGetCacheConfig.restype = hipError_t
  2442. hipDeviceGetCacheConfig.argtypes = [ctypes.POINTER(hipFuncCache_t)]
  2443. except AttributeError:
  2444. pass
  2445. try:
  2446. hipDeviceGetLimit = _libraries['libamdhip64.so'].hipDeviceGetLimit
  2447. hipDeviceGetLimit.restype = hipError_t
  2448. hipDeviceGetLimit.argtypes = [ctypes.POINTER(ctypes.c_uint64), hipLimit_t]
  2449. except AttributeError:
  2450. pass
  2451. try:
  2452. hipDeviceSetLimit = _libraries['libamdhip64.so'].hipDeviceSetLimit
  2453. hipDeviceSetLimit.restype = hipError_t
  2454. hipDeviceSetLimit.argtypes = [hipLimit_t, size_t]
  2455. except AttributeError:
  2456. pass
  2457. try:
  2458. hipDeviceGetSharedMemConfig = _libraries['libamdhip64.so'].hipDeviceGetSharedMemConfig
  2459. hipDeviceGetSharedMemConfig.restype = hipError_t
  2460. hipDeviceGetSharedMemConfig.argtypes = [ctypes.POINTER(hipSharedMemConfig)]
  2461. except AttributeError:
  2462. pass
  2463. try:
  2464. hipGetDeviceFlags = _libraries['libamdhip64.so'].hipGetDeviceFlags
  2465. hipGetDeviceFlags.restype = hipError_t
  2466. hipGetDeviceFlags.argtypes = [ctypes.POINTER(ctypes.c_uint32)]
  2467. except AttributeError:
  2468. pass
  2469. try:
  2470. hipDeviceSetSharedMemConfig = _libraries['libamdhip64.so'].hipDeviceSetSharedMemConfig
  2471. hipDeviceSetSharedMemConfig.restype = hipError_t
  2472. hipDeviceSetSharedMemConfig.argtypes = [hipSharedMemConfig]
  2473. except AttributeError:
  2474. pass
  2475. try:
  2476. hipSetDeviceFlags = _libraries['libamdhip64.so'].hipSetDeviceFlags
  2477. hipSetDeviceFlags.restype = hipError_t
  2478. hipSetDeviceFlags.argtypes = [ctypes.c_uint32]
  2479. except AttributeError:
  2480. pass
  2481. try:
  2482. hipChooseDeviceR0600 = _libraries['libamdhip64.so'].hipChooseDeviceR0600
  2483. hipChooseDeviceR0600.restype = hipError_t
  2484. hipChooseDeviceR0600.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(struct_hipDeviceProp_tR0600)]
  2485. except AttributeError:
  2486. pass
  2487. try:
  2488. hipExtGetLinkTypeAndHopCount = _libraries['libamdhip64.so'].hipExtGetLinkTypeAndHopCount
  2489. hipExtGetLinkTypeAndHopCount.restype = hipError_t
  2490. hipExtGetLinkTypeAndHopCount.argtypes = [ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_uint32)]
  2491. except AttributeError:
  2492. pass
  2493. try:
  2494. hipIpcGetMemHandle = _libraries['libamdhip64.so'].hipIpcGetMemHandle
  2495. hipIpcGetMemHandle.restype = hipError_t
  2496. hipIpcGetMemHandle.argtypes = [ctypes.POINTER(struct_hipIpcMemHandle_st), ctypes.POINTER(None)]
  2497. except AttributeError:
  2498. pass
  2499. try:
  2500. hipIpcOpenMemHandle = _libraries['libamdhip64.so'].hipIpcOpenMemHandle
  2501. hipIpcOpenMemHandle.restype = hipError_t
  2502. hipIpcOpenMemHandle.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), hipIpcMemHandle_t, ctypes.c_uint32]
  2503. except AttributeError:
  2504. pass
  2505. try:
  2506. hipIpcCloseMemHandle = _libraries['libamdhip64.so'].hipIpcCloseMemHandle
  2507. hipIpcCloseMemHandle.restype = hipError_t
  2508. hipIpcCloseMemHandle.argtypes = [ctypes.POINTER(None)]
  2509. except AttributeError:
  2510. pass
  2511. try:
  2512. hipIpcGetEventHandle = _libraries['libamdhip64.so'].hipIpcGetEventHandle
  2513. hipIpcGetEventHandle.restype = hipError_t
  2514. hipIpcGetEventHandle.argtypes = [ctypes.POINTER(struct_hipIpcEventHandle_st), hipEvent_t]
  2515. except AttributeError:
  2516. pass
  2517. try:
  2518. hipIpcOpenEventHandle = _libraries['libamdhip64.so'].hipIpcOpenEventHandle
  2519. hipIpcOpenEventHandle.restype = hipError_t
  2520. hipIpcOpenEventHandle.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipEvent_t)), hipIpcEventHandle_t]
  2521. except AttributeError:
  2522. pass
  2523. try:
  2524. hipFuncSetAttribute = _libraries['libamdhip64.so'].hipFuncSetAttribute
  2525. hipFuncSetAttribute.restype = hipError_t
  2526. hipFuncSetAttribute.argtypes = [ctypes.POINTER(None), hipFuncAttribute, ctypes.c_int32]
  2527. except AttributeError:
  2528. pass
  2529. try:
  2530. hipFuncSetCacheConfig = _libraries['libamdhip64.so'].hipFuncSetCacheConfig
  2531. hipFuncSetCacheConfig.restype = hipError_t
  2532. hipFuncSetCacheConfig.argtypes = [ctypes.POINTER(None), hipFuncCache_t]
  2533. except AttributeError:
  2534. pass
  2535. try:
  2536. hipFuncSetSharedMemConfig = _libraries['libamdhip64.so'].hipFuncSetSharedMemConfig
  2537. hipFuncSetSharedMemConfig.restype = hipError_t
  2538. hipFuncSetSharedMemConfig.argtypes = [ctypes.POINTER(None), hipSharedMemConfig]
  2539. except AttributeError:
  2540. pass
  2541. try:
  2542. hipGetLastError = _libraries['libamdhip64.so'].hipGetLastError
  2543. hipGetLastError.restype = hipError_t
  2544. hipGetLastError.argtypes = []
  2545. except AttributeError:
  2546. pass
  2547. try:
  2548. hipExtGetLastError = _libraries['libamdhip64.so'].hipExtGetLastError
  2549. hipExtGetLastError.restype = hipError_t
  2550. hipExtGetLastError.argtypes = []
  2551. except AttributeError:
  2552. pass
  2553. try:
  2554. hipPeekAtLastError = _libraries['libamdhip64.so'].hipPeekAtLastError
  2555. hipPeekAtLastError.restype = hipError_t
  2556. hipPeekAtLastError.argtypes = []
  2557. except AttributeError:
  2558. pass
  2559. try:
  2560. hipGetErrorName = _libraries['libamdhip64.so'].hipGetErrorName
  2561. hipGetErrorName.restype = ctypes.POINTER(ctypes.c_char)
  2562. hipGetErrorName.argtypes = [hipError_t]
  2563. except AttributeError:
  2564. pass
  2565. try:
  2566. hipGetErrorString = _libraries['libamdhip64.so'].hipGetErrorString
  2567. hipGetErrorString.restype = ctypes.POINTER(ctypes.c_char)
  2568. hipGetErrorString.argtypes = [hipError_t]
  2569. except AttributeError:
  2570. pass
  2571. try:
  2572. hipDrvGetErrorName = _libraries['libamdhip64.so'].hipDrvGetErrorName
  2573. hipDrvGetErrorName.restype = hipError_t
  2574. hipDrvGetErrorName.argtypes = [hipError_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
  2575. except AttributeError:
  2576. pass
  2577. try:
  2578. hipDrvGetErrorString = _libraries['libamdhip64.so'].hipDrvGetErrorString
  2579. hipDrvGetErrorString.restype = hipError_t
  2580. hipDrvGetErrorString.argtypes = [hipError_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
  2581. except AttributeError:
  2582. pass
  2583. try:
  2584. hipStreamCreate = _libraries['libamdhip64.so'].hipStreamCreate
  2585. hipStreamCreate.restype = hipError_t
  2586. hipStreamCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipStream_t))]
  2587. except AttributeError:
  2588. pass
  2589. try:
  2590. hipStreamCreateWithFlags = _libraries['libamdhip64.so'].hipStreamCreateWithFlags
  2591. hipStreamCreateWithFlags.restype = hipError_t
  2592. hipStreamCreateWithFlags.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipStream_t)), ctypes.c_uint32]
  2593. except AttributeError:
  2594. pass
  2595. try:
  2596. hipStreamCreateWithPriority = _libraries['libamdhip64.so'].hipStreamCreateWithPriority
  2597. hipStreamCreateWithPriority.restype = hipError_t
  2598. hipStreamCreateWithPriority.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipStream_t)), ctypes.c_uint32, ctypes.c_int32]
  2599. except AttributeError:
  2600. pass
  2601. try:
  2602. hipDeviceGetStreamPriorityRange = _libraries['libamdhip64.so'].hipDeviceGetStreamPriorityRange
  2603. hipDeviceGetStreamPriorityRange.restype = hipError_t
  2604. hipDeviceGetStreamPriorityRange.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32)]
  2605. except AttributeError:
  2606. pass
  2607. try:
  2608. hipStreamDestroy = _libraries['libamdhip64.so'].hipStreamDestroy
  2609. hipStreamDestroy.restype = hipError_t
  2610. hipStreamDestroy.argtypes = [hipStream_t]
  2611. except AttributeError:
  2612. pass
  2613. try:
  2614. hipStreamQuery = _libraries['libamdhip64.so'].hipStreamQuery
  2615. hipStreamQuery.restype = hipError_t
  2616. hipStreamQuery.argtypes = [hipStream_t]
  2617. except AttributeError:
  2618. pass
  2619. try:
  2620. hipStreamSynchronize = _libraries['libamdhip64.so'].hipStreamSynchronize
  2621. hipStreamSynchronize.restype = hipError_t
  2622. hipStreamSynchronize.argtypes = [hipStream_t]
  2623. except AttributeError:
  2624. pass
  2625. try:
  2626. hipStreamWaitEvent = _libraries['libamdhip64.so'].hipStreamWaitEvent
  2627. hipStreamWaitEvent.restype = hipError_t
  2628. hipStreamWaitEvent.argtypes = [hipStream_t, hipEvent_t, ctypes.c_uint32]
  2629. except AttributeError:
  2630. pass
  2631. try:
  2632. hipStreamGetFlags = _libraries['libamdhip64.so'].hipStreamGetFlags
  2633. hipStreamGetFlags.restype = hipError_t
  2634. hipStreamGetFlags.argtypes = [hipStream_t, ctypes.POINTER(ctypes.c_uint32)]
  2635. except AttributeError:
  2636. pass
  2637. try:
  2638. hipStreamGetPriority = _libraries['libamdhip64.so'].hipStreamGetPriority
  2639. hipStreamGetPriority.restype = hipError_t
  2640. hipStreamGetPriority.argtypes = [hipStream_t, ctypes.POINTER(ctypes.c_int32)]
  2641. except AttributeError:
  2642. pass
  2643. try:
  2644. hipStreamGetDevice = _libraries['libamdhip64.so'].hipStreamGetDevice
  2645. hipStreamGetDevice.restype = hipError_t
  2646. hipStreamGetDevice.argtypes = [hipStream_t, ctypes.POINTER(ctypes.c_int32)]
  2647. except AttributeError:
  2648. pass
  2649. uint32_t = ctypes.c_uint32
  2650. try:
  2651. hipExtStreamCreateWithCUMask = _libraries['libamdhip64.so'].hipExtStreamCreateWithCUMask
  2652. hipExtStreamCreateWithCUMask.restype = hipError_t
  2653. hipExtStreamCreateWithCUMask.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipStream_t)), uint32_t, ctypes.POINTER(ctypes.c_uint32)]
  2654. except AttributeError:
  2655. pass
  2656. try:
  2657. hipExtStreamGetCUMask = _libraries['libamdhip64.so'].hipExtStreamGetCUMask
  2658. hipExtStreamGetCUMask.restype = hipError_t
  2659. hipExtStreamGetCUMask.argtypes = [hipStream_t, uint32_t, ctypes.POINTER(ctypes.c_uint32)]
  2660. except AttributeError:
  2661. pass
  2662. hipStreamCallback_t = ctypes.CFUNCTYPE(None, ctypes.POINTER(struct_ihipStream_t), hipError_t, ctypes.POINTER(None))
  2663. try:
  2664. hipStreamAddCallback = _libraries['libamdhip64.so'].hipStreamAddCallback
  2665. hipStreamAddCallback.restype = hipError_t
  2666. hipStreamAddCallback.argtypes = [hipStream_t, hipStreamCallback_t, ctypes.POINTER(None), ctypes.c_uint32]
  2667. except AttributeError:
  2668. pass
  2669. try:
  2670. hipStreamWaitValue32 = _libraries['libamdhip64.so'].hipStreamWaitValue32
  2671. hipStreamWaitValue32.restype = hipError_t
  2672. hipStreamWaitValue32.argtypes = [hipStream_t, ctypes.POINTER(None), uint32_t, ctypes.c_uint32, uint32_t]
  2673. except AttributeError:
  2674. pass
  2675. uint64_t = ctypes.c_uint64
  2676. try:
  2677. hipStreamWaitValue64 = _libraries['libamdhip64.so'].hipStreamWaitValue64
  2678. hipStreamWaitValue64.restype = hipError_t
  2679. hipStreamWaitValue64.argtypes = [hipStream_t, ctypes.POINTER(None), uint64_t, ctypes.c_uint32, uint64_t]
  2680. except AttributeError:
  2681. pass
  2682. try:
  2683. hipStreamWriteValue32 = _libraries['libamdhip64.so'].hipStreamWriteValue32
  2684. hipStreamWriteValue32.restype = hipError_t
  2685. hipStreamWriteValue32.argtypes = [hipStream_t, ctypes.POINTER(None), uint32_t, ctypes.c_uint32]
  2686. except AttributeError:
  2687. pass
  2688. try:
  2689. hipStreamWriteValue64 = _libraries['libamdhip64.so'].hipStreamWriteValue64
  2690. hipStreamWriteValue64.restype = hipError_t
  2691. hipStreamWriteValue64.argtypes = [hipStream_t, ctypes.POINTER(None), uint64_t, ctypes.c_uint32]
  2692. except AttributeError:
  2693. pass
  2694. try:
  2695. hipEventCreateWithFlags = _libraries['libamdhip64.so'].hipEventCreateWithFlags
  2696. hipEventCreateWithFlags.restype = hipError_t
  2697. hipEventCreateWithFlags.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipEvent_t)), ctypes.c_uint32]
  2698. except AttributeError:
  2699. pass
  2700. try:
  2701. hipEventCreate = _libraries['libamdhip64.so'].hipEventCreate
  2702. hipEventCreate.restype = hipError_t
  2703. hipEventCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipEvent_t))]
  2704. except AttributeError:
  2705. pass
  2706. try:
  2707. hipEventRecord = _libraries['libamdhip64.so'].hipEventRecord
  2708. hipEventRecord.restype = hipError_t
  2709. hipEventRecord.argtypes = [hipEvent_t, hipStream_t]
  2710. except AttributeError:
  2711. pass
  2712. try:
  2713. hipEventDestroy = _libraries['libamdhip64.so'].hipEventDestroy
  2714. hipEventDestroy.restype = hipError_t
  2715. hipEventDestroy.argtypes = [hipEvent_t]
  2716. except AttributeError:
  2717. pass
  2718. try:
  2719. hipEventSynchronize = _libraries['libamdhip64.so'].hipEventSynchronize
  2720. hipEventSynchronize.restype = hipError_t
  2721. hipEventSynchronize.argtypes = [hipEvent_t]
  2722. except AttributeError:
  2723. pass
  2724. try:
  2725. hipEventElapsedTime = _libraries['libamdhip64.so'].hipEventElapsedTime
  2726. hipEventElapsedTime.restype = hipError_t
  2727. hipEventElapsedTime.argtypes = [ctypes.POINTER(ctypes.c_float), hipEvent_t, hipEvent_t]
  2728. except AttributeError:
  2729. pass
  2730. try:
  2731. hipEventQuery = _libraries['libamdhip64.so'].hipEventQuery
  2732. hipEventQuery.restype = hipError_t
  2733. hipEventQuery.argtypes = [hipEvent_t]
  2734. except AttributeError:
  2735. pass
  2736. try:
  2737. hipPointerSetAttribute = _libraries['libamdhip64.so'].hipPointerSetAttribute
  2738. hipPointerSetAttribute.restype = hipError_t
  2739. hipPointerSetAttribute.argtypes = [ctypes.POINTER(None), hipPointer_attribute, hipDeviceptr_t]
  2740. except AttributeError:
  2741. pass
  2742. try:
  2743. hipPointerGetAttributes = _libraries['libamdhip64.so'].hipPointerGetAttributes
  2744. hipPointerGetAttributes.restype = hipError_t
  2745. hipPointerGetAttributes.argtypes = [ctypes.POINTER(struct_hipPointerAttribute_t), ctypes.POINTER(None)]
  2746. except AttributeError:
  2747. pass
  2748. try:
  2749. hipPointerGetAttribute = _libraries['libamdhip64.so'].hipPointerGetAttribute
  2750. hipPointerGetAttribute.restype = hipError_t
  2751. hipPointerGetAttribute.argtypes = [ctypes.POINTER(None), hipPointer_attribute, hipDeviceptr_t]
  2752. except AttributeError:
  2753. pass
  2754. try:
  2755. hipDrvPointerGetAttributes = _libraries['libamdhip64.so'].hipDrvPointerGetAttributes
  2756. hipDrvPointerGetAttributes.restype = hipError_t
  2757. hipDrvPointerGetAttributes.argtypes = [ctypes.c_uint32, ctypes.POINTER(hipPointer_attribute), ctypes.POINTER(ctypes.POINTER(None)), hipDeviceptr_t]
  2758. except AttributeError:
  2759. pass
  2760. try:
  2761. hipImportExternalSemaphore = _libraries['libamdhip64.so'].hipImportExternalSemaphore
  2762. hipImportExternalSemaphore.restype = hipError_t
  2763. hipImportExternalSemaphore.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(struct_hipExternalSemaphoreHandleDesc_st)]
  2764. except AttributeError:
  2765. pass
  2766. try:
  2767. hipSignalExternalSemaphoresAsync = _libraries['libamdhip64.so'].hipSignalExternalSemaphoresAsync
  2768. hipSignalExternalSemaphoresAsync.restype = hipError_t
  2769. hipSignalExternalSemaphoresAsync.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(struct_hipExternalSemaphoreSignalParams_st), ctypes.c_uint32, hipStream_t]
  2770. except AttributeError:
  2771. pass
  2772. try:
  2773. hipWaitExternalSemaphoresAsync = _libraries['libamdhip64.so'].hipWaitExternalSemaphoresAsync
  2774. hipWaitExternalSemaphoresAsync.restype = hipError_t
  2775. hipWaitExternalSemaphoresAsync.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(struct_hipExternalSemaphoreWaitParams_st), ctypes.c_uint32, hipStream_t]
  2776. except AttributeError:
  2777. pass
  2778. try:
  2779. hipDestroyExternalSemaphore = _libraries['libamdhip64.so'].hipDestroyExternalSemaphore
  2780. hipDestroyExternalSemaphore.restype = hipError_t
  2781. hipDestroyExternalSemaphore.argtypes = [hipExternalSemaphore_t]
  2782. except AttributeError:
  2783. pass
  2784. try:
  2785. hipImportExternalMemory = _libraries['libamdhip64.so'].hipImportExternalMemory
  2786. hipImportExternalMemory.restype = hipError_t
  2787. hipImportExternalMemory.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(struct_hipExternalMemoryHandleDesc_st)]
  2788. except AttributeError:
  2789. pass
  2790. try:
  2791. hipExternalMemoryGetMappedBuffer = _libraries['libamdhip64.so'].hipExternalMemoryGetMappedBuffer
  2792. hipExternalMemoryGetMappedBuffer.restype = hipError_t
  2793. hipExternalMemoryGetMappedBuffer.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), hipExternalMemory_t, ctypes.POINTER(struct_hipExternalMemoryBufferDesc_st)]
  2794. except AttributeError:
  2795. pass
  2796. try:
  2797. hipDestroyExternalMemory = _libraries['libamdhip64.so'].hipDestroyExternalMemory
  2798. hipDestroyExternalMemory.restype = hipError_t
  2799. hipDestroyExternalMemory.argtypes = [hipExternalMemory_t]
  2800. except AttributeError:
  2801. pass
  2802. try:
  2803. hipExternalMemoryGetMappedMipmappedArray = _libraries['FIXME_STUB'].hipExternalMemoryGetMappedMipmappedArray
  2804. hipExternalMemoryGetMappedMipmappedArray.restype = hipError_t
  2805. hipExternalMemoryGetMappedMipmappedArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipMipmappedArray)), hipExternalMemory_t, ctypes.POINTER(struct_hipExternalMemoryMipmappedArrayDesc_st)]
  2806. except AttributeError:
  2807. pass
  2808. try:
  2809. hipMalloc = _libraries['libamdhip64.so'].hipMalloc
  2810. hipMalloc.restype = hipError_t
  2811. hipMalloc.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t]
  2812. except AttributeError:
  2813. pass
  2814. try:
  2815. hipExtMallocWithFlags = _libraries['libamdhip64.so'].hipExtMallocWithFlags
  2816. hipExtMallocWithFlags.restype = hipError_t
  2817. hipExtMallocWithFlags.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, ctypes.c_uint32]
  2818. except AttributeError:
  2819. pass
  2820. try:
  2821. hipMallocHost = _libraries['libamdhip64.so'].hipMallocHost
  2822. hipMallocHost.restype = hipError_t
  2823. hipMallocHost.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t]
  2824. except AttributeError:
  2825. pass
  2826. try:
  2827. hipMemAllocHost = _libraries['libamdhip64.so'].hipMemAllocHost
  2828. hipMemAllocHost.restype = hipError_t
  2829. hipMemAllocHost.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t]
  2830. except AttributeError:
  2831. pass
  2832. try:
  2833. hipHostMalloc = _libraries['libamdhip64.so'].hipHostMalloc
  2834. hipHostMalloc.restype = hipError_t
  2835. hipHostMalloc.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, ctypes.c_uint32]
  2836. except AttributeError:
  2837. pass
  2838. try:
  2839. hipMallocManaged = _libraries['libamdhip64.so'].hipMallocManaged
  2840. hipMallocManaged.restype = hipError_t
  2841. hipMallocManaged.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, ctypes.c_uint32]
  2842. except AttributeError:
  2843. pass
  2844. try:
  2845. hipMemPrefetchAsync = _libraries['libamdhip64.so'].hipMemPrefetchAsync
  2846. hipMemPrefetchAsync.restype = hipError_t
  2847. hipMemPrefetchAsync.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32, hipStream_t]
  2848. except AttributeError:
  2849. pass
  2850. try:
  2851. hipMemAdvise = _libraries['libamdhip64.so'].hipMemAdvise
  2852. hipMemAdvise.restype = hipError_t
  2853. hipMemAdvise.argtypes = [ctypes.POINTER(None), size_t, hipMemoryAdvise, ctypes.c_int32]
  2854. except AttributeError:
  2855. pass
  2856. try:
  2857. hipMemRangeGetAttribute = _libraries['libamdhip64.so'].hipMemRangeGetAttribute
  2858. hipMemRangeGetAttribute.restype = hipError_t
  2859. hipMemRangeGetAttribute.argtypes = [ctypes.POINTER(None), size_t, hipMemRangeAttribute, ctypes.POINTER(None), size_t]
  2860. except AttributeError:
  2861. pass
  2862. try:
  2863. hipMemRangeGetAttributes = _libraries['libamdhip64.so'].hipMemRangeGetAttributes
  2864. hipMemRangeGetAttributes.restype = hipError_t
  2865. hipMemRangeGetAttributes.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(hipMemRangeAttribute), size_t, ctypes.POINTER(None), size_t]
  2866. except AttributeError:
  2867. pass
  2868. try:
  2869. hipStreamAttachMemAsync = _libraries['libamdhip64.so'].hipStreamAttachMemAsync
  2870. hipStreamAttachMemAsync.restype = hipError_t
  2871. hipStreamAttachMemAsync.argtypes = [hipStream_t, ctypes.POINTER(None), size_t, ctypes.c_uint32]
  2872. except AttributeError:
  2873. pass
  2874. try:
  2875. hipMallocAsync = _libraries['libamdhip64.so'].hipMallocAsync
  2876. hipMallocAsync.restype = hipError_t
  2877. hipMallocAsync.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, hipStream_t]
  2878. except AttributeError:
  2879. pass
  2880. try:
  2881. hipFreeAsync = _libraries['libamdhip64.so'].hipFreeAsync
  2882. hipFreeAsync.restype = hipError_t
  2883. hipFreeAsync.argtypes = [ctypes.POINTER(None), hipStream_t]
  2884. except AttributeError:
  2885. pass
  2886. try:
  2887. hipMemPoolTrimTo = _libraries['libamdhip64.so'].hipMemPoolTrimTo
  2888. hipMemPoolTrimTo.restype = hipError_t
  2889. hipMemPoolTrimTo.argtypes = [hipMemPool_t, size_t]
  2890. except AttributeError:
  2891. pass
  2892. try:
  2893. hipMemPoolSetAttribute = _libraries['libamdhip64.so'].hipMemPoolSetAttribute
  2894. hipMemPoolSetAttribute.restype = hipError_t
  2895. hipMemPoolSetAttribute.argtypes = [hipMemPool_t, hipMemPoolAttr, ctypes.POINTER(None)]
  2896. except AttributeError:
  2897. pass
  2898. try:
  2899. hipMemPoolGetAttribute = _libraries['libamdhip64.so'].hipMemPoolGetAttribute
  2900. hipMemPoolGetAttribute.restype = hipError_t
  2901. hipMemPoolGetAttribute.argtypes = [hipMemPool_t, hipMemPoolAttr, ctypes.POINTER(None)]
  2902. except AttributeError:
  2903. pass
  2904. try:
  2905. hipMemPoolSetAccess = _libraries['libamdhip64.so'].hipMemPoolSetAccess
  2906. hipMemPoolSetAccess.restype = hipError_t
  2907. hipMemPoolSetAccess.argtypes = [hipMemPool_t, ctypes.POINTER(struct_hipMemAccessDesc), size_t]
  2908. except AttributeError:
  2909. pass
  2910. try:
  2911. hipMemPoolGetAccess = _libraries['libamdhip64.so'].hipMemPoolGetAccess
  2912. hipMemPoolGetAccess.restype = hipError_t
  2913. hipMemPoolGetAccess.argtypes = [ctypes.POINTER(hipMemAccessFlags), hipMemPool_t, ctypes.POINTER(struct_hipMemLocation)]
  2914. except AttributeError:
  2915. pass
  2916. try:
  2917. hipMemPoolCreate = _libraries['libamdhip64.so'].hipMemPoolCreate
  2918. hipMemPoolCreate.restype = hipError_t
  2919. hipMemPoolCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemPoolHandle_t)), ctypes.POINTER(struct_hipMemPoolProps)]
  2920. except AttributeError:
  2921. pass
  2922. try:
  2923. hipMemPoolDestroy = _libraries['libamdhip64.so'].hipMemPoolDestroy
  2924. hipMemPoolDestroy.restype = hipError_t
  2925. hipMemPoolDestroy.argtypes = [hipMemPool_t]
  2926. except AttributeError:
  2927. pass
  2928. try:
  2929. hipMallocFromPoolAsync = _libraries['libamdhip64.so'].hipMallocFromPoolAsync
  2930. hipMallocFromPoolAsync.restype = hipError_t
  2931. hipMallocFromPoolAsync.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, hipMemPool_t, hipStream_t]
  2932. except AttributeError:
  2933. pass
  2934. try:
  2935. hipMemPoolExportToShareableHandle = _libraries['libamdhip64.so'].hipMemPoolExportToShareableHandle
  2936. hipMemPoolExportToShareableHandle.restype = hipError_t
  2937. hipMemPoolExportToShareableHandle.argtypes = [ctypes.POINTER(None), hipMemPool_t, hipMemAllocationHandleType, ctypes.c_uint32]
  2938. except AttributeError:
  2939. pass
  2940. try:
  2941. hipMemPoolImportFromShareableHandle = _libraries['libamdhip64.so'].hipMemPoolImportFromShareableHandle
  2942. hipMemPoolImportFromShareableHandle.restype = hipError_t
  2943. hipMemPoolImportFromShareableHandle.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemPoolHandle_t)), ctypes.POINTER(None), hipMemAllocationHandleType, ctypes.c_uint32]
  2944. except AttributeError:
  2945. pass
  2946. try:
  2947. hipMemPoolExportPointer = _libraries['libamdhip64.so'].hipMemPoolExportPointer
  2948. hipMemPoolExportPointer.restype = hipError_t
  2949. hipMemPoolExportPointer.argtypes = [ctypes.POINTER(struct_hipMemPoolPtrExportData), ctypes.POINTER(None)]
  2950. except AttributeError:
  2951. pass
  2952. try:
  2953. hipMemPoolImportPointer = _libraries['libamdhip64.so'].hipMemPoolImportPointer
  2954. hipMemPoolImportPointer.restype = hipError_t
  2955. hipMemPoolImportPointer.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), hipMemPool_t, ctypes.POINTER(struct_hipMemPoolPtrExportData)]
  2956. except AttributeError:
  2957. pass
  2958. try:
  2959. hipHostAlloc = _libraries['libamdhip64.so'].hipHostAlloc
  2960. hipHostAlloc.restype = hipError_t
  2961. hipHostAlloc.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, ctypes.c_uint32]
  2962. except AttributeError:
  2963. pass
  2964. try:
  2965. hipHostGetDevicePointer = _libraries['libamdhip64.so'].hipHostGetDevicePointer
  2966. hipHostGetDevicePointer.restype = hipError_t
  2967. hipHostGetDevicePointer.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(None), ctypes.c_uint32]
  2968. except AttributeError:
  2969. pass
  2970. try:
  2971. hipHostGetFlags = _libraries['libamdhip64.so'].hipHostGetFlags
  2972. hipHostGetFlags.restype = hipError_t
  2973. hipHostGetFlags.argtypes = [ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(None)]
  2974. except AttributeError:
  2975. pass
  2976. try:
  2977. hipHostRegister = _libraries['libamdhip64.so'].hipHostRegister
  2978. hipHostRegister.restype = hipError_t
  2979. hipHostRegister.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_uint32]
  2980. except AttributeError:
  2981. pass
  2982. try:
  2983. hipHostUnregister = _libraries['libamdhip64.so'].hipHostUnregister
  2984. hipHostUnregister.restype = hipError_t
  2985. hipHostUnregister.argtypes = [ctypes.POINTER(None)]
  2986. except AttributeError:
  2987. pass
  2988. try:
  2989. hipMallocPitch = _libraries['libamdhip64.so'].hipMallocPitch
  2990. hipMallocPitch.restype = hipError_t
  2991. hipMallocPitch.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), size_t, size_t]
  2992. except AttributeError:
  2993. pass
  2994. try:
  2995. hipMemAllocPitch = _libraries['libamdhip64.so'].hipMemAllocPitch
  2996. hipMemAllocPitch.restype = hipError_t
  2997. hipMemAllocPitch.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), size_t, size_t, ctypes.c_uint32]
  2998. except AttributeError:
  2999. pass
  3000. try:
  3001. hipFree = _libraries['libamdhip64.so'].hipFree
  3002. hipFree.restype = hipError_t
  3003. hipFree.argtypes = [ctypes.POINTER(None)]
  3004. except AttributeError:
  3005. pass
  3006. try:
  3007. hipFreeHost = _libraries['libamdhip64.so'].hipFreeHost
  3008. hipFreeHost.restype = hipError_t
  3009. hipFreeHost.argtypes = [ctypes.POINTER(None)]
  3010. except AttributeError:
  3011. pass
  3012. try:
  3013. hipHostFree = _libraries['libamdhip64.so'].hipHostFree
  3014. hipHostFree.restype = hipError_t
  3015. hipHostFree.argtypes = [ctypes.POINTER(None)]
  3016. except AttributeError:
  3017. pass
  3018. try:
  3019. hipMemcpy = _libraries['libamdhip64.so'].hipMemcpy
  3020. hipMemcpy.restype = hipError_t
  3021. hipMemcpy.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind]
  3022. except AttributeError:
  3023. pass
  3024. try:
  3025. hipMemcpyWithStream = _libraries['libamdhip64.so'].hipMemcpyWithStream
  3026. hipMemcpyWithStream.restype = hipError_t
  3027. hipMemcpyWithStream.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind, hipStream_t]
  3028. except AttributeError:
  3029. pass
  3030. try:
  3031. hipMemcpyHtoD = _libraries['libamdhip64.so'].hipMemcpyHtoD
  3032. hipMemcpyHtoD.restype = hipError_t
  3033. hipMemcpyHtoD.argtypes = [hipDeviceptr_t, ctypes.POINTER(None), size_t]
  3034. except AttributeError:
  3035. pass
  3036. try:
  3037. hipMemcpyDtoH = _libraries['libamdhip64.so'].hipMemcpyDtoH
  3038. hipMemcpyDtoH.restype = hipError_t
  3039. hipMemcpyDtoH.argtypes = [ctypes.POINTER(None), hipDeviceptr_t, size_t]
  3040. except AttributeError:
  3041. pass
  3042. try:
  3043. hipMemcpyDtoD = _libraries['libamdhip64.so'].hipMemcpyDtoD
  3044. hipMemcpyDtoD.restype = hipError_t
  3045. hipMemcpyDtoD.argtypes = [hipDeviceptr_t, hipDeviceptr_t, size_t]
  3046. except AttributeError:
  3047. pass
  3048. try:
  3049. hipMemcpyHtoDAsync = _libraries['libamdhip64.so'].hipMemcpyHtoDAsync
  3050. hipMemcpyHtoDAsync.restype = hipError_t
  3051. hipMemcpyHtoDAsync.argtypes = [hipDeviceptr_t, ctypes.POINTER(None), size_t, hipStream_t]
  3052. except AttributeError:
  3053. pass
  3054. try:
  3055. hipMemcpyDtoHAsync = _libraries['libamdhip64.so'].hipMemcpyDtoHAsync
  3056. hipMemcpyDtoHAsync.restype = hipError_t
  3057. hipMemcpyDtoHAsync.argtypes = [ctypes.POINTER(None), hipDeviceptr_t, size_t, hipStream_t]
  3058. except AttributeError:
  3059. pass
  3060. try:
  3061. hipMemcpyDtoDAsync = _libraries['libamdhip64.so'].hipMemcpyDtoDAsync
  3062. hipMemcpyDtoDAsync.restype = hipError_t
  3063. hipMemcpyDtoDAsync.argtypes = [hipDeviceptr_t, hipDeviceptr_t, size_t, hipStream_t]
  3064. except AttributeError:
  3065. pass
  3066. try:
  3067. hipModuleGetGlobal = _libraries['libamdhip64.so'].hipModuleGetGlobal
  3068. hipModuleGetGlobal.restype = hipError_t
  3069. hipModuleGetGlobal.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), hipModule_t, ctypes.POINTER(ctypes.c_char)]
  3070. except AttributeError:
  3071. pass
  3072. try:
  3073. hipGetSymbolAddress = _libraries['libamdhip64.so'].hipGetSymbolAddress
  3074. hipGetSymbolAddress.restype = hipError_t
  3075. hipGetSymbolAddress.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(None)]
  3076. except AttributeError:
  3077. pass
  3078. try:
  3079. hipGetSymbolSize = _libraries['libamdhip64.so'].hipGetSymbolSize
  3080. hipGetSymbolSize.restype = hipError_t
  3081. hipGetSymbolSize.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(None)]
  3082. except AttributeError:
  3083. pass
  3084. try:
  3085. hipMemcpyToSymbol = _libraries['libamdhip64.so'].hipMemcpyToSymbol
  3086. hipMemcpyToSymbol.restype = hipError_t
  3087. hipMemcpyToSymbol.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  3088. except AttributeError:
  3089. pass
  3090. try:
  3091. hipMemcpyToSymbolAsync = _libraries['libamdhip64.so'].hipMemcpyToSymbolAsync
  3092. hipMemcpyToSymbolAsync.restype = hipError_t
  3093. hipMemcpyToSymbolAsync.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind, hipStream_t]
  3094. except AttributeError:
  3095. pass
  3096. try:
  3097. hipMemcpyFromSymbol = _libraries['libamdhip64.so'].hipMemcpyFromSymbol
  3098. hipMemcpyFromSymbol.restype = hipError_t
  3099. hipMemcpyFromSymbol.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  3100. except AttributeError:
  3101. pass
  3102. try:
  3103. hipMemcpyFromSymbolAsync = _libraries['libamdhip64.so'].hipMemcpyFromSymbolAsync
  3104. hipMemcpyFromSymbolAsync.restype = hipError_t
  3105. hipMemcpyFromSymbolAsync.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind, hipStream_t]
  3106. except AttributeError:
  3107. pass
  3108. try:
  3109. hipMemcpyAsync = _libraries['libamdhip64.so'].hipMemcpyAsync
  3110. hipMemcpyAsync.restype = hipError_t
  3111. hipMemcpyAsync.argtypes = [ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind, hipStream_t]
  3112. except AttributeError:
  3113. pass
  3114. try:
  3115. hipMemset = _libraries['libamdhip64.so'].hipMemset
  3116. hipMemset.restype = hipError_t
  3117. hipMemset.argtypes = [ctypes.POINTER(None), ctypes.c_int32, size_t]
  3118. except AttributeError:
  3119. pass
  3120. try:
  3121. hipMemsetD8 = _libraries['libamdhip64.so'].hipMemsetD8
  3122. hipMemsetD8.restype = hipError_t
  3123. hipMemsetD8.argtypes = [hipDeviceptr_t, ctypes.c_ubyte, size_t]
  3124. except AttributeError:
  3125. pass
  3126. try:
  3127. hipMemsetD8Async = _libraries['libamdhip64.so'].hipMemsetD8Async
  3128. hipMemsetD8Async.restype = hipError_t
  3129. hipMemsetD8Async.argtypes = [hipDeviceptr_t, ctypes.c_ubyte, size_t, hipStream_t]
  3130. except AttributeError:
  3131. pass
  3132. try:
  3133. hipMemsetD16 = _libraries['libamdhip64.so'].hipMemsetD16
  3134. hipMemsetD16.restype = hipError_t
  3135. hipMemsetD16.argtypes = [hipDeviceptr_t, ctypes.c_uint16, size_t]
  3136. except AttributeError:
  3137. pass
  3138. try:
  3139. hipMemsetD16Async = _libraries['libamdhip64.so'].hipMemsetD16Async
  3140. hipMemsetD16Async.restype = hipError_t
  3141. hipMemsetD16Async.argtypes = [hipDeviceptr_t, ctypes.c_uint16, size_t, hipStream_t]
  3142. except AttributeError:
  3143. pass
  3144. try:
  3145. hipMemsetD32 = _libraries['libamdhip64.so'].hipMemsetD32
  3146. hipMemsetD32.restype = hipError_t
  3147. hipMemsetD32.argtypes = [hipDeviceptr_t, ctypes.c_int32, size_t]
  3148. except AttributeError:
  3149. pass
  3150. try:
  3151. hipMemsetAsync = _libraries['libamdhip64.so'].hipMemsetAsync
  3152. hipMemsetAsync.restype = hipError_t
  3153. hipMemsetAsync.argtypes = [ctypes.POINTER(None), ctypes.c_int32, size_t, hipStream_t]
  3154. except AttributeError:
  3155. pass
  3156. try:
  3157. hipMemsetD32Async = _libraries['libamdhip64.so'].hipMemsetD32Async
  3158. hipMemsetD32Async.restype = hipError_t
  3159. hipMemsetD32Async.argtypes = [hipDeviceptr_t, ctypes.c_int32, size_t, hipStream_t]
  3160. except AttributeError:
  3161. pass
  3162. try:
  3163. hipMemset2D = _libraries['libamdhip64.so'].hipMemset2D
  3164. hipMemset2D.restype = hipError_t
  3165. hipMemset2D.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32, size_t, size_t]
  3166. except AttributeError:
  3167. pass
  3168. try:
  3169. hipMemset2DAsync = _libraries['libamdhip64.so'].hipMemset2DAsync
  3170. hipMemset2DAsync.restype = hipError_t
  3171. hipMemset2DAsync.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32, size_t, size_t, hipStream_t]
  3172. except AttributeError:
  3173. pass
  3174. try:
  3175. hipMemset3D = _libraries['libamdhip64.so'].hipMemset3D
  3176. hipMemset3D.restype = hipError_t
  3177. hipMemset3D.argtypes = [hipPitchedPtr, ctypes.c_int32, hipExtent]
  3178. except AttributeError:
  3179. pass
  3180. try:
  3181. hipMemset3DAsync = _libraries['libamdhip64.so'].hipMemset3DAsync
  3182. hipMemset3DAsync.restype = hipError_t
  3183. hipMemset3DAsync.argtypes = [hipPitchedPtr, ctypes.c_int32, hipExtent, hipStream_t]
  3184. except AttributeError:
  3185. pass
  3186. try:
  3187. hipMemGetInfo = _libraries['libamdhip64.so'].hipMemGetInfo
  3188. hipMemGetInfo.restype = hipError_t
  3189. hipMemGetInfo.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(ctypes.c_uint64)]
  3190. except AttributeError:
  3191. pass
  3192. try:
  3193. hipMemPtrGetInfo = _libraries['libamdhip64.so'].hipMemPtrGetInfo
  3194. hipMemPtrGetInfo.restype = hipError_t
  3195. hipMemPtrGetInfo.argtypes = [ctypes.POINTER(None), ctypes.POINTER(ctypes.c_uint64)]
  3196. except AttributeError:
  3197. pass
  3198. try:
  3199. hipMallocArray = _libraries['libamdhip64.so'].hipMallocArray
  3200. hipMallocArray.restype = hipError_t
  3201. hipMallocArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), ctypes.POINTER(struct_hipChannelFormatDesc), size_t, size_t, ctypes.c_uint32]
  3202. except AttributeError:
  3203. pass
  3204. try:
  3205. hipArrayCreate = _libraries['libamdhip64.so'].hipArrayCreate
  3206. hipArrayCreate.restype = hipError_t
  3207. hipArrayCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), ctypes.POINTER(struct_HIP_ARRAY_DESCRIPTOR)]
  3208. except AttributeError:
  3209. pass
  3210. try:
  3211. hipArrayDestroy = _libraries['libamdhip64.so'].hipArrayDestroy
  3212. hipArrayDestroy.restype = hipError_t
  3213. hipArrayDestroy.argtypes = [hipArray_t]
  3214. except AttributeError:
  3215. pass
  3216. try:
  3217. hipArray3DCreate = _libraries['libamdhip64.so'].hipArray3DCreate
  3218. hipArray3DCreate.restype = hipError_t
  3219. hipArray3DCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), ctypes.POINTER(struct_HIP_ARRAY3D_DESCRIPTOR)]
  3220. except AttributeError:
  3221. pass
  3222. try:
  3223. hipMalloc3D = _libraries['libamdhip64.so'].hipMalloc3D
  3224. hipMalloc3D.restype = hipError_t
  3225. hipMalloc3D.argtypes = [ctypes.POINTER(struct_hipPitchedPtr), hipExtent]
  3226. except AttributeError:
  3227. pass
  3228. try:
  3229. hipFreeArray = _libraries['libamdhip64.so'].hipFreeArray
  3230. hipFreeArray.restype = hipError_t
  3231. hipFreeArray.argtypes = [hipArray_t]
  3232. except AttributeError:
  3233. pass
  3234. try:
  3235. hipMalloc3DArray = _libraries['libamdhip64.so'].hipMalloc3DArray
  3236. hipMalloc3DArray.restype = hipError_t
  3237. hipMalloc3DArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), ctypes.POINTER(struct_hipChannelFormatDesc), struct_hipExtent, ctypes.c_uint32]
  3238. except AttributeError:
  3239. pass
  3240. try:
  3241. hipArrayGetInfo = _libraries['libamdhip64.so'].hipArrayGetInfo
  3242. hipArrayGetInfo.restype = hipError_t
  3243. hipArrayGetInfo.argtypes = [ctypes.POINTER(struct_hipChannelFormatDesc), ctypes.POINTER(struct_hipExtent), ctypes.POINTER(ctypes.c_uint32), hipArray_t]
  3244. except AttributeError:
  3245. pass
  3246. try:
  3247. hipArrayGetDescriptor = _libraries['libamdhip64.so'].hipArrayGetDescriptor
  3248. hipArrayGetDescriptor.restype = hipError_t
  3249. hipArrayGetDescriptor.argtypes = [ctypes.POINTER(struct_HIP_ARRAY_DESCRIPTOR), hipArray_t]
  3250. except AttributeError:
  3251. pass
  3252. try:
  3253. hipArray3DGetDescriptor = _libraries['libamdhip64.so'].hipArray3DGetDescriptor
  3254. hipArray3DGetDescriptor.restype = hipError_t
  3255. hipArray3DGetDescriptor.argtypes = [ctypes.POINTER(struct_HIP_ARRAY3D_DESCRIPTOR), hipArray_t]
  3256. except AttributeError:
  3257. pass
  3258. try:
  3259. hipMemcpy2D = _libraries['libamdhip64.so'].hipMemcpy2D
  3260. hipMemcpy2D.restype = hipError_t
  3261. hipMemcpy2D.argtypes = [ctypes.POINTER(None), size_t, ctypes.POINTER(None), size_t, size_t, size_t, hipMemcpyKind]
  3262. except AttributeError:
  3263. pass
  3264. try:
  3265. hipMemcpyParam2D = _libraries['libamdhip64.so'].hipMemcpyParam2D
  3266. hipMemcpyParam2D.restype = hipError_t
  3267. hipMemcpyParam2D.argtypes = [ctypes.POINTER(struct_hip_Memcpy2D)]
  3268. except AttributeError:
  3269. pass
  3270. try:
  3271. hipMemcpyParam2DAsync = _libraries['libamdhip64.so'].hipMemcpyParam2DAsync
  3272. hipMemcpyParam2DAsync.restype = hipError_t
  3273. hipMemcpyParam2DAsync.argtypes = [ctypes.POINTER(struct_hip_Memcpy2D), hipStream_t]
  3274. except AttributeError:
  3275. pass
  3276. try:
  3277. hipMemcpy2DAsync = _libraries['libamdhip64.so'].hipMemcpy2DAsync
  3278. hipMemcpy2DAsync.restype = hipError_t
  3279. hipMemcpy2DAsync.argtypes = [ctypes.POINTER(None), size_t, ctypes.POINTER(None), size_t, size_t, size_t, hipMemcpyKind, hipStream_t]
  3280. except AttributeError:
  3281. pass
  3282. try:
  3283. hipMemcpy2DToArray = _libraries['libamdhip64.so'].hipMemcpy2DToArray
  3284. hipMemcpy2DToArray.restype = hipError_t
  3285. hipMemcpy2DToArray.argtypes = [hipArray_t, size_t, size_t, ctypes.POINTER(None), size_t, size_t, size_t, hipMemcpyKind]
  3286. except AttributeError:
  3287. pass
  3288. try:
  3289. hipMemcpy2DToArrayAsync = _libraries['libamdhip64.so'].hipMemcpy2DToArrayAsync
  3290. hipMemcpy2DToArrayAsync.restype = hipError_t
  3291. hipMemcpy2DToArrayAsync.argtypes = [hipArray_t, size_t, size_t, ctypes.POINTER(None), size_t, size_t, size_t, hipMemcpyKind, hipStream_t]
  3292. except AttributeError:
  3293. pass
  3294. try:
  3295. hipMemcpyToArray = _libraries['libamdhip64.so'].hipMemcpyToArray
  3296. hipMemcpyToArray.restype = hipError_t
  3297. hipMemcpyToArray.argtypes = [hipArray_t, size_t, size_t, ctypes.POINTER(None), size_t, hipMemcpyKind]
  3298. except AttributeError:
  3299. pass
  3300. try:
  3301. hipMemcpyFromArray = _libraries['libamdhip64.so'].hipMemcpyFromArray
  3302. hipMemcpyFromArray.restype = hipError_t
  3303. hipMemcpyFromArray.argtypes = [ctypes.POINTER(None), hipArray_const_t, size_t, size_t, size_t, hipMemcpyKind]
  3304. except AttributeError:
  3305. pass
  3306. try:
  3307. hipMemcpy2DFromArray = _libraries['libamdhip64.so'].hipMemcpy2DFromArray
  3308. hipMemcpy2DFromArray.restype = hipError_t
  3309. hipMemcpy2DFromArray.argtypes = [ctypes.POINTER(None), size_t, hipArray_const_t, size_t, size_t, size_t, size_t, hipMemcpyKind]
  3310. except AttributeError:
  3311. pass
  3312. try:
  3313. hipMemcpy2DFromArrayAsync = _libraries['libamdhip64.so'].hipMemcpy2DFromArrayAsync
  3314. hipMemcpy2DFromArrayAsync.restype = hipError_t
  3315. hipMemcpy2DFromArrayAsync.argtypes = [ctypes.POINTER(None), size_t, hipArray_const_t, size_t, size_t, size_t, size_t, hipMemcpyKind, hipStream_t]
  3316. except AttributeError:
  3317. pass
  3318. try:
  3319. hipMemcpyAtoH = _libraries['libamdhip64.so'].hipMemcpyAtoH
  3320. hipMemcpyAtoH.restype = hipError_t
  3321. hipMemcpyAtoH.argtypes = [ctypes.POINTER(None), hipArray_t, size_t, size_t]
  3322. except AttributeError:
  3323. pass
  3324. try:
  3325. hipMemcpyHtoA = _libraries['libamdhip64.so'].hipMemcpyHtoA
  3326. hipMemcpyHtoA.restype = hipError_t
  3327. hipMemcpyHtoA.argtypes = [hipArray_t, size_t, ctypes.POINTER(None), size_t]
  3328. except AttributeError:
  3329. pass
  3330. try:
  3331. hipMemcpy3D = _libraries['libamdhip64.so'].hipMemcpy3D
  3332. hipMemcpy3D.restype = hipError_t
  3333. hipMemcpy3D.argtypes = [ctypes.POINTER(struct_hipMemcpy3DParms)]
  3334. except AttributeError:
  3335. pass
  3336. try:
  3337. hipMemcpy3DAsync = _libraries['libamdhip64.so'].hipMemcpy3DAsync
  3338. hipMemcpy3DAsync.restype = hipError_t
  3339. hipMemcpy3DAsync.argtypes = [ctypes.POINTER(struct_hipMemcpy3DParms), hipStream_t]
  3340. except AttributeError:
  3341. pass
  3342. try:
  3343. hipDrvMemcpy3D = _libraries['libamdhip64.so'].hipDrvMemcpy3D
  3344. hipDrvMemcpy3D.restype = hipError_t
  3345. hipDrvMemcpy3D.argtypes = [ctypes.POINTER(struct_HIP_MEMCPY3D)]
  3346. except AttributeError:
  3347. pass
  3348. try:
  3349. hipDrvMemcpy3DAsync = _libraries['libamdhip64.so'].hipDrvMemcpy3DAsync
  3350. hipDrvMemcpy3DAsync.restype = hipError_t
  3351. hipDrvMemcpy3DAsync.argtypes = [ctypes.POINTER(struct_HIP_MEMCPY3D), hipStream_t]
  3352. except AttributeError:
  3353. pass
  3354. try:
  3355. hipDeviceCanAccessPeer = _libraries['libamdhip64.so'].hipDeviceCanAccessPeer
  3356. hipDeviceCanAccessPeer.restype = hipError_t
  3357. hipDeviceCanAccessPeer.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.c_int32, ctypes.c_int32]
  3358. except AttributeError:
  3359. pass
  3360. try:
  3361. hipDeviceEnablePeerAccess = _libraries['libamdhip64.so'].hipDeviceEnablePeerAccess
  3362. hipDeviceEnablePeerAccess.restype = hipError_t
  3363. hipDeviceEnablePeerAccess.argtypes = [ctypes.c_int32, ctypes.c_uint32]
  3364. except AttributeError:
  3365. pass
  3366. try:
  3367. hipDeviceDisablePeerAccess = _libraries['libamdhip64.so'].hipDeviceDisablePeerAccess
  3368. hipDeviceDisablePeerAccess.restype = hipError_t
  3369. hipDeviceDisablePeerAccess.argtypes = [ctypes.c_int32]
  3370. except AttributeError:
  3371. pass
  3372. try:
  3373. hipMemGetAddressRange = _libraries['libamdhip64.so'].hipMemGetAddressRange
  3374. hipMemGetAddressRange.restype = hipError_t
  3375. hipMemGetAddressRange.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), hipDeviceptr_t]
  3376. except AttributeError:
  3377. pass
  3378. try:
  3379. hipMemcpyPeer = _libraries['libamdhip64.so'].hipMemcpyPeer
  3380. hipMemcpyPeer.restype = hipError_t
  3381. hipMemcpyPeer.argtypes = [ctypes.POINTER(None), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32, size_t]
  3382. except AttributeError:
  3383. pass
  3384. try:
  3385. hipMemcpyPeerAsync = _libraries['libamdhip64.so'].hipMemcpyPeerAsync
  3386. hipMemcpyPeerAsync.restype = hipError_t
  3387. hipMemcpyPeerAsync.argtypes = [ctypes.POINTER(None), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32, size_t, hipStream_t]
  3388. except AttributeError:
  3389. pass
  3390. try:
  3391. hipCtxCreate = _libraries['libamdhip64.so'].hipCtxCreate
  3392. hipCtxCreate.restype = hipError_t
  3393. hipCtxCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipCtx_t)), ctypes.c_uint32, hipDevice_t]
  3394. except AttributeError:
  3395. pass
  3396. try:
  3397. hipCtxDestroy = _libraries['libamdhip64.so'].hipCtxDestroy
  3398. hipCtxDestroy.restype = hipError_t
  3399. hipCtxDestroy.argtypes = [hipCtx_t]
  3400. except AttributeError:
  3401. pass
  3402. try:
  3403. hipCtxPopCurrent = _libraries['libamdhip64.so'].hipCtxPopCurrent
  3404. hipCtxPopCurrent.restype = hipError_t
  3405. hipCtxPopCurrent.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipCtx_t))]
  3406. except AttributeError:
  3407. pass
  3408. try:
  3409. hipCtxPushCurrent = _libraries['libamdhip64.so'].hipCtxPushCurrent
  3410. hipCtxPushCurrent.restype = hipError_t
  3411. hipCtxPushCurrent.argtypes = [hipCtx_t]
  3412. except AttributeError:
  3413. pass
  3414. try:
  3415. hipCtxSetCurrent = _libraries['libamdhip64.so'].hipCtxSetCurrent
  3416. hipCtxSetCurrent.restype = hipError_t
  3417. hipCtxSetCurrent.argtypes = [hipCtx_t]
  3418. except AttributeError:
  3419. pass
  3420. try:
  3421. hipCtxGetCurrent = _libraries['libamdhip64.so'].hipCtxGetCurrent
  3422. hipCtxGetCurrent.restype = hipError_t
  3423. hipCtxGetCurrent.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipCtx_t))]
  3424. except AttributeError:
  3425. pass
  3426. try:
  3427. hipCtxGetDevice = _libraries['libamdhip64.so'].hipCtxGetDevice
  3428. hipCtxGetDevice.restype = hipError_t
  3429. hipCtxGetDevice.argtypes = [ctypes.POINTER(ctypes.c_int32)]
  3430. except AttributeError:
  3431. pass
  3432. try:
  3433. hipCtxGetApiVersion = _libraries['libamdhip64.so'].hipCtxGetApiVersion
  3434. hipCtxGetApiVersion.restype = hipError_t
  3435. hipCtxGetApiVersion.argtypes = [hipCtx_t, ctypes.POINTER(ctypes.c_int32)]
  3436. except AttributeError:
  3437. pass
  3438. try:
  3439. hipCtxGetCacheConfig = _libraries['libamdhip64.so'].hipCtxGetCacheConfig
  3440. hipCtxGetCacheConfig.restype = hipError_t
  3441. hipCtxGetCacheConfig.argtypes = [ctypes.POINTER(hipFuncCache_t)]
  3442. except AttributeError:
  3443. pass
  3444. try:
  3445. hipCtxSetCacheConfig = _libraries['libamdhip64.so'].hipCtxSetCacheConfig
  3446. hipCtxSetCacheConfig.restype = hipError_t
  3447. hipCtxSetCacheConfig.argtypes = [hipFuncCache_t]
  3448. except AttributeError:
  3449. pass
  3450. try:
  3451. hipCtxSetSharedMemConfig = _libraries['libamdhip64.so'].hipCtxSetSharedMemConfig
  3452. hipCtxSetSharedMemConfig.restype = hipError_t
  3453. hipCtxSetSharedMemConfig.argtypes = [hipSharedMemConfig]
  3454. except AttributeError:
  3455. pass
  3456. try:
  3457. hipCtxGetSharedMemConfig = _libraries['libamdhip64.so'].hipCtxGetSharedMemConfig
  3458. hipCtxGetSharedMemConfig.restype = hipError_t
  3459. hipCtxGetSharedMemConfig.argtypes = [ctypes.POINTER(hipSharedMemConfig)]
  3460. except AttributeError:
  3461. pass
  3462. try:
  3463. hipCtxSynchronize = _libraries['libamdhip64.so'].hipCtxSynchronize
  3464. hipCtxSynchronize.restype = hipError_t
  3465. hipCtxSynchronize.argtypes = []
  3466. except AttributeError:
  3467. pass
  3468. try:
  3469. hipCtxGetFlags = _libraries['libamdhip64.so'].hipCtxGetFlags
  3470. hipCtxGetFlags.restype = hipError_t
  3471. hipCtxGetFlags.argtypes = [ctypes.POINTER(ctypes.c_uint32)]
  3472. except AttributeError:
  3473. pass
  3474. try:
  3475. hipCtxEnablePeerAccess = _libraries['libamdhip64.so'].hipCtxEnablePeerAccess
  3476. hipCtxEnablePeerAccess.restype = hipError_t
  3477. hipCtxEnablePeerAccess.argtypes = [hipCtx_t, ctypes.c_uint32]
  3478. except AttributeError:
  3479. pass
  3480. try:
  3481. hipCtxDisablePeerAccess = _libraries['libamdhip64.so'].hipCtxDisablePeerAccess
  3482. hipCtxDisablePeerAccess.restype = hipError_t
  3483. hipCtxDisablePeerAccess.argtypes = [hipCtx_t]
  3484. except AttributeError:
  3485. pass
  3486. try:
  3487. hipDevicePrimaryCtxGetState = _libraries['libamdhip64.so'].hipDevicePrimaryCtxGetState
  3488. hipDevicePrimaryCtxGetState.restype = hipError_t
  3489. hipDevicePrimaryCtxGetState.argtypes = [hipDevice_t, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_int32)]
  3490. except AttributeError:
  3491. pass
  3492. try:
  3493. hipDevicePrimaryCtxRelease = _libraries['libamdhip64.so'].hipDevicePrimaryCtxRelease
  3494. hipDevicePrimaryCtxRelease.restype = hipError_t
  3495. hipDevicePrimaryCtxRelease.argtypes = [hipDevice_t]
  3496. except AttributeError:
  3497. pass
  3498. try:
  3499. hipDevicePrimaryCtxRetain = _libraries['libamdhip64.so'].hipDevicePrimaryCtxRetain
  3500. hipDevicePrimaryCtxRetain.restype = hipError_t
  3501. hipDevicePrimaryCtxRetain.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipCtx_t)), hipDevice_t]
  3502. except AttributeError:
  3503. pass
  3504. try:
  3505. hipDevicePrimaryCtxReset = _libraries['libamdhip64.so'].hipDevicePrimaryCtxReset
  3506. hipDevicePrimaryCtxReset.restype = hipError_t
  3507. hipDevicePrimaryCtxReset.argtypes = [hipDevice_t]
  3508. except AttributeError:
  3509. pass
  3510. try:
  3511. hipDevicePrimaryCtxSetFlags = _libraries['libamdhip64.so'].hipDevicePrimaryCtxSetFlags
  3512. hipDevicePrimaryCtxSetFlags.restype = hipError_t
  3513. hipDevicePrimaryCtxSetFlags.argtypes = [hipDevice_t, ctypes.c_uint32]
  3514. except AttributeError:
  3515. pass
  3516. try:
  3517. hipModuleLoad = _libraries['libamdhip64.so'].hipModuleLoad
  3518. hipModuleLoad.restype = hipError_t
  3519. hipModuleLoad.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipModule_t)), ctypes.POINTER(ctypes.c_char)]
  3520. except AttributeError:
  3521. pass
  3522. try:
  3523. hipModuleUnload = _libraries['libamdhip64.so'].hipModuleUnload
  3524. hipModuleUnload.restype = hipError_t
  3525. hipModuleUnload.argtypes = [hipModule_t]
  3526. except AttributeError:
  3527. pass
  3528. try:
  3529. hipModuleGetFunction = _libraries['libamdhip64.so'].hipModuleGetFunction
  3530. hipModuleGetFunction.restype = hipError_t
  3531. hipModuleGetFunction.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipModuleSymbol_t)), hipModule_t, ctypes.POINTER(ctypes.c_char)]
  3532. except AttributeError:
  3533. pass
  3534. try:
  3535. hipFuncGetAttributes = _libraries['libamdhip64.so'].hipFuncGetAttributes
  3536. hipFuncGetAttributes.restype = hipError_t
  3537. hipFuncGetAttributes.argtypes = [ctypes.POINTER(struct_hipFuncAttributes), ctypes.POINTER(None)]
  3538. except AttributeError:
  3539. pass
  3540. try:
  3541. hipFuncGetAttribute = _libraries['libamdhip64.so'].hipFuncGetAttribute
  3542. hipFuncGetAttribute.restype = hipError_t
  3543. hipFuncGetAttribute.argtypes = [ctypes.POINTER(ctypes.c_int32), hipFunction_attribute, hipFunction_t]
  3544. except AttributeError:
  3545. pass
  3546. class struct_textureReference(Structure):
  3547. pass
  3548. class struct___hip_texture(Structure):
  3549. pass
  3550. # values for enumeration 'hipTextureReadMode'
  3551. hipTextureReadMode__enumvalues = {
  3552. 0: 'hipReadModeElementType',
  3553. 1: 'hipReadModeNormalizedFloat',
  3554. }
  3555. hipReadModeElementType = 0
  3556. hipReadModeNormalizedFloat = 1
  3557. hipTextureReadMode = ctypes.c_uint32 # enum
  3558. # values for enumeration 'hipTextureFilterMode'
  3559. hipTextureFilterMode__enumvalues = {
  3560. 0: 'hipFilterModePoint',
  3561. 1: 'hipFilterModeLinear',
  3562. }
  3563. hipFilterModePoint = 0
  3564. hipFilterModeLinear = 1
  3565. hipTextureFilterMode = ctypes.c_uint32 # enum
  3566. # values for enumeration 'hipTextureAddressMode'
  3567. hipTextureAddressMode__enumvalues = {
  3568. 0: 'hipAddressModeWrap',
  3569. 1: 'hipAddressModeClamp',
  3570. 2: 'hipAddressModeMirror',
  3571. 3: 'hipAddressModeBorder',
  3572. }
  3573. hipAddressModeWrap = 0
  3574. hipAddressModeClamp = 1
  3575. hipAddressModeMirror = 2
  3576. hipAddressModeBorder = 3
  3577. hipTextureAddressMode = ctypes.c_uint32 # enum
  3578. struct_textureReference._pack_ = 1 # source:False
  3579. struct_textureReference._fields_ = [
  3580. ('normalized', ctypes.c_int32),
  3581. ('readMode', hipTextureReadMode),
  3582. ('filterMode', hipTextureFilterMode),
  3583. ('addressMode', hipTextureAddressMode * 3),
  3584. ('channelDesc', struct_hipChannelFormatDesc),
  3585. ('sRGB', ctypes.c_int32),
  3586. ('maxAnisotropy', ctypes.c_uint32),
  3587. ('mipmapFilterMode', hipTextureFilterMode),
  3588. ('mipmapLevelBias', ctypes.c_float),
  3589. ('minMipmapLevelClamp', ctypes.c_float),
  3590. ('maxMipmapLevelClamp', ctypes.c_float),
  3591. ('PADDING_0', ctypes.c_ubyte * 4),
  3592. ('textureObject', ctypes.POINTER(struct___hip_texture)),
  3593. ('numChannels', ctypes.c_int32),
  3594. ('format', hipArray_Format),
  3595. ]
  3596. try:
  3597. hipModuleGetTexRef = _libraries['libamdhip64.so'].hipModuleGetTexRef
  3598. hipModuleGetTexRef.restype = hipError_t
  3599. hipModuleGetTexRef.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_textureReference)), hipModule_t, ctypes.POINTER(ctypes.c_char)]
  3600. except AttributeError:
  3601. pass
  3602. try:
  3603. hipModuleLoadData = _libraries['libamdhip64.so'].hipModuleLoadData
  3604. hipModuleLoadData.restype = hipError_t
  3605. hipModuleLoadData.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipModule_t)), ctypes.POINTER(None)]
  3606. except AttributeError:
  3607. pass
  3608. try:
  3609. hipModuleLoadDataEx = _libraries['libamdhip64.so'].hipModuleLoadDataEx
  3610. hipModuleLoadDataEx.restype = hipError_t
  3611. hipModuleLoadDataEx.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipModule_t)), ctypes.POINTER(None), ctypes.c_uint32, ctypes.POINTER(hipJitOption), ctypes.POINTER(ctypes.POINTER(None))]
  3612. except AttributeError:
  3613. pass
  3614. try:
  3615. hipModuleLaunchKernel = _libraries['libamdhip64.so'].hipModuleLaunchKernel
  3616. hipModuleLaunchKernel.restype = hipError_t
  3617. hipModuleLaunchKernel.argtypes = [hipFunction_t, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, hipStream_t, ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.POINTER(None))]
  3618. except AttributeError:
  3619. pass
  3620. try:
  3621. hipModuleLaunchCooperativeKernel = _libraries['libamdhip64.so'].hipModuleLaunchCooperativeKernel
  3622. hipModuleLaunchCooperativeKernel.restype = hipError_t
  3623. hipModuleLaunchCooperativeKernel.argtypes = [hipFunction_t, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, hipStream_t, ctypes.POINTER(ctypes.POINTER(None))]
  3624. except AttributeError:
  3625. pass
  3626. try:
  3627. hipModuleLaunchCooperativeKernelMultiDevice = _libraries['libamdhip64.so'].hipModuleLaunchCooperativeKernelMultiDevice
  3628. hipModuleLaunchCooperativeKernelMultiDevice.restype = hipError_t
  3629. hipModuleLaunchCooperativeKernelMultiDevice.argtypes = [ctypes.POINTER(struct_hipFunctionLaunchParams_t), ctypes.c_uint32, ctypes.c_uint32]
  3630. except AttributeError:
  3631. pass
  3632. try:
  3633. hipLaunchCooperativeKernel = _libraries['libamdhip64.so'].hipLaunchCooperativeKernel
  3634. hipLaunchCooperativeKernel.restype = hipError_t
  3635. hipLaunchCooperativeKernel.argtypes = [ctypes.POINTER(None), dim3, dim3, ctypes.POINTER(ctypes.POINTER(None)), ctypes.c_uint32, hipStream_t]
  3636. except AttributeError:
  3637. pass
  3638. try:
  3639. hipLaunchCooperativeKernelMultiDevice = _libraries['libamdhip64.so'].hipLaunchCooperativeKernelMultiDevice
  3640. hipLaunchCooperativeKernelMultiDevice.restype = hipError_t
  3641. hipLaunchCooperativeKernelMultiDevice.argtypes = [ctypes.POINTER(struct_hipLaunchParams_t), ctypes.c_int32, ctypes.c_uint32]
  3642. except AttributeError:
  3643. pass
  3644. try:
  3645. hipExtLaunchMultiKernelMultiDevice = _libraries['libamdhip64.so'].hipExtLaunchMultiKernelMultiDevice
  3646. hipExtLaunchMultiKernelMultiDevice.restype = hipError_t
  3647. hipExtLaunchMultiKernelMultiDevice.argtypes = [ctypes.POINTER(struct_hipLaunchParams_t), ctypes.c_int32, ctypes.c_uint32]
  3648. except AttributeError:
  3649. pass
  3650. try:
  3651. hipModuleOccupancyMaxPotentialBlockSize = _libraries['libamdhip64.so'].hipModuleOccupancyMaxPotentialBlockSize
  3652. hipModuleOccupancyMaxPotentialBlockSize.restype = hipError_t
  3653. hipModuleOccupancyMaxPotentialBlockSize.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), hipFunction_t, size_t, ctypes.c_int32]
  3654. except AttributeError:
  3655. pass
  3656. try:
  3657. hipModuleOccupancyMaxPotentialBlockSizeWithFlags = _libraries['libamdhip64.so'].hipModuleOccupancyMaxPotentialBlockSizeWithFlags
  3658. hipModuleOccupancyMaxPotentialBlockSizeWithFlags.restype = hipError_t
  3659. hipModuleOccupancyMaxPotentialBlockSizeWithFlags.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), hipFunction_t, size_t, ctypes.c_int32, ctypes.c_uint32]
  3660. except AttributeError:
  3661. pass
  3662. try:
  3663. hipModuleOccupancyMaxActiveBlocksPerMultiprocessor = _libraries['libamdhip64.so'].hipModuleOccupancyMaxActiveBlocksPerMultiprocessor
  3664. hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.restype = hipError_t
  3665. hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.argtypes = [ctypes.POINTER(ctypes.c_int32), hipFunction_t, ctypes.c_int32, size_t]
  3666. except AttributeError:
  3667. pass
  3668. try:
  3669. hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = _libraries['libamdhip64.so'].hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
  3670. hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.restype = hipError_t
  3671. hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.argtypes = [ctypes.POINTER(ctypes.c_int32), hipFunction_t, ctypes.c_int32, size_t, ctypes.c_uint32]
  3672. except AttributeError:
  3673. pass
  3674. try:
  3675. hipOccupancyMaxActiveBlocksPerMultiprocessor = _libraries['libamdhip64.so'].hipOccupancyMaxActiveBlocksPerMultiprocessor
  3676. hipOccupancyMaxActiveBlocksPerMultiprocessor.restype = hipError_t
  3677. hipOccupancyMaxActiveBlocksPerMultiprocessor.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(None), ctypes.c_int32, size_t]
  3678. except AttributeError:
  3679. pass
  3680. try:
  3681. hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = _libraries['libamdhip64.so'].hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
  3682. hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.restype = hipError_t
  3683. hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(None), ctypes.c_int32, size_t, ctypes.c_uint32]
  3684. except AttributeError:
  3685. pass
  3686. try:
  3687. hipOccupancyMaxPotentialBlockSize = _libraries['libamdhip64.so'].hipOccupancyMaxPotentialBlockSize
  3688. hipOccupancyMaxPotentialBlockSize.restype = hipError_t
  3689. hipOccupancyMaxPotentialBlockSize.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(None), size_t, ctypes.c_int32]
  3690. except AttributeError:
  3691. pass
  3692. try:
  3693. hipProfilerStart = _libraries['libamdhip64.so'].hipProfilerStart
  3694. hipProfilerStart.restype = hipError_t
  3695. hipProfilerStart.argtypes = []
  3696. except AttributeError:
  3697. pass
  3698. try:
  3699. hipProfilerStop = _libraries['libamdhip64.so'].hipProfilerStop
  3700. hipProfilerStop.restype = hipError_t
  3701. hipProfilerStop.argtypes = []
  3702. except AttributeError:
  3703. pass
  3704. try:
  3705. hipConfigureCall = _libraries['libamdhip64.so'].hipConfigureCall
  3706. hipConfigureCall.restype = hipError_t
  3707. hipConfigureCall.argtypes = [dim3, dim3, size_t, hipStream_t]
  3708. except AttributeError:
  3709. pass
  3710. try:
  3711. hipSetupArgument = _libraries['libamdhip64.so'].hipSetupArgument
  3712. hipSetupArgument.restype = hipError_t
  3713. hipSetupArgument.argtypes = [ctypes.POINTER(None), size_t, size_t]
  3714. except AttributeError:
  3715. pass
  3716. try:
  3717. hipLaunchByPtr = _libraries['libamdhip64.so'].hipLaunchByPtr
  3718. hipLaunchByPtr.restype = hipError_t
  3719. hipLaunchByPtr.argtypes = [ctypes.POINTER(None)]
  3720. except AttributeError:
  3721. pass
  3722. try:
  3723. __hipPushCallConfiguration = _libraries['libamdhip64.so'].__hipPushCallConfiguration
  3724. __hipPushCallConfiguration.restype = hipError_t
  3725. __hipPushCallConfiguration.argtypes = [dim3, dim3, size_t, hipStream_t]
  3726. except AttributeError:
  3727. pass
  3728. try:
  3729. __hipPopCallConfiguration = _libraries['libamdhip64.so'].__hipPopCallConfiguration
  3730. __hipPopCallConfiguration.restype = hipError_t
  3731. __hipPopCallConfiguration.argtypes = [ctypes.POINTER(struct_dim3), ctypes.POINTER(struct_dim3), ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(ctypes.POINTER(struct_ihipStream_t))]
  3732. except AttributeError:
  3733. pass
  3734. try:
  3735. hipLaunchKernel = _libraries['libamdhip64.so'].hipLaunchKernel
  3736. hipLaunchKernel.restype = hipError_t
  3737. hipLaunchKernel.argtypes = [ctypes.POINTER(None), dim3, dim3, ctypes.POINTER(ctypes.POINTER(None)), size_t, hipStream_t]
  3738. except AttributeError:
  3739. pass
  3740. try:
  3741. hipLaunchHostFunc = _libraries['libamdhip64.so'].hipLaunchHostFunc
  3742. hipLaunchHostFunc.restype = hipError_t
  3743. hipLaunchHostFunc.argtypes = [hipStream_t, hipHostFn_t, ctypes.POINTER(None)]
  3744. except AttributeError:
  3745. pass
  3746. try:
  3747. hipDrvMemcpy2DUnaligned = _libraries['libamdhip64.so'].hipDrvMemcpy2DUnaligned
  3748. hipDrvMemcpy2DUnaligned.restype = hipError_t
  3749. hipDrvMemcpy2DUnaligned.argtypes = [ctypes.POINTER(struct_hip_Memcpy2D)]
  3750. except AttributeError:
  3751. pass
  3752. try:
  3753. hipExtLaunchKernel = _libraries['libamdhip64.so'].hipExtLaunchKernel
  3754. hipExtLaunchKernel.restype = hipError_t
  3755. hipExtLaunchKernel.argtypes = [ctypes.POINTER(None), dim3, dim3, ctypes.POINTER(ctypes.POINTER(None)), size_t, hipStream_t, hipEvent_t, hipEvent_t, ctypes.c_int32]
  3756. except AttributeError:
  3757. pass
  3758. class struct_hipTextureDesc(Structure):
  3759. pass
  3760. struct_hipTextureDesc._pack_ = 1 # source:False
  3761. struct_hipTextureDesc._fields_ = [
  3762. ('addressMode', hipTextureAddressMode * 3),
  3763. ('filterMode', hipTextureFilterMode),
  3764. ('readMode', hipTextureReadMode),
  3765. ('sRGB', ctypes.c_int32),
  3766. ('borderColor', ctypes.c_float * 4),
  3767. ('normalizedCoords', ctypes.c_int32),
  3768. ('maxAnisotropy', ctypes.c_uint32),
  3769. ('mipmapFilterMode', hipTextureFilterMode),
  3770. ('mipmapLevelBias', ctypes.c_float),
  3771. ('minMipmapLevelClamp', ctypes.c_float),
  3772. ('maxMipmapLevelClamp', ctypes.c_float),
  3773. ]
  3774. try:
  3775. hipCreateTextureObject = _libraries['libamdhip64.so'].hipCreateTextureObject
  3776. hipCreateTextureObject.restype = hipError_t
  3777. hipCreateTextureObject.argtypes = [ctypes.POINTER(ctypes.POINTER(struct___hip_texture)), ctypes.POINTER(struct_hipResourceDesc), ctypes.POINTER(struct_hipTextureDesc), ctypes.POINTER(struct_hipResourceViewDesc)]
  3778. except AttributeError:
  3779. pass
  3780. hipTextureObject_t = ctypes.POINTER(struct___hip_texture)
  3781. try:
  3782. hipDestroyTextureObject = _libraries['libamdhip64.so'].hipDestroyTextureObject
  3783. hipDestroyTextureObject.restype = hipError_t
  3784. hipDestroyTextureObject.argtypes = [hipTextureObject_t]
  3785. except AttributeError:
  3786. pass
  3787. try:
  3788. hipGetChannelDesc = _libraries['libamdhip64.so'].hipGetChannelDesc
  3789. hipGetChannelDesc.restype = hipError_t
  3790. hipGetChannelDesc.argtypes = [ctypes.POINTER(struct_hipChannelFormatDesc), hipArray_const_t]
  3791. except AttributeError:
  3792. pass
  3793. try:
  3794. hipGetTextureObjectResourceDesc = _libraries['libamdhip64.so'].hipGetTextureObjectResourceDesc
  3795. hipGetTextureObjectResourceDesc.restype = hipError_t
  3796. hipGetTextureObjectResourceDesc.argtypes = [ctypes.POINTER(struct_hipResourceDesc), hipTextureObject_t]
  3797. except AttributeError:
  3798. pass
  3799. try:
  3800. hipGetTextureObjectResourceViewDesc = _libraries['libamdhip64.so'].hipGetTextureObjectResourceViewDesc
  3801. hipGetTextureObjectResourceViewDesc.restype = hipError_t
  3802. hipGetTextureObjectResourceViewDesc.argtypes = [ctypes.POINTER(struct_hipResourceViewDesc), hipTextureObject_t]
  3803. except AttributeError:
  3804. pass
  3805. try:
  3806. hipGetTextureObjectTextureDesc = _libraries['libamdhip64.so'].hipGetTextureObjectTextureDesc
  3807. hipGetTextureObjectTextureDesc.restype = hipError_t
  3808. hipGetTextureObjectTextureDesc.argtypes = [ctypes.POINTER(struct_hipTextureDesc), hipTextureObject_t]
  3809. except AttributeError:
  3810. pass
  3811. try:
  3812. hipTexObjectCreate = _libraries['libamdhip64.so'].hipTexObjectCreate
  3813. hipTexObjectCreate.restype = hipError_t
  3814. hipTexObjectCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct___hip_texture)), ctypes.POINTER(struct_HIP_RESOURCE_DESC_st), ctypes.POINTER(struct_HIP_TEXTURE_DESC_st), ctypes.POINTER(struct_HIP_RESOURCE_VIEW_DESC_st)]
  3815. except AttributeError:
  3816. pass
  3817. try:
  3818. hipTexObjectDestroy = _libraries['libamdhip64.so'].hipTexObjectDestroy
  3819. hipTexObjectDestroy.restype = hipError_t
  3820. hipTexObjectDestroy.argtypes = [hipTextureObject_t]
  3821. except AttributeError:
  3822. pass
  3823. try:
  3824. hipTexObjectGetResourceDesc = _libraries['libamdhip64.so'].hipTexObjectGetResourceDesc
  3825. hipTexObjectGetResourceDesc.restype = hipError_t
  3826. hipTexObjectGetResourceDesc.argtypes = [ctypes.POINTER(struct_HIP_RESOURCE_DESC_st), hipTextureObject_t]
  3827. except AttributeError:
  3828. pass
  3829. try:
  3830. hipTexObjectGetResourceViewDesc = _libraries['libamdhip64.so'].hipTexObjectGetResourceViewDesc
  3831. hipTexObjectGetResourceViewDesc.restype = hipError_t
  3832. hipTexObjectGetResourceViewDesc.argtypes = [ctypes.POINTER(struct_HIP_RESOURCE_VIEW_DESC_st), hipTextureObject_t]
  3833. except AttributeError:
  3834. pass
  3835. try:
  3836. hipTexObjectGetTextureDesc = _libraries['libamdhip64.so'].hipTexObjectGetTextureDesc
  3837. hipTexObjectGetTextureDesc.restype = hipError_t
  3838. hipTexObjectGetTextureDesc.argtypes = [ctypes.POINTER(struct_HIP_TEXTURE_DESC_st), hipTextureObject_t]
  3839. except AttributeError:
  3840. pass
  3841. try:
  3842. hipMallocMipmappedArray = _libraries['libamdhip64.so'].hipMallocMipmappedArray
  3843. hipMallocMipmappedArray.restype = hipError_t
  3844. hipMallocMipmappedArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipMipmappedArray)), ctypes.POINTER(struct_hipChannelFormatDesc), struct_hipExtent, ctypes.c_uint32, ctypes.c_uint32]
  3845. except AttributeError:
  3846. pass
  3847. try:
  3848. hipFreeMipmappedArray = _libraries['libamdhip64.so'].hipFreeMipmappedArray
  3849. hipFreeMipmappedArray.restype = hipError_t
  3850. hipFreeMipmappedArray.argtypes = [hipMipmappedArray_t]
  3851. except AttributeError:
  3852. pass
  3853. try:
  3854. hipGetMipmappedArrayLevel = _libraries['libamdhip64.so'].hipGetMipmappedArrayLevel
  3855. hipGetMipmappedArrayLevel.restype = hipError_t
  3856. hipGetMipmappedArrayLevel.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), hipMipmappedArray_const_t, ctypes.c_uint32]
  3857. except AttributeError:
  3858. pass
  3859. try:
  3860. hipMipmappedArrayCreate = _libraries['libamdhip64.so'].hipMipmappedArrayCreate
  3861. hipMipmappedArrayCreate.restype = hipError_t
  3862. hipMipmappedArrayCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipMipmappedArray)), ctypes.POINTER(struct_HIP_ARRAY3D_DESCRIPTOR), ctypes.c_uint32]
  3863. except AttributeError:
  3864. pass
  3865. try:
  3866. hipMipmappedArrayDestroy = _libraries['libamdhip64.so'].hipMipmappedArrayDestroy
  3867. hipMipmappedArrayDestroy.restype = hipError_t
  3868. hipMipmappedArrayDestroy.argtypes = [hipMipmappedArray_t]
  3869. except AttributeError:
  3870. pass
  3871. try:
  3872. hipMipmappedArrayGetLevel = _libraries['libamdhip64.so'].hipMipmappedArrayGetLevel
  3873. hipMipmappedArrayGetLevel.restype = hipError_t
  3874. hipMipmappedArrayGetLevel.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), hipMipmappedArray_t, ctypes.c_uint32]
  3875. except AttributeError:
  3876. pass
  3877. try:
  3878. hipBindTextureToMipmappedArray = _libraries['libamdhip64.so'].hipBindTextureToMipmappedArray
  3879. hipBindTextureToMipmappedArray.restype = hipError_t
  3880. hipBindTextureToMipmappedArray.argtypes = [ctypes.POINTER(struct_textureReference), hipMipmappedArray_const_t, ctypes.POINTER(struct_hipChannelFormatDesc)]
  3881. except AttributeError:
  3882. pass
  3883. try:
  3884. hipGetTextureReference = _libraries['libamdhip64.so'].hipGetTextureReference
  3885. hipGetTextureReference.restype = hipError_t
  3886. hipGetTextureReference.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_textureReference)), ctypes.POINTER(None)]
  3887. except AttributeError:
  3888. pass
  3889. try:
  3890. hipTexRefSetAddressMode = _libraries['libamdhip64.so'].hipTexRefSetAddressMode
  3891. hipTexRefSetAddressMode.restype = hipError_t
  3892. hipTexRefSetAddressMode.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.c_int32, hipTextureAddressMode]
  3893. except AttributeError:
  3894. pass
  3895. try:
  3896. hipTexRefSetArray = _libraries['libamdhip64.so'].hipTexRefSetArray
  3897. hipTexRefSetArray.restype = hipError_t
  3898. hipTexRefSetArray.argtypes = [ctypes.POINTER(struct_textureReference), hipArray_const_t, ctypes.c_uint32]
  3899. except AttributeError:
  3900. pass
  3901. try:
  3902. hipTexRefSetFilterMode = _libraries['libamdhip64.so'].hipTexRefSetFilterMode
  3903. hipTexRefSetFilterMode.restype = hipError_t
  3904. hipTexRefSetFilterMode.argtypes = [ctypes.POINTER(struct_textureReference), hipTextureFilterMode]
  3905. except AttributeError:
  3906. pass
  3907. try:
  3908. hipTexRefSetFlags = _libraries['libamdhip64.so'].hipTexRefSetFlags
  3909. hipTexRefSetFlags.restype = hipError_t
  3910. hipTexRefSetFlags.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.c_uint32]
  3911. except AttributeError:
  3912. pass
  3913. try:
  3914. hipTexRefSetFormat = _libraries['libamdhip64.so'].hipTexRefSetFormat
  3915. hipTexRefSetFormat.restype = hipError_t
  3916. hipTexRefSetFormat.argtypes = [ctypes.POINTER(struct_textureReference), hipArray_Format, ctypes.c_int32]
  3917. except AttributeError:
  3918. pass
  3919. try:
  3920. hipBindTexture = _libraries['libamdhip64.so'].hipBindTexture
  3921. hipBindTexture.restype = hipError_t
  3922. hipBindTexture.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_textureReference), ctypes.POINTER(None), ctypes.POINTER(struct_hipChannelFormatDesc), size_t]
  3923. except AttributeError:
  3924. pass
  3925. try:
  3926. hipBindTexture2D = _libraries['libamdhip64.so'].hipBindTexture2D
  3927. hipBindTexture2D.restype = hipError_t
  3928. hipBindTexture2D.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_textureReference), ctypes.POINTER(None), ctypes.POINTER(struct_hipChannelFormatDesc), size_t, size_t, size_t]
  3929. except AttributeError:
  3930. pass
  3931. try:
  3932. hipBindTextureToArray = _libraries['libamdhip64.so'].hipBindTextureToArray
  3933. hipBindTextureToArray.restype = hipError_t
  3934. hipBindTextureToArray.argtypes = [ctypes.POINTER(struct_textureReference), hipArray_const_t, ctypes.POINTER(struct_hipChannelFormatDesc)]
  3935. except AttributeError:
  3936. pass
  3937. try:
  3938. hipGetTextureAlignmentOffset = _libraries['libamdhip64.so'].hipGetTextureAlignmentOffset
  3939. hipGetTextureAlignmentOffset.restype = hipError_t
  3940. hipGetTextureAlignmentOffset.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_textureReference)]
  3941. except AttributeError:
  3942. pass
  3943. try:
  3944. hipUnbindTexture = _libraries['libamdhip64.so'].hipUnbindTexture
  3945. hipUnbindTexture.restype = hipError_t
  3946. hipUnbindTexture.argtypes = [ctypes.POINTER(struct_textureReference)]
  3947. except AttributeError:
  3948. pass
  3949. try:
  3950. hipTexRefGetAddress = _libraries['libamdhip64.so'].hipTexRefGetAddress
  3951. hipTexRefGetAddress.restype = hipError_t
  3952. hipTexRefGetAddress.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(struct_textureReference)]
  3953. except AttributeError:
  3954. pass
  3955. try:
  3956. hipTexRefGetAddressMode = _libraries['libamdhip64.so'].hipTexRefGetAddressMode
  3957. hipTexRefGetAddressMode.restype = hipError_t
  3958. hipTexRefGetAddressMode.argtypes = [ctypes.POINTER(hipTextureAddressMode), ctypes.POINTER(struct_textureReference), ctypes.c_int32]
  3959. except AttributeError:
  3960. pass
  3961. try:
  3962. hipTexRefGetFilterMode = _libraries['libamdhip64.so'].hipTexRefGetFilterMode
  3963. hipTexRefGetFilterMode.restype = hipError_t
  3964. hipTexRefGetFilterMode.argtypes = [ctypes.POINTER(hipTextureFilterMode), ctypes.POINTER(struct_textureReference)]
  3965. except AttributeError:
  3966. pass
  3967. try:
  3968. hipTexRefGetFlags = _libraries['libamdhip64.so'].hipTexRefGetFlags
  3969. hipTexRefGetFlags.restype = hipError_t
  3970. hipTexRefGetFlags.argtypes = [ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(struct_textureReference)]
  3971. except AttributeError:
  3972. pass
  3973. try:
  3974. hipTexRefGetFormat = _libraries['libamdhip64.so'].hipTexRefGetFormat
  3975. hipTexRefGetFormat.restype = hipError_t
  3976. hipTexRefGetFormat.argtypes = [ctypes.POINTER(hipArray_Format), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(struct_textureReference)]
  3977. except AttributeError:
  3978. pass
  3979. try:
  3980. hipTexRefGetMaxAnisotropy = _libraries['libamdhip64.so'].hipTexRefGetMaxAnisotropy
  3981. hipTexRefGetMaxAnisotropy.restype = hipError_t
  3982. hipTexRefGetMaxAnisotropy.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(struct_textureReference)]
  3983. except AttributeError:
  3984. pass
  3985. try:
  3986. hipTexRefGetMipmapFilterMode = _libraries['libamdhip64.so'].hipTexRefGetMipmapFilterMode
  3987. hipTexRefGetMipmapFilterMode.restype = hipError_t
  3988. hipTexRefGetMipmapFilterMode.argtypes = [ctypes.POINTER(hipTextureFilterMode), ctypes.POINTER(struct_textureReference)]
  3989. except AttributeError:
  3990. pass
  3991. try:
  3992. hipTexRefGetMipmapLevelBias = _libraries['libamdhip64.so'].hipTexRefGetMipmapLevelBias
  3993. hipTexRefGetMipmapLevelBias.restype = hipError_t
  3994. hipTexRefGetMipmapLevelBias.argtypes = [ctypes.POINTER(ctypes.c_float), ctypes.POINTER(struct_textureReference)]
  3995. except AttributeError:
  3996. pass
  3997. try:
  3998. hipTexRefGetMipmapLevelClamp = _libraries['libamdhip64.so'].hipTexRefGetMipmapLevelClamp
  3999. hipTexRefGetMipmapLevelClamp.restype = hipError_t
  4000. hipTexRefGetMipmapLevelClamp.argtypes = [ctypes.POINTER(ctypes.c_float), ctypes.POINTER(ctypes.c_float), ctypes.POINTER(struct_textureReference)]
  4001. except AttributeError:
  4002. pass
  4003. try:
  4004. hipTexRefGetMipMappedArray = _libraries['FIXME_STUB'].hipTexRefGetMipMappedArray
  4005. hipTexRefGetMipMappedArray.restype = hipError_t
  4006. hipTexRefGetMipMappedArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipMipmappedArray)), ctypes.POINTER(struct_textureReference)]
  4007. except AttributeError:
  4008. pass
  4009. try:
  4010. hipTexRefSetAddress = _libraries['libamdhip64.so'].hipTexRefSetAddress
  4011. hipTexRefSetAddress.restype = hipError_t
  4012. hipTexRefSetAddress.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_textureReference), hipDeviceptr_t, size_t]
  4013. except AttributeError:
  4014. pass
  4015. try:
  4016. hipTexRefSetAddress2D = _libraries['libamdhip64.so'].hipTexRefSetAddress2D
  4017. hipTexRefSetAddress2D.restype = hipError_t
  4018. hipTexRefSetAddress2D.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.POINTER(struct_HIP_ARRAY_DESCRIPTOR), hipDeviceptr_t, size_t]
  4019. except AttributeError:
  4020. pass
  4021. try:
  4022. hipTexRefSetMaxAnisotropy = _libraries['libamdhip64.so'].hipTexRefSetMaxAnisotropy
  4023. hipTexRefSetMaxAnisotropy.restype = hipError_t
  4024. hipTexRefSetMaxAnisotropy.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.c_uint32]
  4025. except AttributeError:
  4026. pass
  4027. try:
  4028. hipTexRefSetBorderColor = _libraries['libamdhip64.so'].hipTexRefSetBorderColor
  4029. hipTexRefSetBorderColor.restype = hipError_t
  4030. hipTexRefSetBorderColor.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.POINTER(ctypes.c_float)]
  4031. except AttributeError:
  4032. pass
  4033. try:
  4034. hipTexRefSetMipmapFilterMode = _libraries['libamdhip64.so'].hipTexRefSetMipmapFilterMode
  4035. hipTexRefSetMipmapFilterMode.restype = hipError_t
  4036. hipTexRefSetMipmapFilterMode.argtypes = [ctypes.POINTER(struct_textureReference), hipTextureFilterMode]
  4037. except AttributeError:
  4038. pass
  4039. try:
  4040. hipTexRefSetMipmapLevelBias = _libraries['libamdhip64.so'].hipTexRefSetMipmapLevelBias
  4041. hipTexRefSetMipmapLevelBias.restype = hipError_t
  4042. hipTexRefSetMipmapLevelBias.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.c_float]
  4043. except AttributeError:
  4044. pass
  4045. try:
  4046. hipTexRefSetMipmapLevelClamp = _libraries['libamdhip64.so'].hipTexRefSetMipmapLevelClamp
  4047. hipTexRefSetMipmapLevelClamp.restype = hipError_t
  4048. hipTexRefSetMipmapLevelClamp.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.c_float, ctypes.c_float]
  4049. except AttributeError:
  4050. pass
  4051. try:
  4052. hipTexRefSetMipmappedArray = _libraries['libamdhip64.so'].hipTexRefSetMipmappedArray
  4053. hipTexRefSetMipmappedArray.restype = hipError_t
  4054. hipTexRefSetMipmappedArray.argtypes = [ctypes.POINTER(struct_textureReference), ctypes.POINTER(struct_hipMipmappedArray), ctypes.c_uint32]
  4055. except AttributeError:
  4056. pass
  4057. try:
  4058. hipApiName = _libraries['libamdhip64.so'].hipApiName
  4059. hipApiName.restype = ctypes.POINTER(ctypes.c_char)
  4060. hipApiName.argtypes = [uint32_t]
  4061. except AttributeError:
  4062. pass
  4063. try:
  4064. hipKernelNameRef = _libraries['libamdhip64.so'].hipKernelNameRef
  4065. hipKernelNameRef.restype = ctypes.POINTER(ctypes.c_char)
  4066. hipKernelNameRef.argtypes = [hipFunction_t]
  4067. except AttributeError:
  4068. pass
  4069. try:
  4070. hipKernelNameRefByPtr = _libraries['libamdhip64.so'].hipKernelNameRefByPtr
  4071. hipKernelNameRefByPtr.restype = ctypes.POINTER(ctypes.c_char)
  4072. hipKernelNameRefByPtr.argtypes = [ctypes.POINTER(None), hipStream_t]
  4073. except AttributeError:
  4074. pass
  4075. try:
  4076. hipGetStreamDeviceId = _libraries['libamdhip64.so'].hipGetStreamDeviceId
  4077. hipGetStreamDeviceId.restype = ctypes.c_int32
  4078. hipGetStreamDeviceId.argtypes = [hipStream_t]
  4079. except AttributeError:
  4080. pass
  4081. try:
  4082. hipStreamBeginCapture = _libraries['libamdhip64.so'].hipStreamBeginCapture
  4083. hipStreamBeginCapture.restype = hipError_t
  4084. hipStreamBeginCapture.argtypes = [hipStream_t, hipStreamCaptureMode]
  4085. except AttributeError:
  4086. pass
  4087. try:
  4088. hipStreamEndCapture = _libraries['libamdhip64.so'].hipStreamEndCapture
  4089. hipStreamEndCapture.restype = hipError_t
  4090. hipStreamEndCapture.argtypes = [hipStream_t, ctypes.POINTER(ctypes.POINTER(struct_ihipGraph))]
  4091. except AttributeError:
  4092. pass
  4093. try:
  4094. hipStreamGetCaptureInfo = _libraries['libamdhip64.so'].hipStreamGetCaptureInfo
  4095. hipStreamGetCaptureInfo.restype = hipError_t
  4096. hipStreamGetCaptureInfo.argtypes = [hipStream_t, ctypes.POINTER(hipStreamCaptureStatus), ctypes.POINTER(ctypes.c_uint64)]
  4097. except AttributeError:
  4098. pass
  4099. try:
  4100. hipStreamGetCaptureInfo_v2 = _libraries['libamdhip64.so'].hipStreamGetCaptureInfo_v2
  4101. hipStreamGetCaptureInfo_v2.restype = hipError_t
  4102. hipStreamGetCaptureInfo_v2.argtypes = [hipStream_t, ctypes.POINTER(hipStreamCaptureStatus), ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(ctypes.POINTER(struct_ihipGraph)), ctypes.POINTER(ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode))), ctypes.POINTER(ctypes.c_uint64)]
  4103. except AttributeError:
  4104. pass
  4105. try:
  4106. hipStreamIsCapturing = _libraries['libamdhip64.so'].hipStreamIsCapturing
  4107. hipStreamIsCapturing.restype = hipError_t
  4108. hipStreamIsCapturing.argtypes = [hipStream_t, ctypes.POINTER(hipStreamCaptureStatus)]
  4109. except AttributeError:
  4110. pass
  4111. try:
  4112. hipStreamUpdateCaptureDependencies = _libraries['libamdhip64.so'].hipStreamUpdateCaptureDependencies
  4113. hipStreamUpdateCaptureDependencies.restype = hipError_t
  4114. hipStreamUpdateCaptureDependencies.argtypes = [hipStream_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.c_uint32]
  4115. except AttributeError:
  4116. pass
  4117. try:
  4118. hipThreadExchangeStreamCaptureMode = _libraries['libamdhip64.so'].hipThreadExchangeStreamCaptureMode
  4119. hipThreadExchangeStreamCaptureMode.restype = hipError_t
  4120. hipThreadExchangeStreamCaptureMode.argtypes = [ctypes.POINTER(hipStreamCaptureMode)]
  4121. except AttributeError:
  4122. pass
  4123. try:
  4124. hipGraphCreate = _libraries['libamdhip64.so'].hipGraphCreate
  4125. hipGraphCreate.restype = hipError_t
  4126. hipGraphCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipGraph)), ctypes.c_uint32]
  4127. except AttributeError:
  4128. pass
  4129. try:
  4130. hipGraphDestroy = _libraries['libamdhip64.so'].hipGraphDestroy
  4131. hipGraphDestroy.restype = hipError_t
  4132. hipGraphDestroy.argtypes = [hipGraph_t]
  4133. except AttributeError:
  4134. pass
  4135. try:
  4136. hipGraphAddDependencies = _libraries['libamdhip64.so'].hipGraphAddDependencies
  4137. hipGraphAddDependencies.restype = hipError_t
  4138. hipGraphAddDependencies.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t]
  4139. except AttributeError:
  4140. pass
  4141. try:
  4142. hipGraphRemoveDependencies = _libraries['libamdhip64.so'].hipGraphRemoveDependencies
  4143. hipGraphRemoveDependencies.restype = hipError_t
  4144. hipGraphRemoveDependencies.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t]
  4145. except AttributeError:
  4146. pass
  4147. try:
  4148. hipGraphGetEdges = _libraries['libamdhip64.so'].hipGraphGetEdges
  4149. hipGraphGetEdges.restype = hipError_t
  4150. hipGraphGetEdges.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_uint64)]
  4151. except AttributeError:
  4152. pass
  4153. try:
  4154. hipGraphGetNodes = _libraries['libamdhip64.so'].hipGraphGetNodes
  4155. hipGraphGetNodes.restype = hipError_t
  4156. hipGraphGetNodes.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_uint64)]
  4157. except AttributeError:
  4158. pass
  4159. try:
  4160. hipGraphGetRootNodes = _libraries['libamdhip64.so'].hipGraphGetRootNodes
  4161. hipGraphGetRootNodes.restype = hipError_t
  4162. hipGraphGetRootNodes.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_uint64)]
  4163. except AttributeError:
  4164. pass
  4165. try:
  4166. hipGraphNodeGetDependencies = _libraries['libamdhip64.so'].hipGraphNodeGetDependencies
  4167. hipGraphNodeGetDependencies.restype = hipError_t
  4168. hipGraphNodeGetDependencies.argtypes = [hipGraphNode_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_uint64)]
  4169. except AttributeError:
  4170. pass
  4171. try:
  4172. hipGraphNodeGetDependentNodes = _libraries['libamdhip64.so'].hipGraphNodeGetDependentNodes
  4173. hipGraphNodeGetDependentNodes.restype = hipError_t
  4174. hipGraphNodeGetDependentNodes.argtypes = [hipGraphNode_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_uint64)]
  4175. except AttributeError:
  4176. pass
  4177. try:
  4178. hipGraphNodeGetType = _libraries['libamdhip64.so'].hipGraphNodeGetType
  4179. hipGraphNodeGetType.restype = hipError_t
  4180. hipGraphNodeGetType.argtypes = [hipGraphNode_t, ctypes.POINTER(hipGraphNodeType)]
  4181. except AttributeError:
  4182. pass
  4183. try:
  4184. hipGraphDestroyNode = _libraries['libamdhip64.so'].hipGraphDestroyNode
  4185. hipGraphDestroyNode.restype = hipError_t
  4186. hipGraphDestroyNode.argtypes = [hipGraphNode_t]
  4187. except AttributeError:
  4188. pass
  4189. try:
  4190. hipGraphClone = _libraries['libamdhip64.so'].hipGraphClone
  4191. hipGraphClone.restype = hipError_t
  4192. hipGraphClone.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipGraph)), hipGraph_t]
  4193. except AttributeError:
  4194. pass
  4195. try:
  4196. hipGraphNodeFindInClone = _libraries['libamdhip64.so'].hipGraphNodeFindInClone
  4197. hipGraphNodeFindInClone.restype = hipError_t
  4198. hipGraphNodeFindInClone.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraphNode_t, hipGraph_t]
  4199. except AttributeError:
  4200. pass
  4201. try:
  4202. hipGraphInstantiate = _libraries['libamdhip64.so'].hipGraphInstantiate
  4203. hipGraphInstantiate.restype = hipError_t
  4204. hipGraphInstantiate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphExec)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(ctypes.c_char), size_t]
  4205. except AttributeError:
  4206. pass
  4207. try:
  4208. hipGraphInstantiateWithFlags = _libraries['libamdhip64.so'].hipGraphInstantiateWithFlags
  4209. hipGraphInstantiateWithFlags.restype = hipError_t
  4210. hipGraphInstantiateWithFlags.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphExec)), hipGraph_t, ctypes.c_uint64]
  4211. except AttributeError:
  4212. pass
  4213. try:
  4214. hipGraphLaunch = _libraries['libamdhip64.so'].hipGraphLaunch
  4215. hipGraphLaunch.restype = hipError_t
  4216. hipGraphLaunch.argtypes = [hipGraphExec_t, hipStream_t]
  4217. except AttributeError:
  4218. pass
  4219. try:
  4220. hipGraphUpload = _libraries['libamdhip64.so'].hipGraphUpload
  4221. hipGraphUpload.restype = hipError_t
  4222. hipGraphUpload.argtypes = [hipGraphExec_t, hipStream_t]
  4223. except AttributeError:
  4224. pass
  4225. try:
  4226. hipGraphExecDestroy = _libraries['libamdhip64.so'].hipGraphExecDestroy
  4227. hipGraphExecDestroy.restype = hipError_t
  4228. hipGraphExecDestroy.argtypes = [hipGraphExec_t]
  4229. except AttributeError:
  4230. pass
  4231. try:
  4232. hipGraphExecUpdate = _libraries['libamdhip64.so'].hipGraphExecUpdate
  4233. hipGraphExecUpdate.restype = hipError_t
  4234. hipGraphExecUpdate.argtypes = [hipGraphExec_t, hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), ctypes.POINTER(hipGraphExecUpdateResult)]
  4235. except AttributeError:
  4236. pass
  4237. try:
  4238. hipGraphAddKernelNode = _libraries['libamdhip64.so'].hipGraphAddKernelNode
  4239. hipGraphAddKernelNode.restype = hipError_t
  4240. hipGraphAddKernelNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_hipKernelNodeParams)]
  4241. except AttributeError:
  4242. pass
  4243. try:
  4244. hipGraphKernelNodeGetParams = _libraries['libamdhip64.so'].hipGraphKernelNodeGetParams
  4245. hipGraphKernelNodeGetParams.restype = hipError_t
  4246. hipGraphKernelNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipKernelNodeParams)]
  4247. except AttributeError:
  4248. pass
  4249. try:
  4250. hipGraphKernelNodeSetParams = _libraries['libamdhip64.so'].hipGraphKernelNodeSetParams
  4251. hipGraphKernelNodeSetParams.restype = hipError_t
  4252. hipGraphKernelNodeSetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipKernelNodeParams)]
  4253. except AttributeError:
  4254. pass
  4255. try:
  4256. hipGraphExecKernelNodeSetParams = _libraries['libamdhip64.so'].hipGraphExecKernelNodeSetParams
  4257. hipGraphExecKernelNodeSetParams.restype = hipError_t
  4258. hipGraphExecKernelNodeSetParams.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(struct_hipKernelNodeParams)]
  4259. except AttributeError:
  4260. pass
  4261. try:
  4262. hipDrvGraphAddMemcpyNode = _libraries['FIXME_STUB'].hipDrvGraphAddMemcpyNode
  4263. hipDrvGraphAddMemcpyNode.restype = hipError_t
  4264. hipDrvGraphAddMemcpyNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_HIP_MEMCPY3D), hipCtx_t]
  4265. except AttributeError:
  4266. pass
  4267. try:
  4268. hipGraphAddMemcpyNode = _libraries['libamdhip64.so'].hipGraphAddMemcpyNode
  4269. hipGraphAddMemcpyNode.restype = hipError_t
  4270. hipGraphAddMemcpyNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_hipMemcpy3DParms)]
  4271. except AttributeError:
  4272. pass
  4273. try:
  4274. hipGraphMemcpyNodeGetParams = _libraries['libamdhip64.so'].hipGraphMemcpyNodeGetParams
  4275. hipGraphMemcpyNodeGetParams.restype = hipError_t
  4276. hipGraphMemcpyNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipMemcpy3DParms)]
  4277. except AttributeError:
  4278. pass
  4279. try:
  4280. hipGraphMemcpyNodeSetParams = _libraries['libamdhip64.so'].hipGraphMemcpyNodeSetParams
  4281. hipGraphMemcpyNodeSetParams.restype = hipError_t
  4282. hipGraphMemcpyNodeSetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipMemcpy3DParms)]
  4283. except AttributeError:
  4284. pass
  4285. try:
  4286. hipGraphKernelNodeSetAttribute = _libraries['libamdhip64.so'].hipGraphKernelNodeSetAttribute
  4287. hipGraphKernelNodeSetAttribute.restype = hipError_t
  4288. hipGraphKernelNodeSetAttribute.argtypes = [hipGraphNode_t, hipKernelNodeAttrID, ctypes.POINTER(union_hipKernelNodeAttrValue)]
  4289. except AttributeError:
  4290. pass
  4291. try:
  4292. hipGraphKernelNodeGetAttribute = _libraries['libamdhip64.so'].hipGraphKernelNodeGetAttribute
  4293. hipGraphKernelNodeGetAttribute.restype = hipError_t
  4294. hipGraphKernelNodeGetAttribute.argtypes = [hipGraphNode_t, hipKernelNodeAttrID, ctypes.POINTER(union_hipKernelNodeAttrValue)]
  4295. except AttributeError:
  4296. pass
  4297. try:
  4298. hipGraphExecMemcpyNodeSetParams = _libraries['libamdhip64.so'].hipGraphExecMemcpyNodeSetParams
  4299. hipGraphExecMemcpyNodeSetParams.restype = hipError_t
  4300. hipGraphExecMemcpyNodeSetParams.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(struct_hipMemcpy3DParms)]
  4301. except AttributeError:
  4302. pass
  4303. try:
  4304. hipGraphAddMemcpyNode1D = _libraries['libamdhip64.so'].hipGraphAddMemcpyNode1D
  4305. hipGraphAddMemcpyNode1D.restype = hipError_t
  4306. hipGraphAddMemcpyNode1D.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind]
  4307. except AttributeError:
  4308. pass
  4309. try:
  4310. hipGraphMemcpyNodeSetParams1D = _libraries['libamdhip64.so'].hipGraphMemcpyNodeSetParams1D
  4311. hipGraphMemcpyNodeSetParams1D.restype = hipError_t
  4312. hipGraphMemcpyNodeSetParams1D.argtypes = [hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind]
  4313. except AttributeError:
  4314. pass
  4315. try:
  4316. hipGraphExecMemcpyNodeSetParams1D = _libraries['libamdhip64.so'].hipGraphExecMemcpyNodeSetParams1D
  4317. hipGraphExecMemcpyNodeSetParams1D.restype = hipError_t
  4318. hipGraphExecMemcpyNodeSetParams1D.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, hipMemcpyKind]
  4319. except AttributeError:
  4320. pass
  4321. try:
  4322. hipGraphAddMemcpyNodeFromSymbol = _libraries['libamdhip64.so'].hipGraphAddMemcpyNodeFromSymbol
  4323. hipGraphAddMemcpyNodeFromSymbol.restype = hipError_t
  4324. hipGraphAddMemcpyNodeFromSymbol.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4325. except AttributeError:
  4326. pass
  4327. try:
  4328. hipGraphMemcpyNodeSetParamsFromSymbol = _libraries['libamdhip64.so'].hipGraphMemcpyNodeSetParamsFromSymbol
  4329. hipGraphMemcpyNodeSetParamsFromSymbol.restype = hipError_t
  4330. hipGraphMemcpyNodeSetParamsFromSymbol.argtypes = [hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4331. except AttributeError:
  4332. pass
  4333. try:
  4334. hipGraphExecMemcpyNodeSetParamsFromSymbol = _libraries['libamdhip64.so'].hipGraphExecMemcpyNodeSetParamsFromSymbol
  4335. hipGraphExecMemcpyNodeSetParamsFromSymbol.restype = hipError_t
  4336. hipGraphExecMemcpyNodeSetParamsFromSymbol.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4337. except AttributeError:
  4338. pass
  4339. try:
  4340. hipGraphAddMemcpyNodeToSymbol = _libraries['libamdhip64.so'].hipGraphAddMemcpyNodeToSymbol
  4341. hipGraphAddMemcpyNodeToSymbol.restype = hipError_t
  4342. hipGraphAddMemcpyNodeToSymbol.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4343. except AttributeError:
  4344. pass
  4345. try:
  4346. hipGraphMemcpyNodeSetParamsToSymbol = _libraries['libamdhip64.so'].hipGraphMemcpyNodeSetParamsToSymbol
  4347. hipGraphMemcpyNodeSetParamsToSymbol.restype = hipError_t
  4348. hipGraphMemcpyNodeSetParamsToSymbol.argtypes = [hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4349. except AttributeError:
  4350. pass
  4351. try:
  4352. hipGraphExecMemcpyNodeSetParamsToSymbol = _libraries['libamdhip64.so'].hipGraphExecMemcpyNodeSetParamsToSymbol
  4353. hipGraphExecMemcpyNodeSetParamsToSymbol.restype = hipError_t
  4354. hipGraphExecMemcpyNodeSetParamsToSymbol.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(None), ctypes.POINTER(None), size_t, size_t, hipMemcpyKind]
  4355. except AttributeError:
  4356. pass
  4357. try:
  4358. hipGraphAddMemsetNode = _libraries['libamdhip64.so'].hipGraphAddMemsetNode
  4359. hipGraphAddMemsetNode.restype = hipError_t
  4360. hipGraphAddMemsetNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_hipMemsetParams)]
  4361. except AttributeError:
  4362. pass
  4363. try:
  4364. hipGraphMemsetNodeGetParams = _libraries['libamdhip64.so'].hipGraphMemsetNodeGetParams
  4365. hipGraphMemsetNodeGetParams.restype = hipError_t
  4366. hipGraphMemsetNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipMemsetParams)]
  4367. except AttributeError:
  4368. pass
  4369. try:
  4370. hipGraphMemsetNodeSetParams = _libraries['libamdhip64.so'].hipGraphMemsetNodeSetParams
  4371. hipGraphMemsetNodeSetParams.restype = hipError_t
  4372. hipGraphMemsetNodeSetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipMemsetParams)]
  4373. except AttributeError:
  4374. pass
  4375. try:
  4376. hipGraphExecMemsetNodeSetParams = _libraries['libamdhip64.so'].hipGraphExecMemsetNodeSetParams
  4377. hipGraphExecMemsetNodeSetParams.restype = hipError_t
  4378. hipGraphExecMemsetNodeSetParams.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(struct_hipMemsetParams)]
  4379. except AttributeError:
  4380. pass
  4381. try:
  4382. hipGraphAddHostNode = _libraries['libamdhip64.so'].hipGraphAddHostNode
  4383. hipGraphAddHostNode.restype = hipError_t
  4384. hipGraphAddHostNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_hipHostNodeParams)]
  4385. except AttributeError:
  4386. pass
  4387. try:
  4388. hipGraphHostNodeGetParams = _libraries['libamdhip64.so'].hipGraphHostNodeGetParams
  4389. hipGraphHostNodeGetParams.restype = hipError_t
  4390. hipGraphHostNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipHostNodeParams)]
  4391. except AttributeError:
  4392. pass
  4393. try:
  4394. hipGraphHostNodeSetParams = _libraries['libamdhip64.so'].hipGraphHostNodeSetParams
  4395. hipGraphHostNodeSetParams.restype = hipError_t
  4396. hipGraphHostNodeSetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipHostNodeParams)]
  4397. except AttributeError:
  4398. pass
  4399. try:
  4400. hipGraphExecHostNodeSetParams = _libraries['libamdhip64.so'].hipGraphExecHostNodeSetParams
  4401. hipGraphExecHostNodeSetParams.restype = hipError_t
  4402. hipGraphExecHostNodeSetParams.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(struct_hipHostNodeParams)]
  4403. except AttributeError:
  4404. pass
  4405. try:
  4406. hipGraphAddChildGraphNode = _libraries['libamdhip64.so'].hipGraphAddChildGraphNode
  4407. hipGraphAddChildGraphNode.restype = hipError_t
  4408. hipGraphAddChildGraphNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, hipGraph_t]
  4409. except AttributeError:
  4410. pass
  4411. try:
  4412. hipGraphChildGraphNodeGetGraph = _libraries['libamdhip64.so'].hipGraphChildGraphNodeGetGraph
  4413. hipGraphChildGraphNodeGetGraph.restype = hipError_t
  4414. hipGraphChildGraphNodeGetGraph.argtypes = [hipGraphNode_t, ctypes.POINTER(ctypes.POINTER(struct_ihipGraph))]
  4415. except AttributeError:
  4416. pass
  4417. try:
  4418. hipGraphExecChildGraphNodeSetParams = _libraries['libamdhip64.so'].hipGraphExecChildGraphNodeSetParams
  4419. hipGraphExecChildGraphNodeSetParams.restype = hipError_t
  4420. hipGraphExecChildGraphNodeSetParams.argtypes = [hipGraphExec_t, hipGraphNode_t, hipGraph_t]
  4421. except AttributeError:
  4422. pass
  4423. try:
  4424. hipGraphAddEmptyNode = _libraries['libamdhip64.so'].hipGraphAddEmptyNode
  4425. hipGraphAddEmptyNode.restype = hipError_t
  4426. hipGraphAddEmptyNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t]
  4427. except AttributeError:
  4428. pass
  4429. try:
  4430. hipGraphAddEventRecordNode = _libraries['libamdhip64.so'].hipGraphAddEventRecordNode
  4431. hipGraphAddEventRecordNode.restype = hipError_t
  4432. hipGraphAddEventRecordNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, hipEvent_t]
  4433. except AttributeError:
  4434. pass
  4435. try:
  4436. hipGraphEventRecordNodeGetEvent = _libraries['libamdhip64.so'].hipGraphEventRecordNodeGetEvent
  4437. hipGraphEventRecordNodeGetEvent.restype = hipError_t
  4438. hipGraphEventRecordNodeGetEvent.argtypes = [hipGraphNode_t, ctypes.POINTER(ctypes.POINTER(struct_ihipEvent_t))]
  4439. except AttributeError:
  4440. pass
  4441. try:
  4442. hipGraphEventRecordNodeSetEvent = _libraries['libamdhip64.so'].hipGraphEventRecordNodeSetEvent
  4443. hipGraphEventRecordNodeSetEvent.restype = hipError_t
  4444. hipGraphEventRecordNodeSetEvent.argtypes = [hipGraphNode_t, hipEvent_t]
  4445. except AttributeError:
  4446. pass
  4447. try:
  4448. hipGraphExecEventRecordNodeSetEvent = _libraries['libamdhip64.so'].hipGraphExecEventRecordNodeSetEvent
  4449. hipGraphExecEventRecordNodeSetEvent.restype = hipError_t
  4450. hipGraphExecEventRecordNodeSetEvent.argtypes = [hipGraphExec_t, hipGraphNode_t, hipEvent_t]
  4451. except AttributeError:
  4452. pass
  4453. try:
  4454. hipGraphAddEventWaitNode = _libraries['libamdhip64.so'].hipGraphAddEventWaitNode
  4455. hipGraphAddEventWaitNode.restype = hipError_t
  4456. hipGraphAddEventWaitNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, hipEvent_t]
  4457. except AttributeError:
  4458. pass
  4459. try:
  4460. hipGraphEventWaitNodeGetEvent = _libraries['libamdhip64.so'].hipGraphEventWaitNodeGetEvent
  4461. hipGraphEventWaitNodeGetEvent.restype = hipError_t
  4462. hipGraphEventWaitNodeGetEvent.argtypes = [hipGraphNode_t, ctypes.POINTER(ctypes.POINTER(struct_ihipEvent_t))]
  4463. except AttributeError:
  4464. pass
  4465. try:
  4466. hipGraphEventWaitNodeSetEvent = _libraries['libamdhip64.so'].hipGraphEventWaitNodeSetEvent
  4467. hipGraphEventWaitNodeSetEvent.restype = hipError_t
  4468. hipGraphEventWaitNodeSetEvent.argtypes = [hipGraphNode_t, hipEvent_t]
  4469. except AttributeError:
  4470. pass
  4471. try:
  4472. hipGraphExecEventWaitNodeSetEvent = _libraries['libamdhip64.so'].hipGraphExecEventWaitNodeSetEvent
  4473. hipGraphExecEventWaitNodeSetEvent.restype = hipError_t
  4474. hipGraphExecEventWaitNodeSetEvent.argtypes = [hipGraphExec_t, hipGraphNode_t, hipEvent_t]
  4475. except AttributeError:
  4476. pass
  4477. try:
  4478. hipGraphAddMemAllocNode = _libraries['libamdhip64.so'].hipGraphAddMemAllocNode
  4479. hipGraphAddMemAllocNode.restype = hipError_t
  4480. hipGraphAddMemAllocNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(struct_hipMemAllocNodeParams)]
  4481. except AttributeError:
  4482. pass
  4483. try:
  4484. hipGraphMemAllocNodeGetParams = _libraries['libamdhip64.so'].hipGraphMemAllocNodeGetParams
  4485. hipGraphMemAllocNodeGetParams.restype = hipError_t
  4486. hipGraphMemAllocNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(struct_hipMemAllocNodeParams)]
  4487. except AttributeError:
  4488. pass
  4489. try:
  4490. hipGraphAddMemFreeNode = _libraries['libamdhip64.so'].hipGraphAddMemFreeNode
  4491. hipGraphAddMemFreeNode.restype = hipError_t
  4492. hipGraphAddMemFreeNode.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), hipGraph_t, ctypes.POINTER(ctypes.POINTER(struct_hipGraphNode)), size_t, ctypes.POINTER(None)]
  4493. except AttributeError:
  4494. pass
  4495. try:
  4496. hipGraphMemFreeNodeGetParams = _libraries['libamdhip64.so'].hipGraphMemFreeNodeGetParams
  4497. hipGraphMemFreeNodeGetParams.restype = hipError_t
  4498. hipGraphMemFreeNodeGetParams.argtypes = [hipGraphNode_t, ctypes.POINTER(None)]
  4499. except AttributeError:
  4500. pass
  4501. try:
  4502. hipDeviceGetGraphMemAttribute = _libraries['libamdhip64.so'].hipDeviceGetGraphMemAttribute
  4503. hipDeviceGetGraphMemAttribute.restype = hipError_t
  4504. hipDeviceGetGraphMemAttribute.argtypes = [ctypes.c_int32, hipGraphMemAttributeType, ctypes.POINTER(None)]
  4505. except AttributeError:
  4506. pass
  4507. try:
  4508. hipDeviceSetGraphMemAttribute = _libraries['libamdhip64.so'].hipDeviceSetGraphMemAttribute
  4509. hipDeviceSetGraphMemAttribute.restype = hipError_t
  4510. hipDeviceSetGraphMemAttribute.argtypes = [ctypes.c_int32, hipGraphMemAttributeType, ctypes.POINTER(None)]
  4511. except AttributeError:
  4512. pass
  4513. try:
  4514. hipDeviceGraphMemTrim = _libraries['libamdhip64.so'].hipDeviceGraphMemTrim
  4515. hipDeviceGraphMemTrim.restype = hipError_t
  4516. hipDeviceGraphMemTrim.argtypes = [ctypes.c_int32]
  4517. except AttributeError:
  4518. pass
  4519. try:
  4520. hipUserObjectCreate = _libraries['libamdhip64.so'].hipUserObjectCreate
  4521. hipUserObjectCreate.restype = hipError_t
  4522. hipUserObjectCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipUserObject)), ctypes.POINTER(None), hipHostFn_t, ctypes.c_uint32, ctypes.c_uint32]
  4523. except AttributeError:
  4524. pass
  4525. try:
  4526. hipUserObjectRelease = _libraries['libamdhip64.so'].hipUserObjectRelease
  4527. hipUserObjectRelease.restype = hipError_t
  4528. hipUserObjectRelease.argtypes = [hipUserObject_t, ctypes.c_uint32]
  4529. except AttributeError:
  4530. pass
  4531. try:
  4532. hipUserObjectRetain = _libraries['libamdhip64.so'].hipUserObjectRetain
  4533. hipUserObjectRetain.restype = hipError_t
  4534. hipUserObjectRetain.argtypes = [hipUserObject_t, ctypes.c_uint32]
  4535. except AttributeError:
  4536. pass
  4537. try:
  4538. hipGraphRetainUserObject = _libraries['libamdhip64.so'].hipGraphRetainUserObject
  4539. hipGraphRetainUserObject.restype = hipError_t
  4540. hipGraphRetainUserObject.argtypes = [hipGraph_t, hipUserObject_t, ctypes.c_uint32, ctypes.c_uint32]
  4541. except AttributeError:
  4542. pass
  4543. try:
  4544. hipGraphReleaseUserObject = _libraries['libamdhip64.so'].hipGraphReleaseUserObject
  4545. hipGraphReleaseUserObject.restype = hipError_t
  4546. hipGraphReleaseUserObject.argtypes = [hipGraph_t, hipUserObject_t, ctypes.c_uint32]
  4547. except AttributeError:
  4548. pass
  4549. try:
  4550. hipGraphDebugDotPrint = _libraries['libamdhip64.so'].hipGraphDebugDotPrint
  4551. hipGraphDebugDotPrint.restype = hipError_t
  4552. hipGraphDebugDotPrint.argtypes = [hipGraph_t, ctypes.POINTER(ctypes.c_char), ctypes.c_uint32]
  4553. except AttributeError:
  4554. pass
  4555. try:
  4556. hipGraphKernelNodeCopyAttributes = _libraries['libamdhip64.so'].hipGraphKernelNodeCopyAttributes
  4557. hipGraphKernelNodeCopyAttributes.restype = hipError_t
  4558. hipGraphKernelNodeCopyAttributes.argtypes = [hipGraphNode_t, hipGraphNode_t]
  4559. except AttributeError:
  4560. pass
  4561. try:
  4562. hipGraphNodeSetEnabled = _libraries['libamdhip64.so'].hipGraphNodeSetEnabled
  4563. hipGraphNodeSetEnabled.restype = hipError_t
  4564. hipGraphNodeSetEnabled.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.c_uint32]
  4565. except AttributeError:
  4566. pass
  4567. try:
  4568. hipGraphNodeGetEnabled = _libraries['libamdhip64.so'].hipGraphNodeGetEnabled
  4569. hipGraphNodeGetEnabled.restype = hipError_t
  4570. hipGraphNodeGetEnabled.argtypes = [hipGraphExec_t, hipGraphNode_t, ctypes.POINTER(ctypes.c_uint32)]
  4571. except AttributeError:
  4572. pass
  4573. try:
  4574. hipMemAddressFree = _libraries['libamdhip64.so'].hipMemAddressFree
  4575. hipMemAddressFree.restype = hipError_t
  4576. hipMemAddressFree.argtypes = [ctypes.POINTER(None), size_t]
  4577. except AttributeError:
  4578. pass
  4579. try:
  4580. hipMemAddressReserve = _libraries['libamdhip64.so'].hipMemAddressReserve
  4581. hipMemAddressReserve.restype = hipError_t
  4582. hipMemAddressReserve.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), size_t, size_t, ctypes.POINTER(None), ctypes.c_uint64]
  4583. except AttributeError:
  4584. pass
  4585. try:
  4586. hipMemCreate = _libraries['libamdhip64.so'].hipMemCreate
  4587. hipMemCreate.restype = hipError_t
  4588. hipMemCreate.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemGenericAllocationHandle)), size_t, ctypes.POINTER(struct_hipMemAllocationProp), ctypes.c_uint64]
  4589. except AttributeError:
  4590. pass
  4591. try:
  4592. hipMemExportToShareableHandle = _libraries['libamdhip64.so'].hipMemExportToShareableHandle
  4593. hipMemExportToShareableHandle.restype = hipError_t
  4594. hipMemExportToShareableHandle.argtypes = [ctypes.POINTER(None), hipMemGenericAllocationHandle_t, hipMemAllocationHandleType, ctypes.c_uint64]
  4595. except AttributeError:
  4596. pass
  4597. try:
  4598. hipMemGetAccess = _libraries['libamdhip64.so'].hipMemGetAccess
  4599. hipMemGetAccess.restype = hipError_t
  4600. hipMemGetAccess.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_hipMemLocation), ctypes.POINTER(None)]
  4601. except AttributeError:
  4602. pass
  4603. try:
  4604. hipMemGetAllocationGranularity = _libraries['libamdhip64.so'].hipMemGetAllocationGranularity
  4605. hipMemGetAllocationGranularity.restype = hipError_t
  4606. hipMemGetAllocationGranularity.argtypes = [ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(struct_hipMemAllocationProp), hipMemAllocationGranularity_flags]
  4607. except AttributeError:
  4608. pass
  4609. try:
  4610. hipMemGetAllocationPropertiesFromHandle = _libraries['libamdhip64.so'].hipMemGetAllocationPropertiesFromHandle
  4611. hipMemGetAllocationPropertiesFromHandle.restype = hipError_t
  4612. hipMemGetAllocationPropertiesFromHandle.argtypes = [ctypes.POINTER(struct_hipMemAllocationProp), hipMemGenericAllocationHandle_t]
  4613. except AttributeError:
  4614. pass
  4615. try:
  4616. hipMemImportFromShareableHandle = _libraries['libamdhip64.so'].hipMemImportFromShareableHandle
  4617. hipMemImportFromShareableHandle.restype = hipError_t
  4618. hipMemImportFromShareableHandle.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemGenericAllocationHandle)), ctypes.POINTER(None), hipMemAllocationHandleType]
  4619. except AttributeError:
  4620. pass
  4621. try:
  4622. hipMemMap = _libraries['libamdhip64.so'].hipMemMap
  4623. hipMemMap.restype = hipError_t
  4624. hipMemMap.argtypes = [ctypes.POINTER(None), size_t, size_t, hipMemGenericAllocationHandle_t, ctypes.c_uint64]
  4625. except AttributeError:
  4626. pass
  4627. try:
  4628. hipMemMapArrayAsync = _libraries['libamdhip64.so'].hipMemMapArrayAsync
  4629. hipMemMapArrayAsync.restype = hipError_t
  4630. hipMemMapArrayAsync.argtypes = [ctypes.POINTER(struct_hipArrayMapInfo), ctypes.c_uint32, hipStream_t]
  4631. except AttributeError:
  4632. pass
  4633. try:
  4634. hipMemRelease = _libraries['libamdhip64.so'].hipMemRelease
  4635. hipMemRelease.restype = hipError_t
  4636. hipMemRelease.argtypes = [hipMemGenericAllocationHandle_t]
  4637. except AttributeError:
  4638. pass
  4639. try:
  4640. hipMemRetainAllocationHandle = _libraries['libamdhip64.so'].hipMemRetainAllocationHandle
  4641. hipMemRetainAllocationHandle.restype = hipError_t
  4642. hipMemRetainAllocationHandle.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_ihipMemGenericAllocationHandle)), ctypes.POINTER(None)]
  4643. except AttributeError:
  4644. pass
  4645. try:
  4646. hipMemSetAccess = _libraries['libamdhip64.so'].hipMemSetAccess
  4647. hipMemSetAccess.restype = hipError_t
  4648. hipMemSetAccess.argtypes = [ctypes.POINTER(None), size_t, ctypes.POINTER(struct_hipMemAccessDesc), size_t]
  4649. except AttributeError:
  4650. pass
  4651. try:
  4652. hipMemUnmap = _libraries['libamdhip64.so'].hipMemUnmap
  4653. hipMemUnmap.restype = hipError_t
  4654. hipMemUnmap.argtypes = [ctypes.POINTER(None), size_t]
  4655. except AttributeError:
  4656. pass
  4657. try:
  4658. hipGraphicsMapResources = _libraries['libamdhip64.so'].hipGraphicsMapResources
  4659. hipGraphicsMapResources.restype = hipError_t
  4660. hipGraphicsMapResources.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.POINTER(struct__hipGraphicsResource)), hipStream_t]
  4661. except AttributeError:
  4662. pass
  4663. try:
  4664. hipGraphicsSubResourceGetMappedArray = _libraries['libamdhip64.so'].hipGraphicsSubResourceGetMappedArray
  4665. hipGraphicsSubResourceGetMappedArray.restype = hipError_t
  4666. hipGraphicsSubResourceGetMappedArray.argtypes = [ctypes.POINTER(ctypes.POINTER(struct_hipArray)), hipGraphicsResource_t, ctypes.c_uint32, ctypes.c_uint32]
  4667. except AttributeError:
  4668. pass
  4669. try:
  4670. hipGraphicsResourceGetMappedPointer = _libraries['libamdhip64.so'].hipGraphicsResourceGetMappedPointer
  4671. hipGraphicsResourceGetMappedPointer.restype = hipError_t
  4672. hipGraphicsResourceGetMappedPointer.argtypes = [ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64), hipGraphicsResource_t]
  4673. except AttributeError:
  4674. pass
  4675. try:
  4676. hipGraphicsUnmapResources = _libraries['libamdhip64.so'].hipGraphicsUnmapResources
  4677. hipGraphicsUnmapResources.restype = hipError_t
  4678. hipGraphicsUnmapResources.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.POINTER(struct__hipGraphicsResource)), hipStream_t]
  4679. except AttributeError:
  4680. pass
  4681. try:
  4682. hipGraphicsUnregisterResource = _libraries['libamdhip64.so'].hipGraphicsUnregisterResource
  4683. hipGraphicsUnregisterResource.restype = hipError_t
  4684. hipGraphicsUnregisterResource.argtypes = [hipGraphicsResource_t]
  4685. except AttributeError:
  4686. pass
  4687. class struct___hip_surface(Structure):
  4688. pass
  4689. try:
  4690. hipCreateSurfaceObject = _libraries['libamdhip64.so'].hipCreateSurfaceObject
  4691. hipCreateSurfaceObject.restype = hipError_t
  4692. hipCreateSurfaceObject.argtypes = [ctypes.POINTER(ctypes.POINTER(struct___hip_surface)), ctypes.POINTER(struct_hipResourceDesc)]
  4693. except AttributeError:
  4694. pass
  4695. hipSurfaceObject_t = ctypes.POINTER(struct___hip_surface)
  4696. try:
  4697. hipDestroySurfaceObject = _libraries['libamdhip64.so'].hipDestroySurfaceObject
  4698. hipDestroySurfaceObject.restype = hipError_t
  4699. hipDestroySurfaceObject.argtypes = [hipSurfaceObject_t]
  4700. except AttributeError:
  4701. pass
  4702. try:
  4703. hipExtModuleLaunchKernel = _libraries['FIXME_STUB'].hipExtModuleLaunchKernel
  4704. hipExtModuleLaunchKernel.restype = hipError_t
  4705. hipExtModuleLaunchKernel.argtypes = [hipFunction_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, size_t, hipStream_t, ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.POINTER(None)), hipEvent_t, hipEvent_t, uint32_t]
  4706. except AttributeError:
  4707. pass
  4708. try:
  4709. hipHccModuleLaunchKernel = _libraries['FIXME_STUB'].hipHccModuleLaunchKernel
  4710. hipHccModuleLaunchKernel.restype = hipError_t
  4711. hipHccModuleLaunchKernel.argtypes = [hipFunction_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, size_t, hipStream_t, ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.POINTER(None)), hipEvent_t, hipEvent_t]
  4712. except AttributeError:
  4713. pass
  4714. # values for enumeration 'hiprtcResult'
  4715. hiprtcResult__enumvalues = {
  4716. 0: 'HIPRTC_SUCCESS',
  4717. 1: 'HIPRTC_ERROR_OUT_OF_MEMORY',
  4718. 2: 'HIPRTC_ERROR_PROGRAM_CREATION_FAILURE',
  4719. 3: 'HIPRTC_ERROR_INVALID_INPUT',
  4720. 4: 'HIPRTC_ERROR_INVALID_PROGRAM',
  4721. 5: 'HIPRTC_ERROR_INVALID_OPTION',
  4722. 6: 'HIPRTC_ERROR_COMPILATION',
  4723. 7: 'HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE',
  4724. 8: 'HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION',
  4725. 9: 'HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION',
  4726. 10: 'HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID',
  4727. 11: 'HIPRTC_ERROR_INTERNAL_ERROR',
  4728. 100: 'HIPRTC_ERROR_LINKING',
  4729. }
  4730. HIPRTC_SUCCESS = 0
  4731. HIPRTC_ERROR_OUT_OF_MEMORY = 1
  4732. HIPRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
  4733. HIPRTC_ERROR_INVALID_INPUT = 3
  4734. HIPRTC_ERROR_INVALID_PROGRAM = 4
  4735. HIPRTC_ERROR_INVALID_OPTION = 5
  4736. HIPRTC_ERROR_COMPILATION = 6
  4737. HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
  4738. HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
  4739. HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
  4740. HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
  4741. HIPRTC_ERROR_INTERNAL_ERROR = 11
  4742. HIPRTC_ERROR_LINKING = 100
  4743. hiprtcResult = ctypes.c_uint32 # enum
  4744. # values for enumeration 'hiprtcJIT_option'
  4745. hiprtcJIT_option__enumvalues = {
  4746. 0: 'HIPRTC_JIT_MAX_REGISTERS',
  4747. 1: 'HIPRTC_JIT_THREADS_PER_BLOCK',
  4748. 2: 'HIPRTC_JIT_WALL_TIME',
  4749. 3: 'HIPRTC_JIT_INFO_LOG_BUFFER',
  4750. 4: 'HIPRTC_JIT_INFO_LOG_BUFFER_SIZE_BYTES',
  4751. 5: 'HIPRTC_JIT_ERROR_LOG_BUFFER',
  4752. 6: 'HIPRTC_JIT_ERROR_LOG_BUFFER_SIZE_BYTES',
  4753. 7: 'HIPRTC_JIT_OPTIMIZATION_LEVEL',
  4754. 8: 'HIPRTC_JIT_TARGET_FROM_HIPCONTEXT',
  4755. 9: 'HIPRTC_JIT_TARGET',
  4756. 10: 'HIPRTC_JIT_FALLBACK_STRATEGY',
  4757. 11: 'HIPRTC_JIT_GENERATE_DEBUG_INFO',
  4758. 12: 'HIPRTC_JIT_LOG_VERBOSE',
  4759. 13: 'HIPRTC_JIT_GENERATE_LINE_INFO',
  4760. 14: 'HIPRTC_JIT_CACHE_MODE',
  4761. 15: 'HIPRTC_JIT_NEW_SM3X_OPT',
  4762. 16: 'HIPRTC_JIT_FAST_COMPILE',
  4763. 17: 'HIPRTC_JIT_GLOBAL_SYMBOL_NAMES',
  4764. 18: 'HIPRTC_JIT_GLOBAL_SYMBOL_ADDRESS',
  4765. 19: 'HIPRTC_JIT_GLOBAL_SYMBOL_COUNT',
  4766. 20: 'HIPRTC_JIT_LTO',
  4767. 21: 'HIPRTC_JIT_FTZ',
  4768. 22: 'HIPRTC_JIT_PREC_DIV',
  4769. 23: 'HIPRTC_JIT_PREC_SQRT',
  4770. 24: 'HIPRTC_JIT_FMA',
  4771. 25: 'HIPRTC_JIT_NUM_OPTIONS',
  4772. 10000: 'HIPRTC_JIT_IR_TO_ISA_OPT_EXT',
  4773. 10001: 'HIPRTC_JIT_IR_TO_ISA_OPT_COUNT_EXT',
  4774. }
  4775. HIPRTC_JIT_MAX_REGISTERS = 0
  4776. HIPRTC_JIT_THREADS_PER_BLOCK = 1
  4777. HIPRTC_JIT_WALL_TIME = 2
  4778. HIPRTC_JIT_INFO_LOG_BUFFER = 3
  4779. HIPRTC_JIT_INFO_LOG_BUFFER_SIZE_BYTES = 4
  4780. HIPRTC_JIT_ERROR_LOG_BUFFER = 5
  4781. HIPRTC_JIT_ERROR_LOG_BUFFER_SIZE_BYTES = 6
  4782. HIPRTC_JIT_OPTIMIZATION_LEVEL = 7
  4783. HIPRTC_JIT_TARGET_FROM_HIPCONTEXT = 8
  4784. HIPRTC_JIT_TARGET = 9
  4785. HIPRTC_JIT_FALLBACK_STRATEGY = 10
  4786. HIPRTC_JIT_GENERATE_DEBUG_INFO = 11
  4787. HIPRTC_JIT_LOG_VERBOSE = 12
  4788. HIPRTC_JIT_GENERATE_LINE_INFO = 13
  4789. HIPRTC_JIT_CACHE_MODE = 14
  4790. HIPRTC_JIT_NEW_SM3X_OPT = 15
  4791. HIPRTC_JIT_FAST_COMPILE = 16
  4792. HIPRTC_JIT_GLOBAL_SYMBOL_NAMES = 17
  4793. HIPRTC_JIT_GLOBAL_SYMBOL_ADDRESS = 18
  4794. HIPRTC_JIT_GLOBAL_SYMBOL_COUNT = 19
  4795. HIPRTC_JIT_LTO = 20
  4796. HIPRTC_JIT_FTZ = 21
  4797. HIPRTC_JIT_PREC_DIV = 22
  4798. HIPRTC_JIT_PREC_SQRT = 23
  4799. HIPRTC_JIT_FMA = 24
  4800. HIPRTC_JIT_NUM_OPTIONS = 25
  4801. HIPRTC_JIT_IR_TO_ISA_OPT_EXT = 10000
  4802. HIPRTC_JIT_IR_TO_ISA_OPT_COUNT_EXT = 10001
  4803. hiprtcJIT_option = ctypes.c_uint32 # enum
  4804. # values for enumeration 'hiprtcJITInputType'
  4805. hiprtcJITInputType__enumvalues = {
  4806. 0: 'HIPRTC_JIT_INPUT_CUBIN',
  4807. 1: 'HIPRTC_JIT_INPUT_PTX',
  4808. 2: 'HIPRTC_JIT_INPUT_FATBINARY',
  4809. 3: 'HIPRTC_JIT_INPUT_OBJECT',
  4810. 4: 'HIPRTC_JIT_INPUT_LIBRARY',
  4811. 5: 'HIPRTC_JIT_INPUT_NVVM',
  4812. 6: 'HIPRTC_JIT_NUM_LEGACY_INPUT_TYPES',
  4813. 100: 'HIPRTC_JIT_INPUT_LLVM_BITCODE',
  4814. 101: 'HIPRTC_JIT_INPUT_LLVM_BUNDLED_BITCODE',
  4815. 102: 'HIPRTC_JIT_INPUT_LLVM_ARCHIVES_OF_BUNDLED_BITCODE',
  4816. 9: 'HIPRTC_JIT_NUM_INPUT_TYPES',
  4817. }
  4818. HIPRTC_JIT_INPUT_CUBIN = 0
  4819. HIPRTC_JIT_INPUT_PTX = 1
  4820. HIPRTC_JIT_INPUT_FATBINARY = 2
  4821. HIPRTC_JIT_INPUT_OBJECT = 3
  4822. HIPRTC_JIT_INPUT_LIBRARY = 4
  4823. HIPRTC_JIT_INPUT_NVVM = 5
  4824. HIPRTC_JIT_NUM_LEGACY_INPUT_TYPES = 6
  4825. HIPRTC_JIT_INPUT_LLVM_BITCODE = 100
  4826. HIPRTC_JIT_INPUT_LLVM_BUNDLED_BITCODE = 101
  4827. HIPRTC_JIT_INPUT_LLVM_ARCHIVES_OF_BUNDLED_BITCODE = 102
  4828. HIPRTC_JIT_NUM_INPUT_TYPES = 9
  4829. hiprtcJITInputType = ctypes.c_uint32 # enum
  4830. class struct_ihiprtcLinkState(Structure):
  4831. pass
  4832. hiprtcLinkState = ctypes.POINTER(struct_ihiprtcLinkState)
  4833. try:
  4834. hiprtcGetErrorString = _libraries['libamdhip64.so'].hiprtcGetErrorString
  4835. hiprtcGetErrorString.restype = ctypes.POINTER(ctypes.c_char)
  4836. hiprtcGetErrorString.argtypes = [hiprtcResult]
  4837. except AttributeError:
  4838. pass
  4839. try:
  4840. hiprtcVersion = _libraries['libamdhip64.so'].hiprtcVersion
  4841. hiprtcVersion.restype = hiprtcResult
  4842. hiprtcVersion.argtypes = [ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32)]
  4843. except AttributeError:
  4844. pass
  4845. class struct__hiprtcProgram(Structure):
  4846. pass
  4847. hiprtcProgram = ctypes.POINTER(struct__hiprtcProgram)
  4848. try:
  4849. hiprtcAddNameExpression = _libraries['libamdhip64.so'].hiprtcAddNameExpression
  4850. hiprtcAddNameExpression.restype = hiprtcResult
  4851. hiprtcAddNameExpression.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_char)]
  4852. except AttributeError:
  4853. pass
  4854. try:
  4855. hiprtcCompileProgram = _libraries['libamdhip64.so'].hiprtcCompileProgram
  4856. hiprtcCompileProgram.restype = hiprtcResult
  4857. hiprtcCompileProgram.argtypes = [hiprtcProgram, ctypes.c_int32, ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
  4858. except AttributeError:
  4859. pass
  4860. try:
  4861. hiprtcCreateProgram = _libraries['libamdhip64.so'].hiprtcCreateProgram
  4862. hiprtcCreateProgram.restype = hiprtcResult
  4863. hiprtcCreateProgram.argtypes = [ctypes.POINTER(ctypes.POINTER(struct__hiprtcProgram)), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
  4864. except AttributeError:
  4865. pass
  4866. try:
  4867. hiprtcDestroyProgram = _libraries['libamdhip64.so'].hiprtcDestroyProgram
  4868. hiprtcDestroyProgram.restype = hiprtcResult
  4869. hiprtcDestroyProgram.argtypes = [ctypes.POINTER(ctypes.POINTER(struct__hiprtcProgram))]
  4870. except AttributeError:
  4871. pass
  4872. try:
  4873. hiprtcGetLoweredName = _libraries['libamdhip64.so'].hiprtcGetLoweredName
  4874. hiprtcGetLoweredName.restype = hiprtcResult
  4875. hiprtcGetLoweredName.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
  4876. except AttributeError:
  4877. pass
  4878. try:
  4879. hiprtcGetProgramLog = _libraries['libamdhip64.so'].hiprtcGetProgramLog
  4880. hiprtcGetProgramLog.restype = hiprtcResult
  4881. hiprtcGetProgramLog.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_char)]
  4882. except AttributeError:
  4883. pass
  4884. try:
  4885. hiprtcGetProgramLogSize = _libraries['libamdhip64.so'].hiprtcGetProgramLogSize
  4886. hiprtcGetProgramLogSize.restype = hiprtcResult
  4887. hiprtcGetProgramLogSize.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_uint64)]
  4888. except AttributeError:
  4889. pass
  4890. try:
  4891. hiprtcGetCode = _libraries['libamdhip64.so'].hiprtcGetCode
  4892. hiprtcGetCode.restype = hiprtcResult
  4893. hiprtcGetCode.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_char)]
  4894. except AttributeError:
  4895. pass
  4896. try:
  4897. hiprtcGetCodeSize = _libraries['libamdhip64.so'].hiprtcGetCodeSize
  4898. hiprtcGetCodeSize.restype = hiprtcResult
  4899. hiprtcGetCodeSize.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_uint64)]
  4900. except AttributeError:
  4901. pass
  4902. try:
  4903. hiprtcGetBitcode = _libraries['libamdhip64.so'].hiprtcGetBitcode
  4904. hiprtcGetBitcode.restype = hiprtcResult
  4905. hiprtcGetBitcode.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_char)]
  4906. except AttributeError:
  4907. pass
  4908. try:
  4909. hiprtcGetBitcodeSize = _libraries['libamdhip64.so'].hiprtcGetBitcodeSize
  4910. hiprtcGetBitcodeSize.restype = hiprtcResult
  4911. hiprtcGetBitcodeSize.argtypes = [hiprtcProgram, ctypes.POINTER(ctypes.c_uint64)]
  4912. except AttributeError:
  4913. pass
  4914. try:
  4915. hiprtcLinkCreate = _libraries['libamdhip64.so'].hiprtcLinkCreate
  4916. hiprtcLinkCreate.restype = hiprtcResult
  4917. hiprtcLinkCreate.argtypes = [ctypes.c_uint32, ctypes.POINTER(hiprtcJIT_option), ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.POINTER(struct_ihiprtcLinkState))]
  4918. except AttributeError:
  4919. pass
  4920. try:
  4921. hiprtcLinkAddFile = _libraries['libamdhip64.so'].hiprtcLinkAddFile
  4922. hiprtcLinkAddFile.restype = hiprtcResult
  4923. hiprtcLinkAddFile.argtypes = [hiprtcLinkState, hiprtcJITInputType, ctypes.POINTER(ctypes.c_char), ctypes.c_uint32, ctypes.POINTER(hiprtcJIT_option), ctypes.POINTER(ctypes.POINTER(None))]
  4924. except AttributeError:
  4925. pass
  4926. try:
  4927. hiprtcLinkAddData = _libraries['libamdhip64.so'].hiprtcLinkAddData
  4928. hiprtcLinkAddData.restype = hiprtcResult
  4929. hiprtcLinkAddData.argtypes = [hiprtcLinkState, hiprtcJITInputType, ctypes.POINTER(None), size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_uint32, ctypes.POINTER(hiprtcJIT_option), ctypes.POINTER(ctypes.POINTER(None))]
  4930. except AttributeError:
  4931. pass
  4932. try:
  4933. hiprtcLinkComplete = _libraries['libamdhip64.so'].hiprtcLinkComplete
  4934. hiprtcLinkComplete.restype = hiprtcResult
  4935. hiprtcLinkComplete.argtypes = [hiprtcLinkState, ctypes.POINTER(ctypes.POINTER(None)), ctypes.POINTER(ctypes.c_uint64)]
  4936. except AttributeError:
  4937. pass
  4938. try:
  4939. hiprtcLinkDestroy = _libraries['libamdhip64.so'].hiprtcLinkDestroy
  4940. hiprtcLinkDestroy.restype = hiprtcResult
  4941. hiprtcLinkDestroy.argtypes = [hiprtcLinkState]
  4942. except AttributeError:
  4943. pass
  4944. __all__ = \
  4945. ['HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE',
  4946. 'HIPRTC_ERROR_COMPILATION', 'HIPRTC_ERROR_INTERNAL_ERROR',
  4947. 'HIPRTC_ERROR_INVALID_INPUT', 'HIPRTC_ERROR_INVALID_OPTION',
  4948. 'HIPRTC_ERROR_INVALID_PROGRAM', 'HIPRTC_ERROR_LINKING',
  4949. 'HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID',
  4950. 'HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION',
  4951. 'HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION',
  4952. 'HIPRTC_ERROR_OUT_OF_MEMORY',
  4953. 'HIPRTC_ERROR_PROGRAM_CREATION_FAILURE', 'HIPRTC_JIT_CACHE_MODE',
  4954. 'HIPRTC_JIT_ERROR_LOG_BUFFER',
  4955. 'HIPRTC_JIT_ERROR_LOG_BUFFER_SIZE_BYTES',
  4956. 'HIPRTC_JIT_FALLBACK_STRATEGY', 'HIPRTC_JIT_FAST_COMPILE',
  4957. 'HIPRTC_JIT_FMA', 'HIPRTC_JIT_FTZ',
  4958. 'HIPRTC_JIT_GENERATE_DEBUG_INFO', 'HIPRTC_JIT_GENERATE_LINE_INFO',
  4959. 'HIPRTC_JIT_GLOBAL_SYMBOL_ADDRESS',
  4960. 'HIPRTC_JIT_GLOBAL_SYMBOL_COUNT',
  4961. 'HIPRTC_JIT_GLOBAL_SYMBOL_NAMES', 'HIPRTC_JIT_INFO_LOG_BUFFER',
  4962. 'HIPRTC_JIT_INFO_LOG_BUFFER_SIZE_BYTES', 'HIPRTC_JIT_INPUT_CUBIN',
  4963. 'HIPRTC_JIT_INPUT_FATBINARY', 'HIPRTC_JIT_INPUT_LIBRARY',
  4964. 'HIPRTC_JIT_INPUT_LLVM_ARCHIVES_OF_BUNDLED_BITCODE',
  4965. 'HIPRTC_JIT_INPUT_LLVM_BITCODE',
  4966. 'HIPRTC_JIT_INPUT_LLVM_BUNDLED_BITCODE', 'HIPRTC_JIT_INPUT_NVVM',
  4967. 'HIPRTC_JIT_INPUT_OBJECT', 'HIPRTC_JIT_INPUT_PTX',
  4968. 'HIPRTC_JIT_IR_TO_ISA_OPT_COUNT_EXT',
  4969. 'HIPRTC_JIT_IR_TO_ISA_OPT_EXT', 'HIPRTC_JIT_LOG_VERBOSE',
  4970. 'HIPRTC_JIT_LTO', 'HIPRTC_JIT_MAX_REGISTERS',
  4971. 'HIPRTC_JIT_NEW_SM3X_OPT', 'HIPRTC_JIT_NUM_INPUT_TYPES',
  4972. 'HIPRTC_JIT_NUM_LEGACY_INPUT_TYPES', 'HIPRTC_JIT_NUM_OPTIONS',
  4973. 'HIPRTC_JIT_OPTIMIZATION_LEVEL', 'HIPRTC_JIT_PREC_DIV',
  4974. 'HIPRTC_JIT_PREC_SQRT', 'HIPRTC_JIT_TARGET',
  4975. 'HIPRTC_JIT_TARGET_FROM_HIPCONTEXT',
  4976. 'HIPRTC_JIT_THREADS_PER_BLOCK', 'HIPRTC_JIT_WALL_TIME',
  4977. 'HIPRTC_SUCCESS', 'HIP_AD_FORMAT_FLOAT', 'HIP_AD_FORMAT_HALF',
  4978. 'HIP_AD_FORMAT_SIGNED_INT16', 'HIP_AD_FORMAT_SIGNED_INT32',
  4979. 'HIP_AD_FORMAT_SIGNED_INT8', 'HIP_AD_FORMAT_UNSIGNED_INT16',
  4980. 'HIP_AD_FORMAT_UNSIGNED_INT32', 'HIP_AD_FORMAT_UNSIGNED_INT8',
  4981. 'HIP_ARRAY3D_DESCRIPTOR', 'HIP_ARRAY_DESCRIPTOR',
  4982. 'HIP_ERROR_INVALID_VALUE', 'HIP_ERROR_LAUNCH_OUT_OF_RESOURCES',
  4983. 'HIP_ERROR_NOT_INITIALIZED', 'HIP_FUNC_ATTRIBUTE_BINARY_VERSION',
  4984. 'HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA',
  4985. 'HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES',
  4986. 'HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES', 'HIP_FUNC_ATTRIBUTE_MAX',
  4987. 'HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES',
  4988. 'HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK',
  4989. 'HIP_FUNC_ATTRIBUTE_NUM_REGS',
  4990. 'HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT',
  4991. 'HIP_FUNC_ATTRIBUTE_PTX_VERSION',
  4992. 'HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES', 'HIP_MEMCPY3D',
  4993. 'HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS',
  4994. 'HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES',
  4995. 'HIP_POINTER_ATTRIBUTE_BUFFER_ID',
  4996. 'HIP_POINTER_ATTRIBUTE_CONTEXT',
  4997. 'HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL',
  4998. 'HIP_POINTER_ATTRIBUTE_DEVICE_POINTER',
  4999. 'HIP_POINTER_ATTRIBUTE_HOST_POINTER',
  5000. 'HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE',
  5001. 'HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE',
  5002. 'HIP_POINTER_ATTRIBUTE_IS_MANAGED',
  5003. 'HIP_POINTER_ATTRIBUTE_MAPPED',
  5004. 'HIP_POINTER_ATTRIBUTE_MEMORY_TYPE',
  5005. 'HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE',
  5006. 'HIP_POINTER_ATTRIBUTE_P2P_TOKENS',
  5007. 'HIP_POINTER_ATTRIBUTE_RANGE_SIZE',
  5008. 'HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR',
  5009. 'HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS', 'HIP_RESOURCE_DESC',
  5010. 'HIP_RESOURCE_TYPE_ARRAY', 'HIP_RESOURCE_TYPE_LINEAR',
  5011. 'HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY', 'HIP_RESOURCE_TYPE_PITCH2D',
  5012. 'HIP_RESOURCE_VIEW_DESC', 'HIP_RES_VIEW_FORMAT_FLOAT_1X16',
  5013. 'HIP_RES_VIEW_FORMAT_FLOAT_1X32',
  5014. 'HIP_RES_VIEW_FORMAT_FLOAT_2X16',
  5015. 'HIP_RES_VIEW_FORMAT_FLOAT_2X32',
  5016. 'HIP_RES_VIEW_FORMAT_FLOAT_4X16',
  5017. 'HIP_RES_VIEW_FORMAT_FLOAT_4X32', 'HIP_RES_VIEW_FORMAT_NONE',
  5018. 'HIP_RES_VIEW_FORMAT_SIGNED_BC4',
  5019. 'HIP_RES_VIEW_FORMAT_SIGNED_BC5',
  5020. 'HIP_RES_VIEW_FORMAT_SIGNED_BC6H',
  5021. 'HIP_RES_VIEW_FORMAT_SINT_1X16', 'HIP_RES_VIEW_FORMAT_SINT_1X32',
  5022. 'HIP_RES_VIEW_FORMAT_SINT_1X8', 'HIP_RES_VIEW_FORMAT_SINT_2X16',
  5023. 'HIP_RES_VIEW_FORMAT_SINT_2X32', 'HIP_RES_VIEW_FORMAT_SINT_2X8',
  5024. 'HIP_RES_VIEW_FORMAT_SINT_4X16', 'HIP_RES_VIEW_FORMAT_SINT_4X32',
  5025. 'HIP_RES_VIEW_FORMAT_SINT_4X8', 'HIP_RES_VIEW_FORMAT_UINT_1X16',
  5026. 'HIP_RES_VIEW_FORMAT_UINT_1X32', 'HIP_RES_VIEW_FORMAT_UINT_1X8',
  5027. 'HIP_RES_VIEW_FORMAT_UINT_2X16', 'HIP_RES_VIEW_FORMAT_UINT_2X32',
  5028. 'HIP_RES_VIEW_FORMAT_UINT_2X8', 'HIP_RES_VIEW_FORMAT_UINT_4X16',
  5029. 'HIP_RES_VIEW_FORMAT_UINT_4X32', 'HIP_RES_VIEW_FORMAT_UINT_4X8',
  5030. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC1',
  5031. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC2',
  5032. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC3',
  5033. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC4',
  5034. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC5',
  5035. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H',
  5036. 'HIP_RES_VIEW_FORMAT_UNSIGNED_BC7', 'HIP_SUCCESS',
  5037. 'HIP_TEXTURE_DESC', 'HIP_TR_ADDRESS_MODE_BORDER',
  5038. 'HIP_TR_ADDRESS_MODE_CLAMP', 'HIP_TR_ADDRESS_MODE_MIRROR',
  5039. 'HIP_TR_ADDRESS_MODE_WRAP', 'HIP_TR_FILTER_MODE_LINEAR',
  5040. 'HIP_TR_FILTER_MODE_POINT', 'HIPaddress_mode',
  5041. 'HIPaddress_mode__enumvalues', 'HIPaddress_mode_enum',
  5042. 'HIPfilter_mode', 'HIPfilter_mode__enumvalues',
  5043. 'HIPfilter_mode_enum', 'HIPresourceViewFormat',
  5044. 'HIPresourceViewFormat__enumvalues', 'HIPresourceViewFormat_enum',
  5045. 'HIPresourcetype', 'HIPresourcetype__enumvalues',
  5046. 'HIPresourcetype_enum', '__hipGetPCH',
  5047. '__hipPopCallConfiguration', '__hipPushCallConfiguration',
  5048. 'c__Ea_HIP_SUCCESS', 'dim3', 'hipAccessPolicyWindow',
  5049. 'hipAccessProperty', 'hipAccessPropertyNormal',
  5050. 'hipAccessPropertyPersisting', 'hipAccessPropertyStreaming',
  5051. 'hipAddressModeBorder', 'hipAddressModeClamp',
  5052. 'hipAddressModeMirror', 'hipAddressModeWrap', 'hipApiName',
  5053. 'hipArray3DCreate', 'hipArray3DGetDescriptor', 'hipArrayCreate',
  5054. 'hipArrayDestroy', 'hipArrayGetDescriptor', 'hipArrayGetInfo',
  5055. 'hipArrayMapInfo', 'hipArraySparseSubresourceType',
  5056. 'hipArraySparseSubresourceTypeMiptail',
  5057. 'hipArraySparseSubresourceTypeSparseLevel', 'hipArray_Format',
  5058. 'hipArray_const_t', 'hipArray_t', 'hipBindTexture',
  5059. 'hipBindTexture2D', 'hipBindTextureToArray',
  5060. 'hipBindTextureToMipmappedArray', 'hipChannelFormatDesc',
  5061. 'hipChannelFormatKind', 'hipChannelFormatKindFloat',
  5062. 'hipChannelFormatKindNone', 'hipChannelFormatKindSigned',
  5063. 'hipChannelFormatKindUnsigned', 'hipChooseDeviceR0600',
  5064. 'hipComputeMode', 'hipComputeModeDefault',
  5065. 'hipComputeModeExclusive', 'hipComputeModeExclusiveProcess',
  5066. 'hipComputeModeProhibited', 'hipConfigureCall',
  5067. 'hipCreateSurfaceObject', 'hipCreateTextureObject',
  5068. 'hipCtxCreate', 'hipCtxDestroy', 'hipCtxDisablePeerAccess',
  5069. 'hipCtxEnablePeerAccess', 'hipCtxGetApiVersion',
  5070. 'hipCtxGetCacheConfig', 'hipCtxGetCurrent', 'hipCtxGetDevice',
  5071. 'hipCtxGetFlags', 'hipCtxGetSharedMemConfig', 'hipCtxPopCurrent',
  5072. 'hipCtxPushCurrent', 'hipCtxSetCacheConfig', 'hipCtxSetCurrent',
  5073. 'hipCtxSetSharedMemConfig', 'hipCtxSynchronize', 'hipCtx_t',
  5074. 'hipDestroyExternalMemory', 'hipDestroyExternalSemaphore',
  5075. 'hipDestroySurfaceObject', 'hipDestroyTextureObject',
  5076. 'hipDevP2PAttrAccessSupported',
  5077. 'hipDevP2PAttrHipArrayAccessSupported',
  5078. 'hipDevP2PAttrNativeAtomicSupported',
  5079. 'hipDevP2PAttrPerformanceRank', 'hipDeviceArch_t',
  5080. 'hipDeviceAttributeAccessPolicyMaxWindowSize',
  5081. 'hipDeviceAttributeAmdSpecificBegin',
  5082. 'hipDeviceAttributeAmdSpecificEnd',
  5083. 'hipDeviceAttributeAsicRevision',
  5084. 'hipDeviceAttributeAsyncEngineCount',
  5085. 'hipDeviceAttributeCanMapHostMemory',
  5086. 'hipDeviceAttributeCanUseHostPointerForRegisteredMem',
  5087. 'hipDeviceAttributeCanUseStreamWaitValue',
  5088. 'hipDeviceAttributeClockInstructionRate',
  5089. 'hipDeviceAttributeClockRate',
  5090. 'hipDeviceAttributeComputeCapabilityMajor',
  5091. 'hipDeviceAttributeComputeCapabilityMinor',
  5092. 'hipDeviceAttributeComputeMode',
  5093. 'hipDeviceAttributeComputePreemptionSupported',
  5094. 'hipDeviceAttributeConcurrentKernels',
  5095. 'hipDeviceAttributeConcurrentManagedAccess',
  5096. 'hipDeviceAttributeCooperativeLaunch',
  5097. 'hipDeviceAttributeCooperativeMultiDeviceLaunch',
  5098. 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim',
  5099. 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc',
  5100. 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim',
  5101. 'hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem',
  5102. 'hipDeviceAttributeCudaCompatibleBegin',
  5103. 'hipDeviceAttributeCudaCompatibleEnd',
  5104. 'hipDeviceAttributeDeviceOverlap',
  5105. 'hipDeviceAttributeDirectManagedMemAccessFromHost',
  5106. 'hipDeviceAttributeEccEnabled',
  5107. 'hipDeviceAttributeFineGrainSupport',
  5108. 'hipDeviceAttributeGlobalL1CacheSupported',
  5109. 'hipDeviceAttributeHdpMemFlushCntl',
  5110. 'hipDeviceAttributeHdpRegFlushCntl',
  5111. 'hipDeviceAttributeHostNativeAtomicSupported',
  5112. 'hipDeviceAttributeHostRegisterSupported',
  5113. 'hipDeviceAttributeImageSupport', 'hipDeviceAttributeIntegrated',
  5114. 'hipDeviceAttributeIsLargeBar',
  5115. 'hipDeviceAttributeIsMultiGpuBoard',
  5116. 'hipDeviceAttributeKernelExecTimeout',
  5117. 'hipDeviceAttributeL2CacheSize',
  5118. 'hipDeviceAttributeLocalL1CacheSupported',
  5119. 'hipDeviceAttributeLuid', 'hipDeviceAttributeLuidDeviceNodeMask',
  5120. 'hipDeviceAttributeManagedMemory',
  5121. 'hipDeviceAttributeMaxBlockDimX',
  5122. 'hipDeviceAttributeMaxBlockDimY',
  5123. 'hipDeviceAttributeMaxBlockDimZ',
  5124. 'hipDeviceAttributeMaxBlocksPerMultiProcessor',
  5125. 'hipDeviceAttributeMaxGridDimX', 'hipDeviceAttributeMaxGridDimY',
  5126. 'hipDeviceAttributeMaxGridDimZ', 'hipDeviceAttributeMaxPitch',
  5127. 'hipDeviceAttributeMaxRegistersPerBlock',
  5128. 'hipDeviceAttributeMaxRegistersPerMultiprocessor',
  5129. 'hipDeviceAttributeMaxSharedMemoryPerBlock',
  5130. 'hipDeviceAttributeMaxSharedMemoryPerMultiprocessor',
  5131. 'hipDeviceAttributeMaxSurface1D',
  5132. 'hipDeviceAttributeMaxSurface1DLayered',
  5133. 'hipDeviceAttributeMaxSurface2D',
  5134. 'hipDeviceAttributeMaxSurface2DLayered',
  5135. 'hipDeviceAttributeMaxSurface3D',
  5136. 'hipDeviceAttributeMaxSurfaceCubemap',
  5137. 'hipDeviceAttributeMaxSurfaceCubemapLayered',
  5138. 'hipDeviceAttributeMaxTexture1DLayered',
  5139. 'hipDeviceAttributeMaxTexture1DLinear',
  5140. 'hipDeviceAttributeMaxTexture1DMipmap',
  5141. 'hipDeviceAttributeMaxTexture1DWidth',
  5142. 'hipDeviceAttributeMaxTexture2DGather',
  5143. 'hipDeviceAttributeMaxTexture2DHeight',
  5144. 'hipDeviceAttributeMaxTexture2DLayered',
  5145. 'hipDeviceAttributeMaxTexture2DLinear',
  5146. 'hipDeviceAttributeMaxTexture2DMipmap',
  5147. 'hipDeviceAttributeMaxTexture2DWidth',
  5148. 'hipDeviceAttributeMaxTexture3DAlt',
  5149. 'hipDeviceAttributeMaxTexture3DDepth',
  5150. 'hipDeviceAttributeMaxTexture3DHeight',
  5151. 'hipDeviceAttributeMaxTexture3DWidth',
  5152. 'hipDeviceAttributeMaxTextureCubemap',
  5153. 'hipDeviceAttributeMaxTextureCubemapLayered',
  5154. 'hipDeviceAttributeMaxThreadsDim',
  5155. 'hipDeviceAttributeMaxThreadsPerBlock',
  5156. 'hipDeviceAttributeMaxThreadsPerMultiProcessor',
  5157. 'hipDeviceAttributeMemoryBusWidth',
  5158. 'hipDeviceAttributeMemoryClockRate',
  5159. 'hipDeviceAttributeMemoryPoolsSupported',
  5160. 'hipDeviceAttributeMultiGpuBoardGroupID',
  5161. 'hipDeviceAttributeMultiprocessorCount',
  5162. 'hipDeviceAttributePageableMemoryAccess',
  5163. 'hipDeviceAttributePageableMemoryAccessUsesHostPageTables',
  5164. 'hipDeviceAttributePciBusId', 'hipDeviceAttributePciDeviceId',
  5165. 'hipDeviceAttributePciDomainID',
  5166. 'hipDeviceAttributePersistingL2CacheMaxSize',
  5167. 'hipDeviceAttributePhysicalMultiProcessorCount',
  5168. 'hipDeviceAttributeReservedSharedMemPerBlock',
  5169. 'hipDeviceAttributeSharedMemPerBlockOptin',
  5170. 'hipDeviceAttributeSharedMemPerMultiprocessor',
  5171. 'hipDeviceAttributeSingleToDoublePrecisionPerfRatio',
  5172. 'hipDeviceAttributeStreamPrioritiesSupported',
  5173. 'hipDeviceAttributeSurfaceAlignment',
  5174. 'hipDeviceAttributeTccDriver',
  5175. 'hipDeviceAttributeTextureAlignment',
  5176. 'hipDeviceAttributeTexturePitchAlignment',
  5177. 'hipDeviceAttributeTotalConstantMemory',
  5178. 'hipDeviceAttributeTotalGlobalMem',
  5179. 'hipDeviceAttributeUnifiedAddressing',
  5180. 'hipDeviceAttributeUnused1', 'hipDeviceAttributeUnused2',
  5181. 'hipDeviceAttributeUnused3', 'hipDeviceAttributeUnused4',
  5182. 'hipDeviceAttributeUnused5',
  5183. 'hipDeviceAttributeVendorSpecificBegin',
  5184. 'hipDeviceAttributeVirtualMemoryManagementSupported',
  5185. 'hipDeviceAttributeWallClockRate', 'hipDeviceAttributeWarpSize',
  5186. 'hipDeviceAttribute_t', 'hipDeviceCanAccessPeer',
  5187. 'hipDeviceComputeCapability', 'hipDeviceDisablePeerAccess',
  5188. 'hipDeviceEnablePeerAccess', 'hipDeviceGet',
  5189. 'hipDeviceGetAttribute', 'hipDeviceGetByPCIBusId',
  5190. 'hipDeviceGetCacheConfig', 'hipDeviceGetDefaultMemPool',
  5191. 'hipDeviceGetGraphMemAttribute', 'hipDeviceGetLimit',
  5192. 'hipDeviceGetMemPool', 'hipDeviceGetName',
  5193. 'hipDeviceGetP2PAttribute', 'hipDeviceGetPCIBusId',
  5194. 'hipDeviceGetSharedMemConfig', 'hipDeviceGetStreamPriorityRange',
  5195. 'hipDeviceGetUuid', 'hipDeviceGraphMemTrim', 'hipDeviceP2PAttr',
  5196. 'hipDevicePrimaryCtxGetState', 'hipDevicePrimaryCtxRelease',
  5197. 'hipDevicePrimaryCtxReset', 'hipDevicePrimaryCtxRetain',
  5198. 'hipDevicePrimaryCtxSetFlags', 'hipDeviceProp_tR0600',
  5199. 'hipDeviceReset', 'hipDeviceSetCacheConfig',
  5200. 'hipDeviceSetGraphMemAttribute', 'hipDeviceSetLimit',
  5201. 'hipDeviceSetMemPool', 'hipDeviceSetSharedMemConfig',
  5202. 'hipDeviceSynchronize', 'hipDeviceTotalMem', 'hipDevice_t',
  5203. 'hipDeviceptr_t', 'hipDriverGetVersion', 'hipDrvGetErrorName',
  5204. 'hipDrvGetErrorString', 'hipDrvGraphAddMemcpyNode',
  5205. 'hipDrvMemcpy2DUnaligned', 'hipDrvMemcpy3D',
  5206. 'hipDrvMemcpy3DAsync', 'hipDrvPointerGetAttributes',
  5207. 'hipErrorAlreadyAcquired', 'hipErrorAlreadyMapped',
  5208. 'hipErrorArrayIsMapped', 'hipErrorAssert',
  5209. 'hipErrorCapturedEvent', 'hipErrorContextAlreadyCurrent',
  5210. 'hipErrorContextAlreadyInUse', 'hipErrorContextIsDestroyed',
  5211. 'hipErrorCooperativeLaunchTooLarge', 'hipErrorDeinitialized',
  5212. 'hipErrorECCNotCorrectable', 'hipErrorFileNotFound',
  5213. 'hipErrorGraphExecUpdateFailure',
  5214. 'hipErrorHostMemoryAlreadyRegistered',
  5215. 'hipErrorHostMemoryNotRegistered', 'hipErrorIllegalAddress',
  5216. 'hipErrorIllegalState', 'hipErrorInitializationError',
  5217. 'hipErrorInsufficientDriver', 'hipErrorInvalidConfiguration',
  5218. 'hipErrorInvalidContext', 'hipErrorInvalidDevice',
  5219. 'hipErrorInvalidDeviceFunction', 'hipErrorInvalidDevicePointer',
  5220. 'hipErrorInvalidGraphicsContext', 'hipErrorInvalidHandle',
  5221. 'hipErrorInvalidImage', 'hipErrorInvalidKernelFile',
  5222. 'hipErrorInvalidMemcpyDirection', 'hipErrorInvalidPitchValue',
  5223. 'hipErrorInvalidResourceHandle', 'hipErrorInvalidSource',
  5224. 'hipErrorInvalidSymbol', 'hipErrorInvalidValue',
  5225. 'hipErrorLaunchFailure', 'hipErrorLaunchOutOfResources',
  5226. 'hipErrorLaunchTimeOut', 'hipErrorMapBufferObjectFailed',
  5227. 'hipErrorMapFailed', 'hipErrorMemoryAllocation',
  5228. 'hipErrorMissingConfiguration', 'hipErrorNoBinaryForGpu',
  5229. 'hipErrorNoDevice', 'hipErrorNotFound', 'hipErrorNotInitialized',
  5230. 'hipErrorNotMapped', 'hipErrorNotMappedAsArray',
  5231. 'hipErrorNotMappedAsPointer', 'hipErrorNotReady',
  5232. 'hipErrorNotSupported', 'hipErrorOperatingSystem',
  5233. 'hipErrorOutOfMemory', 'hipErrorPeerAccessAlreadyEnabled',
  5234. 'hipErrorPeerAccessNotEnabled', 'hipErrorPeerAccessUnsupported',
  5235. 'hipErrorPriorLaunchFailure', 'hipErrorProfilerAlreadyStarted',
  5236. 'hipErrorProfilerAlreadyStopped', 'hipErrorProfilerDisabled',
  5237. 'hipErrorProfilerNotInitialized', 'hipErrorRuntimeMemory',
  5238. 'hipErrorRuntimeOther', 'hipErrorSetOnActiveProcess',
  5239. 'hipErrorSharedObjectInitFailed',
  5240. 'hipErrorSharedObjectSymbolNotFound',
  5241. 'hipErrorStreamCaptureImplicit',
  5242. 'hipErrorStreamCaptureInvalidated',
  5243. 'hipErrorStreamCaptureIsolation', 'hipErrorStreamCaptureMerge',
  5244. 'hipErrorStreamCaptureUnjoined', 'hipErrorStreamCaptureUnmatched',
  5245. 'hipErrorStreamCaptureUnsupported',
  5246. 'hipErrorStreamCaptureWrongThread', 'hipErrorTbd',
  5247. 'hipErrorUnknown', 'hipErrorUnmapFailed',
  5248. 'hipErrorUnsupportedLimit', 'hipError_t', 'hipEventCreate',
  5249. 'hipEventCreateWithFlags', 'hipEventDestroy',
  5250. 'hipEventElapsedTime', 'hipEventQuery', 'hipEventRecord',
  5251. 'hipEventSynchronize', 'hipEvent_t', 'hipExtGetLastError',
  5252. 'hipExtGetLinkTypeAndHopCount', 'hipExtLaunchKernel',
  5253. 'hipExtLaunchMultiKernelMultiDevice', 'hipExtMallocWithFlags',
  5254. 'hipExtModuleLaunchKernel', 'hipExtStreamCreateWithCUMask',
  5255. 'hipExtStreamGetCUMask', 'hipExtent',
  5256. 'hipExternalMemoryBufferDesc', 'hipExternalMemoryGetMappedBuffer',
  5257. 'hipExternalMemoryGetMappedMipmappedArray',
  5258. 'hipExternalMemoryHandleDesc', 'hipExternalMemoryHandleType',
  5259. 'hipExternalMemoryHandleTypeD3D11Resource',
  5260. 'hipExternalMemoryHandleTypeD3D11ResourceKmt',
  5261. 'hipExternalMemoryHandleTypeD3D12Heap',
  5262. 'hipExternalMemoryHandleTypeD3D12Resource',
  5263. 'hipExternalMemoryHandleTypeNvSciBuf',
  5264. 'hipExternalMemoryHandleTypeOpaqueFd',
  5265. 'hipExternalMemoryHandleTypeOpaqueWin32',
  5266. 'hipExternalMemoryHandleTypeOpaqueWin32Kmt',
  5267. 'hipExternalMemoryHandleType__enumvalues',
  5268. 'hipExternalMemoryHandleType_enum',
  5269. 'hipExternalMemoryMipmappedArrayDesc', 'hipExternalMemory_t',
  5270. 'hipExternalSemaphoreHandleDesc',
  5271. 'hipExternalSemaphoreHandleType',
  5272. 'hipExternalSemaphoreHandleTypeD3D11Fence',
  5273. 'hipExternalSemaphoreHandleTypeD3D12Fence',
  5274. 'hipExternalSemaphoreHandleTypeKeyedMutex',
  5275. 'hipExternalSemaphoreHandleTypeKeyedMutexKmt',
  5276. 'hipExternalSemaphoreHandleTypeNvSciSync',
  5277. 'hipExternalSemaphoreHandleTypeOpaqueFd',
  5278. 'hipExternalSemaphoreHandleTypeOpaqueWin32',
  5279. 'hipExternalSemaphoreHandleTypeOpaqueWin32Kmt',
  5280. 'hipExternalSemaphoreHandleTypeTimelineSemaphoreFd',
  5281. 'hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32',
  5282. 'hipExternalSemaphoreHandleType__enumvalues',
  5283. 'hipExternalSemaphoreHandleType_enum',
  5284. 'hipExternalSemaphoreSignalNodeParams',
  5285. 'hipExternalSemaphoreSignalParams',
  5286. 'hipExternalSemaphoreWaitNodeParams',
  5287. 'hipExternalSemaphoreWaitParams', 'hipExternalSemaphore_t',
  5288. 'hipFilterModeLinear', 'hipFilterModePoint', 'hipFree',
  5289. 'hipFreeArray', 'hipFreeAsync', 'hipFreeHost',
  5290. 'hipFreeMipmappedArray', 'hipFuncAttribute',
  5291. 'hipFuncAttributeMax',
  5292. 'hipFuncAttributeMaxDynamicSharedMemorySize',
  5293. 'hipFuncAttributePreferredSharedMemoryCarveout',
  5294. 'hipFuncAttributes', 'hipFuncCachePreferEqual',
  5295. 'hipFuncCachePreferL1', 'hipFuncCachePreferNone',
  5296. 'hipFuncCachePreferShared', 'hipFuncCache_t',
  5297. 'hipFuncGetAttribute', 'hipFuncGetAttributes',
  5298. 'hipFuncSetAttribute', 'hipFuncSetCacheConfig',
  5299. 'hipFuncSetSharedMemConfig', 'hipFunctionLaunchParams',
  5300. 'hipFunction_attribute', 'hipFunction_t', 'hipGetChannelDesc',
  5301. 'hipGetDevice', 'hipGetDeviceCount', 'hipGetDeviceFlags',
  5302. 'hipGetDevicePropertiesR0600', 'hipGetErrorName',
  5303. 'hipGetErrorString', 'hipGetLastError',
  5304. 'hipGetMipmappedArrayLevel', 'hipGetStreamDeviceId',
  5305. 'hipGetSymbolAddress', 'hipGetSymbolSize',
  5306. 'hipGetTextureAlignmentOffset', 'hipGetTextureObjectResourceDesc',
  5307. 'hipGetTextureObjectResourceViewDesc',
  5308. 'hipGetTextureObjectTextureDesc', 'hipGetTextureReference',
  5309. 'hipGraphAddChildGraphNode', 'hipGraphAddDependencies',
  5310. 'hipGraphAddEmptyNode', 'hipGraphAddEventRecordNode',
  5311. 'hipGraphAddEventWaitNode', 'hipGraphAddHostNode',
  5312. 'hipGraphAddKernelNode', 'hipGraphAddMemAllocNode',
  5313. 'hipGraphAddMemFreeNode', 'hipGraphAddMemcpyNode',
  5314. 'hipGraphAddMemcpyNode1D', 'hipGraphAddMemcpyNodeFromSymbol',
  5315. 'hipGraphAddMemcpyNodeToSymbol', 'hipGraphAddMemsetNode',
  5316. 'hipGraphChildGraphNodeGetGraph', 'hipGraphClone',
  5317. 'hipGraphCreate', 'hipGraphDebugDotFlags',
  5318. 'hipGraphDebugDotFlagsEventNodeParams',
  5319. 'hipGraphDebugDotFlagsExtSemasSignalNodeParams',
  5320. 'hipGraphDebugDotFlagsExtSemasWaitNodeParams',
  5321. 'hipGraphDebugDotFlagsHandles',
  5322. 'hipGraphDebugDotFlagsHostNodeParams',
  5323. 'hipGraphDebugDotFlagsKernelNodeAttributes',
  5324. 'hipGraphDebugDotFlagsKernelNodeParams',
  5325. 'hipGraphDebugDotFlagsMemcpyNodeParams',
  5326. 'hipGraphDebugDotFlagsMemsetNodeParams',
  5327. 'hipGraphDebugDotFlagsVerbose', 'hipGraphDebugDotPrint',
  5328. 'hipGraphDestroy', 'hipGraphDestroyNode',
  5329. 'hipGraphEventRecordNodeGetEvent',
  5330. 'hipGraphEventRecordNodeSetEvent',
  5331. 'hipGraphEventWaitNodeGetEvent', 'hipGraphEventWaitNodeSetEvent',
  5332. 'hipGraphExecChildGraphNodeSetParams', 'hipGraphExecDestroy',
  5333. 'hipGraphExecEventRecordNodeSetEvent',
  5334. 'hipGraphExecEventWaitNodeSetEvent',
  5335. 'hipGraphExecHostNodeSetParams',
  5336. 'hipGraphExecKernelNodeSetParams',
  5337. 'hipGraphExecMemcpyNodeSetParams',
  5338. 'hipGraphExecMemcpyNodeSetParams1D',
  5339. 'hipGraphExecMemcpyNodeSetParamsFromSymbol',
  5340. 'hipGraphExecMemcpyNodeSetParamsToSymbol',
  5341. 'hipGraphExecMemsetNodeSetParams', 'hipGraphExecUpdate',
  5342. 'hipGraphExecUpdateError',
  5343. 'hipGraphExecUpdateErrorFunctionChanged',
  5344. 'hipGraphExecUpdateErrorNodeTypeChanged',
  5345. 'hipGraphExecUpdateErrorNotSupported',
  5346. 'hipGraphExecUpdateErrorParametersChanged',
  5347. 'hipGraphExecUpdateErrorTopologyChanged',
  5348. 'hipGraphExecUpdateErrorUnsupportedFunctionChange',
  5349. 'hipGraphExecUpdateResult', 'hipGraphExecUpdateSuccess',
  5350. 'hipGraphExec_t', 'hipGraphGetEdges', 'hipGraphGetNodes',
  5351. 'hipGraphGetRootNodes', 'hipGraphHostNodeGetParams',
  5352. 'hipGraphHostNodeSetParams', 'hipGraphInstantiate',
  5353. 'hipGraphInstantiateFlagAutoFreeOnLaunch',
  5354. 'hipGraphInstantiateFlagDeviceLaunch',
  5355. 'hipGraphInstantiateFlagUpload',
  5356. 'hipGraphInstantiateFlagUseNodePriority',
  5357. 'hipGraphInstantiateFlags', 'hipGraphInstantiateWithFlags',
  5358. 'hipGraphKernelNodeCopyAttributes',
  5359. 'hipGraphKernelNodeGetAttribute', 'hipGraphKernelNodeGetParams',
  5360. 'hipGraphKernelNodeSetAttribute', 'hipGraphKernelNodeSetParams',
  5361. 'hipGraphLaunch', 'hipGraphMemAllocNodeGetParams',
  5362. 'hipGraphMemAttrReservedMemCurrent',
  5363. 'hipGraphMemAttrReservedMemHigh', 'hipGraphMemAttrUsedMemCurrent',
  5364. 'hipGraphMemAttrUsedMemHigh', 'hipGraphMemAttributeType',
  5365. 'hipGraphMemFreeNodeGetParams', 'hipGraphMemcpyNodeGetParams',
  5366. 'hipGraphMemcpyNodeSetParams', 'hipGraphMemcpyNodeSetParams1D',
  5367. 'hipGraphMemcpyNodeSetParamsFromSymbol',
  5368. 'hipGraphMemcpyNodeSetParamsToSymbol',
  5369. 'hipGraphMemsetNodeGetParams', 'hipGraphMemsetNodeSetParams',
  5370. 'hipGraphNodeFindInClone', 'hipGraphNodeGetDependencies',
  5371. 'hipGraphNodeGetDependentNodes', 'hipGraphNodeGetEnabled',
  5372. 'hipGraphNodeGetType', 'hipGraphNodeSetEnabled',
  5373. 'hipGraphNodeType', 'hipGraphNodeTypeCount',
  5374. 'hipGraphNodeTypeEmpty', 'hipGraphNodeTypeEventRecord',
  5375. 'hipGraphNodeTypeExtSemaphoreSignal',
  5376. 'hipGraphNodeTypeExtSemaphoreWait', 'hipGraphNodeTypeGraph',
  5377. 'hipGraphNodeTypeHost', 'hipGraphNodeTypeKernel',
  5378. 'hipGraphNodeTypeMemAlloc', 'hipGraphNodeTypeMemFree',
  5379. 'hipGraphNodeTypeMemcpy', 'hipGraphNodeTypeMemcpyFromSymbol',
  5380. 'hipGraphNodeTypeMemcpyToSymbol', 'hipGraphNodeTypeMemset',
  5381. 'hipGraphNodeTypeWaitEvent', 'hipGraphNode_t',
  5382. 'hipGraphReleaseUserObject', 'hipGraphRemoveDependencies',
  5383. 'hipGraphRetainUserObject', 'hipGraphUpload',
  5384. 'hipGraphUserObjectMove', 'hipGraph_t', 'hipGraphicsMapResources',
  5385. 'hipGraphicsRegisterFlags', 'hipGraphicsRegisterFlagsNone',
  5386. 'hipGraphicsRegisterFlagsReadOnly',
  5387. 'hipGraphicsRegisterFlagsSurfaceLoadStore',
  5388. 'hipGraphicsRegisterFlagsTextureGather',
  5389. 'hipGraphicsRegisterFlagsWriteDiscard', 'hipGraphicsResource',
  5390. 'hipGraphicsResourceGetMappedPointer', 'hipGraphicsResource_t',
  5391. 'hipGraphicsSubResourceGetMappedArray',
  5392. 'hipGraphicsUnmapResources', 'hipGraphicsUnregisterResource',
  5393. 'hipHccModuleLaunchKernel', 'hipHostAlloc', 'hipHostFn_t',
  5394. 'hipHostFree', 'hipHostGetDevicePointer', 'hipHostGetFlags',
  5395. 'hipHostMalloc', 'hipHostNodeParams', 'hipHostRegister',
  5396. 'hipHostUnregister', 'hipImportExternalMemory',
  5397. 'hipImportExternalSemaphore', 'hipInit', 'hipIpcCloseMemHandle',
  5398. 'hipIpcEventHandle_t', 'hipIpcGetEventHandle',
  5399. 'hipIpcGetMemHandle', 'hipIpcMemHandle_t',
  5400. 'hipIpcOpenEventHandle', 'hipIpcOpenMemHandle', 'hipJitOption',
  5401. 'hipJitOptionCacheMode', 'hipJitOptionErrorLogBuffer',
  5402. 'hipJitOptionErrorLogBufferSizeBytes',
  5403. 'hipJitOptionFallbackStrategy', 'hipJitOptionFastCompile',
  5404. 'hipJitOptionGenerateDebugInfo', 'hipJitOptionGenerateLineInfo',
  5405. 'hipJitOptionInfoLogBuffer', 'hipJitOptionInfoLogBufferSizeBytes',
  5406. 'hipJitOptionLogVerbose', 'hipJitOptionMaxRegisters',
  5407. 'hipJitOptionNumOptions', 'hipJitOptionOptimizationLevel',
  5408. 'hipJitOptionSm3xOpt', 'hipJitOptionTarget',
  5409. 'hipJitOptionTargetFromContext', 'hipJitOptionThreadsPerBlock',
  5410. 'hipJitOptionWallTime', 'hipKernelNameRef',
  5411. 'hipKernelNameRefByPtr', 'hipKernelNodeAttrID',
  5412. 'hipKernelNodeAttrValue',
  5413. 'hipKernelNodeAttributeAccessPolicyWindow',
  5414. 'hipKernelNodeAttributeCooperative', 'hipKernelNodeParams',
  5415. 'hipLaunchByPtr', 'hipLaunchCooperativeKernel',
  5416. 'hipLaunchCooperativeKernelMultiDevice', 'hipLaunchHostFunc',
  5417. 'hipLaunchKernel', 'hipLaunchParams', 'hipLimitMallocHeapSize',
  5418. 'hipLimitPrintfFifoSize', 'hipLimitRange', 'hipLimitStackSize',
  5419. 'hipLimit_t', 'hipMalloc', 'hipMalloc3D', 'hipMalloc3DArray',
  5420. 'hipMallocArray', 'hipMallocAsync', 'hipMallocFromPoolAsync',
  5421. 'hipMallocHost', 'hipMallocManaged', 'hipMallocMipmappedArray',
  5422. 'hipMallocPitch', 'hipMemAccessDesc', 'hipMemAccessFlags',
  5423. 'hipMemAccessFlagsProtNone', 'hipMemAccessFlagsProtRead',
  5424. 'hipMemAccessFlagsProtReadWrite', 'hipMemAddressFree',
  5425. 'hipMemAddressReserve', 'hipMemAdvise',
  5426. 'hipMemAdviseSetAccessedBy', 'hipMemAdviseSetCoarseGrain',
  5427. 'hipMemAdviseSetPreferredLocation', 'hipMemAdviseSetReadMostly',
  5428. 'hipMemAdviseUnsetAccessedBy', 'hipMemAdviseUnsetCoarseGrain',
  5429. 'hipMemAdviseUnsetPreferredLocation',
  5430. 'hipMemAdviseUnsetReadMostly', 'hipMemAllocHost',
  5431. 'hipMemAllocNodeParams', 'hipMemAllocPitch',
  5432. 'hipMemAllocationGranularityMinimum',
  5433. 'hipMemAllocationGranularityRecommended',
  5434. 'hipMemAllocationGranularity_flags', 'hipMemAllocationHandleType',
  5435. 'hipMemAllocationProp', 'hipMemAllocationType',
  5436. 'hipMemAllocationTypeInvalid', 'hipMemAllocationTypeMax',
  5437. 'hipMemAllocationTypePinned', 'hipMemCreate',
  5438. 'hipMemExportToShareableHandle',
  5439. 'hipMemGenericAllocationHandle_t', 'hipMemGetAccess',
  5440. 'hipMemGetAddressRange', 'hipMemGetAllocationGranularity',
  5441. 'hipMemGetAllocationPropertiesFromHandle', 'hipMemGetInfo',
  5442. 'hipMemHandleType', 'hipMemHandleTypeGeneric',
  5443. 'hipMemHandleTypeNone', 'hipMemHandleTypePosixFileDescriptor',
  5444. 'hipMemHandleTypeWin32', 'hipMemHandleTypeWin32Kmt',
  5445. 'hipMemImportFromShareableHandle', 'hipMemLocation',
  5446. 'hipMemLocationType', 'hipMemLocationTypeDevice',
  5447. 'hipMemLocationTypeInvalid', 'hipMemMap', 'hipMemMapArrayAsync',
  5448. 'hipMemOperationType', 'hipMemOperationTypeMap',
  5449. 'hipMemOperationTypeUnmap', 'hipMemPoolAttr',
  5450. 'hipMemPoolAttrReleaseThreshold',
  5451. 'hipMemPoolAttrReservedMemCurrent',
  5452. 'hipMemPoolAttrReservedMemHigh', 'hipMemPoolAttrUsedMemCurrent',
  5453. 'hipMemPoolAttrUsedMemHigh', 'hipMemPoolCreate',
  5454. 'hipMemPoolDestroy', 'hipMemPoolExportPointer',
  5455. 'hipMemPoolExportToShareableHandle', 'hipMemPoolGetAccess',
  5456. 'hipMemPoolGetAttribute', 'hipMemPoolImportFromShareableHandle',
  5457. 'hipMemPoolImportPointer', 'hipMemPoolProps',
  5458. 'hipMemPoolPtrExportData',
  5459. 'hipMemPoolReuseAllowInternalDependencies',
  5460. 'hipMemPoolReuseAllowOpportunistic',
  5461. 'hipMemPoolReuseFollowEventDependencies', 'hipMemPoolSetAccess',
  5462. 'hipMemPoolSetAttribute', 'hipMemPoolTrimTo', 'hipMemPool_t',
  5463. 'hipMemPrefetchAsync', 'hipMemPtrGetInfo', 'hipMemRangeAttribute',
  5464. 'hipMemRangeAttributeAccessedBy',
  5465. 'hipMemRangeAttributeCoherencyMode',
  5466. 'hipMemRangeAttributeLastPrefetchLocation',
  5467. 'hipMemRangeAttributePreferredLocation',
  5468. 'hipMemRangeAttributeReadMostly', 'hipMemRangeCoherencyMode',
  5469. 'hipMemRangeCoherencyModeCoarseGrain',
  5470. 'hipMemRangeCoherencyModeFineGrain',
  5471. 'hipMemRangeCoherencyModeIndeterminate',
  5472. 'hipMemRangeGetAttribute', 'hipMemRangeGetAttributes',
  5473. 'hipMemRelease', 'hipMemRetainAllocationHandle',
  5474. 'hipMemSetAccess', 'hipMemUnmap', 'hipMemcpy', 'hipMemcpy2D',
  5475. 'hipMemcpy2DAsync', 'hipMemcpy2DFromArray',
  5476. 'hipMemcpy2DFromArrayAsync', 'hipMemcpy2DToArray',
  5477. 'hipMemcpy2DToArrayAsync', 'hipMemcpy3D', 'hipMemcpy3DAsync',
  5478. 'hipMemcpy3DParms', 'hipMemcpyAsync', 'hipMemcpyAtoH',
  5479. 'hipMemcpyDefault', 'hipMemcpyDeviceToDevice',
  5480. 'hipMemcpyDeviceToHost', 'hipMemcpyDtoD', 'hipMemcpyDtoDAsync',
  5481. 'hipMemcpyDtoH', 'hipMemcpyDtoHAsync', 'hipMemcpyFromArray',
  5482. 'hipMemcpyFromSymbol', 'hipMemcpyFromSymbolAsync',
  5483. 'hipMemcpyHostToDevice', 'hipMemcpyHostToHost', 'hipMemcpyHtoA',
  5484. 'hipMemcpyHtoD', 'hipMemcpyHtoDAsync', 'hipMemcpyKind',
  5485. 'hipMemcpyParam2D', 'hipMemcpyParam2DAsync', 'hipMemcpyPeer',
  5486. 'hipMemcpyPeerAsync', 'hipMemcpyToArray', 'hipMemcpyToSymbol',
  5487. 'hipMemcpyToSymbolAsync', 'hipMemcpyWithStream',
  5488. 'hipMemoryAdvise', 'hipMemoryType', 'hipMemoryTypeArray',
  5489. 'hipMemoryTypeDevice', 'hipMemoryTypeHost',
  5490. 'hipMemoryTypeManaged', 'hipMemoryTypeUnified',
  5491. 'hipMemoryTypeUnregistered', 'hipMemset', 'hipMemset2D',
  5492. 'hipMemset2DAsync', 'hipMemset3D', 'hipMemset3DAsync',
  5493. 'hipMemsetAsync', 'hipMemsetD16', 'hipMemsetD16Async',
  5494. 'hipMemsetD32', 'hipMemsetD32Async', 'hipMemsetD8',
  5495. 'hipMemsetD8Async', 'hipMemsetParams', 'hipMipmappedArray',
  5496. 'hipMipmappedArrayCreate', 'hipMipmappedArrayDestroy',
  5497. 'hipMipmappedArrayGetLevel', 'hipMipmappedArray_const_t',
  5498. 'hipMipmappedArray_t', 'hipModuleGetFunction',
  5499. 'hipModuleGetGlobal', 'hipModuleGetTexRef',
  5500. 'hipModuleLaunchCooperativeKernel',
  5501. 'hipModuleLaunchCooperativeKernelMultiDevice',
  5502. 'hipModuleLaunchKernel', 'hipModuleLoad', 'hipModuleLoadData',
  5503. 'hipModuleLoadDataEx',
  5504. 'hipModuleOccupancyMaxActiveBlocksPerMultiprocessor',
  5505. 'hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags',
  5506. 'hipModuleOccupancyMaxPotentialBlockSize',
  5507. 'hipModuleOccupancyMaxPotentialBlockSizeWithFlags',
  5508. 'hipModuleUnload', 'hipModule_t',
  5509. 'hipOccupancyMaxActiveBlocksPerMultiprocessor',
  5510. 'hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags',
  5511. 'hipOccupancyMaxPotentialBlockSize', 'hipPeekAtLastError',
  5512. 'hipPitchedPtr', 'hipPointerAttribute_t',
  5513. 'hipPointerGetAttribute', 'hipPointerGetAttributes',
  5514. 'hipPointerSetAttribute', 'hipPointer_attribute', 'hipPos',
  5515. 'hipProfilerStart', 'hipProfilerStop', 'hipReadModeElementType',
  5516. 'hipReadModeNormalizedFloat', 'hipResViewFormatFloat1',
  5517. 'hipResViewFormatFloat2', 'hipResViewFormatFloat4',
  5518. 'hipResViewFormatHalf1', 'hipResViewFormatHalf2',
  5519. 'hipResViewFormatHalf4', 'hipResViewFormatNone',
  5520. 'hipResViewFormatSignedBlockCompressed4',
  5521. 'hipResViewFormatSignedBlockCompressed5',
  5522. 'hipResViewFormatSignedBlockCompressed6H',
  5523. 'hipResViewFormatSignedChar1', 'hipResViewFormatSignedChar2',
  5524. 'hipResViewFormatSignedChar4', 'hipResViewFormatSignedInt1',
  5525. 'hipResViewFormatSignedInt2', 'hipResViewFormatSignedInt4',
  5526. 'hipResViewFormatSignedShort1', 'hipResViewFormatSignedShort2',
  5527. 'hipResViewFormatSignedShort4',
  5528. 'hipResViewFormatUnsignedBlockCompressed1',
  5529. 'hipResViewFormatUnsignedBlockCompressed2',
  5530. 'hipResViewFormatUnsignedBlockCompressed3',
  5531. 'hipResViewFormatUnsignedBlockCompressed4',
  5532. 'hipResViewFormatUnsignedBlockCompressed5',
  5533. 'hipResViewFormatUnsignedBlockCompressed6H',
  5534. 'hipResViewFormatUnsignedBlockCompressed7',
  5535. 'hipResViewFormatUnsignedChar1', 'hipResViewFormatUnsignedChar2',
  5536. 'hipResViewFormatUnsignedChar4', 'hipResViewFormatUnsignedInt1',
  5537. 'hipResViewFormatUnsignedInt2', 'hipResViewFormatUnsignedInt4',
  5538. 'hipResViewFormatUnsignedShort1',
  5539. 'hipResViewFormatUnsignedShort2',
  5540. 'hipResViewFormatUnsignedShort4', 'hipResourceDesc',
  5541. 'hipResourceType', 'hipResourceTypeArray',
  5542. 'hipResourceTypeLinear', 'hipResourceTypeMipmappedArray',
  5543. 'hipResourceTypePitch2D', 'hipResourceViewFormat',
  5544. 'hipResourcetype', 'hipResourcetype__enumvalues',
  5545. 'hipRuntimeGetVersion', 'hipSetDevice', 'hipSetDeviceFlags',
  5546. 'hipSetupArgument', 'hipSharedMemBankSizeDefault',
  5547. 'hipSharedMemBankSizeEightByte', 'hipSharedMemBankSizeFourByte',
  5548. 'hipSharedMemConfig', 'hipSignalExternalSemaphoresAsync',
  5549. 'hipStreamAddCallback', 'hipStreamAddCaptureDependencies',
  5550. 'hipStreamAttachMemAsync', 'hipStreamBeginCapture',
  5551. 'hipStreamCallback_t', 'hipStreamCaptureMode',
  5552. 'hipStreamCaptureModeGlobal', 'hipStreamCaptureModeRelaxed',
  5553. 'hipStreamCaptureModeThreadLocal', 'hipStreamCaptureStatus',
  5554. 'hipStreamCaptureStatusActive',
  5555. 'hipStreamCaptureStatusInvalidated', 'hipStreamCaptureStatusNone',
  5556. 'hipStreamCreate', 'hipStreamCreateWithFlags',
  5557. 'hipStreamCreateWithPriority', 'hipStreamDestroy',
  5558. 'hipStreamEndCapture', 'hipStreamGetCaptureInfo',
  5559. 'hipStreamGetCaptureInfo_v2', 'hipStreamGetDevice',
  5560. 'hipStreamGetFlags', 'hipStreamGetPriority',
  5561. 'hipStreamIsCapturing', 'hipStreamQuery',
  5562. 'hipStreamSetCaptureDependencies', 'hipStreamSynchronize',
  5563. 'hipStreamUpdateCaptureDependencies',
  5564. 'hipStreamUpdateCaptureDependenciesFlags', 'hipStreamWaitEvent',
  5565. 'hipStreamWaitValue32', 'hipStreamWaitValue64',
  5566. 'hipStreamWriteValue32', 'hipStreamWriteValue64', 'hipStream_t',
  5567. 'hipSuccess', 'hipSurfaceObject_t', 'hipTexObjectCreate',
  5568. 'hipTexObjectDestroy', 'hipTexObjectGetResourceDesc',
  5569. 'hipTexObjectGetResourceViewDesc', 'hipTexObjectGetTextureDesc',
  5570. 'hipTexRefGetAddress', 'hipTexRefGetAddressMode',
  5571. 'hipTexRefGetFilterMode', 'hipTexRefGetFlags',
  5572. 'hipTexRefGetFormat', 'hipTexRefGetMaxAnisotropy',
  5573. 'hipTexRefGetMipMappedArray', 'hipTexRefGetMipmapFilterMode',
  5574. 'hipTexRefGetMipmapLevelBias', 'hipTexRefGetMipmapLevelClamp',
  5575. 'hipTexRefSetAddress', 'hipTexRefSetAddress2D',
  5576. 'hipTexRefSetAddressMode', 'hipTexRefSetArray',
  5577. 'hipTexRefSetBorderColor', 'hipTexRefSetFilterMode',
  5578. 'hipTexRefSetFlags', 'hipTexRefSetFormat',
  5579. 'hipTexRefSetMaxAnisotropy', 'hipTexRefSetMipmapFilterMode',
  5580. 'hipTexRefSetMipmapLevelBias', 'hipTexRefSetMipmapLevelClamp',
  5581. 'hipTexRefSetMipmappedArray', 'hipTextureAddressMode',
  5582. 'hipTextureFilterMode', 'hipTextureObject_t',
  5583. 'hipTextureReadMode', 'hipThreadExchangeStreamCaptureMode',
  5584. 'hipUUID', 'hipUnbindTexture', 'hipUserObjectCreate',
  5585. 'hipUserObjectFlags', 'hipUserObjectNoDestructorSync',
  5586. 'hipUserObjectRelease', 'hipUserObjectRetain',
  5587. 'hipUserObjectRetainFlags', 'hipUserObject_t',
  5588. 'hipWaitExternalSemaphoresAsync', 'hip_Memcpy2D', 'hip_init',
  5589. 'hipmipmappedArray', 'hiprtcAddNameExpression',
  5590. 'hiprtcCompileProgram', 'hiprtcCreateProgram',
  5591. 'hiprtcDestroyProgram', 'hiprtcGetBitcode',
  5592. 'hiprtcGetBitcodeSize', 'hiprtcGetCode', 'hiprtcGetCodeSize',
  5593. 'hiprtcGetErrorString', 'hiprtcGetLoweredName',
  5594. 'hiprtcGetProgramLog', 'hiprtcGetProgramLogSize',
  5595. 'hiprtcJITInputType', 'hiprtcJIT_option', 'hiprtcLinkAddData',
  5596. 'hiprtcLinkAddFile', 'hiprtcLinkComplete', 'hiprtcLinkCreate',
  5597. 'hiprtcLinkDestroy', 'hiprtcLinkState', 'hiprtcProgram',
  5598. 'hiprtcResult', 'hiprtcVersion', 'make_hipExtent',
  5599. 'make_hipPitchedPtr', 'make_hipPos', 'size_t',
  5600. 'struct_HIP_ARRAY3D_DESCRIPTOR', 'struct_HIP_ARRAY_DESCRIPTOR',
  5601. 'struct_HIP_MEMCPY3D', 'struct_HIP_RESOURCE_DESC_st',
  5602. 'struct_HIP_RESOURCE_DESC_st_0_array',
  5603. 'struct_HIP_RESOURCE_DESC_st_0_linear',
  5604. 'struct_HIP_RESOURCE_DESC_st_0_mipmap',
  5605. 'struct_HIP_RESOURCE_DESC_st_0_pitch2D',
  5606. 'struct_HIP_RESOURCE_DESC_st_0_reserved',
  5607. 'struct_HIP_RESOURCE_VIEW_DESC_st', 'struct_HIP_TEXTURE_DESC_st',
  5608. 'struct___hip_surface', 'struct___hip_texture',
  5609. 'struct__hipGraphicsResource', 'struct__hiprtcProgram',
  5610. 'struct_c__SA_hipDeviceArch_t', 'struct_dim3',
  5611. 'struct_hipAccessPolicyWindow', 'struct_hipArray',
  5612. 'struct_hipArrayMapInfo', 'struct_hipArrayMapInfo_1_miptail',
  5613. 'struct_hipArrayMapInfo_1_sparseLevel',
  5614. 'struct_hipChannelFormatDesc', 'struct_hipDeviceProp_tR0600',
  5615. 'struct_hipExtent', 'struct_hipExternalMemoryBufferDesc_st',
  5616. 'struct_hipExternalMemoryHandleDesc_st',
  5617. 'struct_hipExternalMemoryHandleDesc_st_0_win32',
  5618. 'struct_hipExternalMemoryMipmappedArrayDesc_st',
  5619. 'struct_hipExternalSemaphoreHandleDesc_st',
  5620. 'struct_hipExternalSemaphoreHandleDesc_st_0_win32',
  5621. 'struct_hipExternalSemaphoreSignalNodeParams',
  5622. 'struct_hipExternalSemaphoreSignalParams_st',
  5623. 'struct_hipExternalSemaphoreSignalParams_st_0_fence',
  5624. 'struct_hipExternalSemaphoreSignalParams_st_0_keyedMutex',
  5625. 'struct_hipExternalSemaphoreSignalParams_st_params',
  5626. 'struct_hipExternalSemaphoreWaitNodeParams',
  5627. 'struct_hipExternalSemaphoreWaitParams_st',
  5628. 'struct_hipExternalSemaphoreWaitParams_st_0_fence',
  5629. 'struct_hipExternalSemaphoreWaitParams_st_0_keyedMutex',
  5630. 'struct_hipExternalSemaphoreWaitParams_st_params',
  5631. 'struct_hipFuncAttributes', 'struct_hipFunctionLaunchParams_t',
  5632. 'struct_hipGraphExec', 'struct_hipGraphNode',
  5633. 'struct_hipHostNodeParams', 'struct_hipIpcEventHandle_st',
  5634. 'struct_hipIpcMemHandle_st', 'struct_hipKernelNodeParams',
  5635. 'struct_hipLaunchParams_t', 'struct_hipMemAccessDesc',
  5636. 'struct_hipMemAllocNodeParams', 'struct_hipMemAllocationProp',
  5637. 'struct_hipMemAllocationProp_allocFlags', 'struct_hipMemLocation',
  5638. 'struct_hipMemPoolProps', 'struct_hipMemPoolPtrExportData',
  5639. 'struct_hipMemcpy3DParms', 'struct_hipMemsetParams',
  5640. 'struct_hipMipmappedArray', 'struct_hipPitchedPtr',
  5641. 'struct_hipPointerAttribute_t', 'struct_hipPos',
  5642. 'struct_hipResourceDesc', 'struct_hipResourceDesc_0_array',
  5643. 'struct_hipResourceDesc_0_linear',
  5644. 'struct_hipResourceDesc_0_mipmap',
  5645. 'struct_hipResourceDesc_0_pitch2D', 'struct_hipResourceViewDesc',
  5646. 'struct_hipTextureDesc', 'struct_hipUUID_t',
  5647. 'struct_hipUserObject', 'struct_hip_Memcpy2D', 'struct_ihipCtx_t',
  5648. 'struct_ihipEvent_t', 'struct_ihipGraph',
  5649. 'struct_ihipMemGenericAllocationHandle',
  5650. 'struct_ihipMemPoolHandle_t', 'struct_ihipModuleSymbol_t',
  5651. 'struct_ihipModule_t', 'struct_ihipStream_t',
  5652. 'struct_ihiprtcLinkState', 'struct_textureReference', 'uint32_t',
  5653. 'uint64_t', 'union_HIP_RESOURCE_DESC_st_res',
  5654. 'union_hipArrayMapInfo_memHandle',
  5655. 'union_hipArrayMapInfo_resource',
  5656. 'union_hipArrayMapInfo_subresource',
  5657. 'union_hipExternalMemoryHandleDesc_st_handle',
  5658. 'union_hipExternalSemaphoreHandleDesc_st_handle',
  5659. 'union_hipExternalSemaphoreSignalParams_st_0_nvSciSync',
  5660. 'union_hipExternalSemaphoreWaitParams_st_0_nvSciSync',
  5661. 'union_hipKernelNodeAttrValue', 'union_hipResourceDesc_res']
  5662. hipDeviceProp_t = hipDeviceProp_tR0600
  5663. hipGetDeviceProperties = hipGetDevicePropertiesR0600