K i^ddlmZddlmZGddeZGddeZGdd eZy ) ) TritonError)Optionalc,eZdZddeefdZdefdZy)InterpreterErrorN error_messagec||_yNrselfrs [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/triton/runtime/errors.py__init__zInterpreterError.__init__ *returnc"|jxsdS)Nr r s r__str__zInterpreterError.__str__ s!!'R'rr __name__ __module__ __qualname__rstrrrrrrrs+hsm+((rrc$eZdZdZdefdZdZy)OutOfResourcesc.||_||_||_yr )requiredlimitname)r r r!r"s rrzOutOfResources.__init__s    rrcVd|jd|jd|jdS)Nzout of resource: z , Required: z, Hardware limit: z0. Reducing block sizes or `num_stages` may help.)r"r r!rs rrzOutOfResources.__str__s9"499+\$--HZ[_[e[eZfgWX Xrc^t||j|j|jffSr )typer r!r"rs r __reduce__zOutOfResources.__reduce__s$T T]]DJJ BCCrN)rrrrrrr&rrrrrs XXDrrc,eZdZddeefdZdefdZy) PTXASErrorNrc||_yr r r s rrzPTXASError.__init__rrrc,|jxsd}d|S)Nrz PTXAS error: r r s rrzPTXASError.__str__"s**0b }o..rr rrrrr(r(s+hsm+//rr(N)errorsrtypingrrrr(rrrr-s1 ({( D[ D//r