{"id":460751,"date":"2025-05-23T09:01:24","date_gmt":"2025-05-23T09:01:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=460751"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=460751","title":{"rendered":"<span>\u0415\u0441\u0442\u044c \u043b\u0438 \u0443 AMD \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u0432 AI\/ML\/DL. \u0427\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u042d\u0442\u043e \u0441\u043d\u043e\u0432\u0430 \u0415\u0444\u0438\u043c \u0413\u043e\u043b\u043e\u0432\u0438\u043d, \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 MLOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0432 Selectel. <a href=\"https:\/\/habr.com\/ru\/companies\/selectel\/articles\/909612\/\">\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b AMD \u0432 ML \u043c\u044b \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0432 \u0434\u0435\u0431\u0440\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 NVIDIA. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0440\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0443 AMD. \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434, \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u00ab\u043a\u0440\u0430\u0441\u043d\u044b\u0435\u00bb \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043c\u0438. \u042d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438 NVIDIA \u0438\u0445 \u043d\u0435 \u0438\u0437 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0432\u0437\u044f\u043b\u0438. \u0412\u0441\u0435 \u044d\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043a\u043e\u0440\u043d\u044f\u043c\u0438 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u0438\u0434\u0435\u0438, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u00abCUDA\u00bb, \u00abSM\u00bb, \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b Tesla \u0438 \u0442. \u0434.<a name=\"habracut\"><\/a><\/p>\n<blockquote><p><b>\u0417\u0430\u043a\u0430\u0436\u0438\u0442\u0435 <a href=\"https:\/\/selectel.ru\/services\/dedicated\/config\/?uuid=0c08458f-3368-4d38-8714-294e7213c62a?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=myselectel_article_amd4ml2_230525_content\">\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 GPU \u043e\u0442 AMD<\/a><\/b>. \u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c: 16-\u044f\u0434\u0435\u0440\u043d\u044b\u0439 AMD Ryzen<sup>TM<\/sup> 9 9950X 3,4 \u0413\u0413\u0446, \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 AMD Radeon RX 7900XT 20 \u0413\u0411 GDDR6, 48 \u0413\u0411 RAM DDR5 \u0438 1 000 \u0413\u0411 SSD NVMe M.2.<\/p><\/blockquote>\n<p> \u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u043c\u044b \u043f\u0440\u043e\u0431\u0435\u0436\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443 NVIDIA. \u041e\u0441\u043e\u0431\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0443\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043c \u00abCompute Capability\u00bb \u0438 \u00abSM\u00bb. \u0418 \u0435\u0441\u043b\u0438 \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0442\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0432\u0442\u043e\u0440\u044b\u043c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u044b \u0442\u0430\u043a\u0442\u0438\u0447\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043e\u0432 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u00abkernel\u00bb, \u00abWarp\u00bb, \u00abThread\u00bb, \u00abBlock\u00bb, \u00abGrid\u00bb.<\/p>\n<p> \u0427\u0442\u043e \u0436\u0435, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044f\u0441\u044c \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 AMD, \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p> <b>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c:<\/b><br \/> \u2192 <a href=\"#1\">Compute Unit<\/a><br \/> \u2192 <a href=\"#2\">LLVM \u0438 HIPCC<\/a><br \/> \u2192 <a href=\"#3\">\u0427\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 GFX<\/a><br \/> \u2192 <a href=\"#4\">Logical vs Actual<\/a><br \/> \u2192 <a href=\"#5\">\u0427\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 Warp<\/a><br \/> \u2192 <a href=\"#6\">\u0418\u0442\u043e\u0433<\/a><br \/> \u2192 <a href=\"#7\">\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/a><\/p>\n<p> <a name=\"1\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>Compute Unit<\/h2>\n<p><\/font><br \/> \u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u00abCompute Capability\u00bb \u043e\u0442 NVIDIA, \u043c\u044b \u0443\u043f\u0435\u0440\u043b\u0438\u0441\u044c \u0432 \u0442\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u00abSM\u00bb. \u0422\u0430\u043a \u0432\u043e\u0442, \u0441 AMD \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f. \u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u00abCompute Unit\u00bb.<\/p>\n<p> \u0418\u0442\u0430\u043a, Compute Unit (CU) \u043e\u0442 AMD \u2014 \u044d\u0442\u043e \u2014 \u0431\u0430\u0440\u0430\u0431\u0430\u043d\u043d\u0430\u044f \u0434\u0440\u043e\u0431\u044c\u2026<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a82\/95a\/002\/a8295a002747b23a53ea1aa0606d8cd6.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/a82\/95a\/002\/a8295a002747b23a53ea1aa0606d8cd6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a82\/95a\/002\/a8295a002747b23a53ea1aa0606d8cd6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u2014 \u044d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 Stream(ing) Multiprocessor \u043e\u0442 NVIDIA.<\/p>\n<p> \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u044f \u0431\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0441\u0442 \u00ab<a href=\"https:\/\/thechipletter.substack.com\/p\/demystifying-gpu-compute-architectures\">Demystifying GPU Compute Architectures<\/a>\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u0443\u043f\u043e\u0440 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0434\u0432\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0430. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043a\u043e\u0435-\u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u043c \u0438 \u0437\u0434\u0435\u0441\u044c.<\/p>\n<p> \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0442\u0435\u0440\u043c\u0438\u043d Stream(ing) Multiprocessor \u0431\u044b\u043b \u0432\u0432\u0435\u0434\u0435\u043d \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b Tesla, \u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0435\u0435 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b AMD, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 <a href=\"https:\/\/en.wikipedia.org\/wiki\/TeraScale_(microarchitecture)#TeraScale_1\">TeraScale<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/889\/62b\/19c\/88962b19cf82dadddee86f76de72d147.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/889\/62b\/19c\/88962b19cf82dadddee86f76de72d147.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/889\/62b\/19c\/88962b19cf82dadddee86f76de72d147.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430: \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 TeraScale \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 Compute Unit. \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0447\u0438\u043f \u043d\u0430 \u0431\u0430\u0437\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b TeraScale:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/841\/2ac\/220\/8412ac2207b8664d9a53a935c0ead094.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/841\/2ac\/220\/8412ac2207b8664d9a53a935c0ead094.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/841\/2ac\/220\/8412ac2207b8664d9a53a935c0ead094.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0421\u0445\u0435\u043c\u0430 \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/www.reddit.com\/r\/Amd\/comments\/dqpmtv\/part_2_an_architectural_deepdive_into_terascale\/\">\u0431\u043b\u043e\u0433\u0430 AMD \u043d\u0430 Reddit<\/a>. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0433\u043b\u044f\u0434\u0438\u043c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 Tesla:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/df4\/4b9\/2cd\/df44b92cd695012ae7e82938d8a5a86f.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/df4\/4b9\/2cd\/df44b92cd695012ae7e82938d8a5a86f.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/df4\/4b9\/2cd\/df44b92cd695012ae7e82938d8a5a86f.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0415\u0441\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0437\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u043b\u043a\u0438\u0435 \u0431\u043b\u043e\u043a\u0438, \u0442\u043e \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0439\u0442\u0438 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u2014 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 TPC (Texture\/Processor Cluster) \u0438 SIMD Core (Single Instruction Multiple Data):<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/476\/b3f\/b2c\/476b3fb2ce261a3e1c02b08271290ca4.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/476\/b3f\/b2c\/476b3fb2ce261a3e1c02b08271290ca4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/476\/b3f\/b2c\/476b3fb2ce261a3e1c02b08271290ca4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/4f4\/0d8\/41e\/4f40d841ee35e475f5c79ff3435bf98e.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/4f4\/0d8\/41e\/4f40d841ee35e475f5c79ff3435bf98e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/4f4\/0d8\/41e\/4f40d841ee35e475f5c79ff3435bf98e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u0418 \u0443\u0436\u0435 \u0437\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f. \u041d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u043d\u043e \u0437\u0443\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 SPU (Stream Processing Unit) \u0432 TeraScale:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/6d1\/e1b\/b2f\/6d1e1bb2fc5b3fc429a827eec93e5d13.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/6d1\/e1b\/b2f\/6d1e1bb2fc5b3fc429a827eec93e5d13.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/6d1\/e1b\/b2f\/6d1e1bb2fc5b3fc429a827eec93e5d13.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 Stream(ing) Multiprocessor \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b TeraScale \u2014 \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e Stream Processing Unit, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439, \u043a\u0430\u043a \u0438 Stream(ing) Multiprocessor, \u0438\u0437 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u043e-\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u043e\u0431\u0449\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0434\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0433\u0440\u0443\u0431\u043e\u0435 \u0438 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043e \u0441\u0443\u0433\u0443\u0431\u043e \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u00ab<a href=\"https:\/\/www.cs.cmu.edu\/afs\/cs\/academic\/class\/15869-f11\/www\/readings\/lindholm08_tesla.pdf\">NVIDIA TESLA:AUNIFIED GRAPHICS AND COMPUTING ARCHITECTURE<\/a>\u00bb \u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u00ab<a href=\"https:\/\/www.reddit.com\/r\/Amd\/comments\/dqpmtv\/part_2_an_architectural_deepdive_into_terascale\/\">Part 2 \u2014 An Architectural Deep-dive into TeraScale, GCN &amp; RDNA<\/a>\u00bb \u043d\u0430 Reddit.<\/p>\n<p> \u0422\u0430\u043a \u0430 \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043c \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 CU? \u042d\u0442\u043e\u0442-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0435\u0442\u0441\u044f? \u0418 \u0432\u043e\u043e\u0431\u0449\u0435, \u0441 \u0447\u0435\u0433\u043e \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 SM?<\/p>\n<p> \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u0440\u044f\u043c\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/understand\/hardware_implementation.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f AMD<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/fe4\/76a\/5e5\/fe476a5e5bf9597006d085179fd6e9e3.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/fe4\/76a\/5e5\/fe476a5e5bf9597006d085179fd6e9e3.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/fe4\/76a\/5e5\/fe476a5e5bf9597006d085179fd6e9e3.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u0431 \u044d\u0442\u043e\u043c \u0438\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0432\u0438\u0434\u0435\u043e \u00ab<a href=\"https:\/\/www.youtube.com\/watch?v=uu-3aEyesWQ\">Introduction to AMD GPU Hardware<\/a>\u00bb, \u0432\u044b\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c \u043d\u0430 YouTube-\u043a\u0430\u043d\u0430\u043b\u0435 AMD:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/d0a\/b18\/71e\/d0ab1871e22d94de0cc11d228490c8f7.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/d0a\/b18\/71e\/d0ab1871e22d94de0cc11d228490c8f7.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/d0a\/b18\/71e\/d0ab1871e22d94de0cc11d228490c8f7.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0422\u0430\u043a \u0432\u043e\u0442, Compute Unit \u043a\u0430\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Graphics_Core_Next\">Graphics Core Next (GCN)<\/a>.<\/p>\n<p> <a href=\"https:\/\/selectel.ru\/services\/cloud\/mlops\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=mlops_article_amd4ml2_230525_banner_045_ord\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/-2\/z8\/du\/-2z8dub0xcp2rkd0dixzvvl4daa.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/-2\/z8\/du\/-2z8dub0xcp2rkd0dixzvvl4daa.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/-2\/z8\/du\/-2z8dub0xcp2rkd0dixzvvl4daa.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p><\/a><\/p>\n<p> <a name=\"2\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>LLVM \u0438 HIPCC<\/h2>\n<p><\/font><br \/> \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u043f\u0440\u043e\u0441: \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u043c\u0438\u0440\u0435 AMD \u043d\u0435\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 <b>sm_XX<\/b> \u0438 <b>compute_XX<\/b>? \u0421\u043a\u0430\u0436\u0435\u043c, \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0440\u043e\u0434\u0435 <b>cu_XX<\/b> \u0438 <b>compute_XX<\/b>.<\/p>\n<p> \u0412\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 NVIDIA, AMD \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0410 \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u0442\u0435\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0443 NVIDIA.<\/p>\n<p> \u042d\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0435\u0449\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0435 \u043d\u0430 \u0444\u043e\u043d\u0435 \u0444\u0440\u0430\u0437\u044b \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438: \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 CDNA \u0438 RDNA \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b GCN.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/70d\/a4d\/7ca\/70da4d7ca7cc74739ac2437af6133f6c.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/70d\/a4d\/7ca\/70da4d7ca7cc74739ac2437af6133f6c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/70d\/a4d\/7ca\/70da4d7ca7cc74739ac2437af6133f6c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0422\u043e \u0435\u0441\u0442\u044c \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u2014 \u0441 \u043c\u043e\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u2014 \u0431\u044b\u043b\u0430 \u0431\u044b \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0438\u043d\u0430\u0440\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 GPU.<\/p>\n<p> \u0418 \u0432\u043e\u0442 \u0442\u0443\u0442 \u043e\u043f\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0430 \u043f\u0440\u0435\u0436\u0434\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 NVCC \u043e\u0442 NVIDIA \u2014 HIPCC. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0440\u0430\u0434\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0441\u043e\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043b\u0438 \u043a\u0430\u043a-\u0442\u043e HIPCC \u0438 LLVM. \u0411\u0435\u0433\u043b\u044b\u0439 \u0433\u0443\u0433\u043b\u0438\u043d\u0433 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e, \u043a\u0430\u043a \u0438 NVCC, HIPCC <a href=\"https:\/\/github.com\/ROCm\/llvm-project\/tree\/amd-staging\">\u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 LLVM<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/b8c\/90b\/881\/b8c90b8816137047385548594de514a2.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/b8c\/90b\/881\/b8c90b8816137047385548594de514a2.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/b8c\/90b\/881\/b8c90b8816137047385548594de514a2.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041a \u043c\u043e\u0435\u043c\u0443 \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIPCC\/en\/latest\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> HIPCC \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435\u0433\u043e. \u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 (20 \u043c\u0430\u044f 2025) \u044d\u0442\u043e \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0438:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/35f\/396\/b31\/35f396b3109b0b68d1b7c820715a5eaa.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/35f\/396\/b31\/35f396b3109b0b68d1b7c820715a5eaa.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/35f\/396\/b31\/35f396b3109b0b68d1b7c820715a5eaa.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u044b \u043e\u0441\u043e\u0431\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u0442\u0435. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c <a href=\"https:\/\/docs.nvidia.com\/cuda\/cuda-compiler-driver-nvcc\/\">\u043d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a> \u043f\u043e NVCC.<\/p>\n<p> \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f, \u0442\u043e \u043c\u043e\u0436\u043d\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0430\u0442\u043a\u043d\u0443\u0442\u044c\u0441\u044f <a href=\"https:\/\/rocm.docs.amd.com\/projects\/llvm-project\/en\/latest\/index.html\">\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0444\u043e\u0440\u043a\u0443 LLVM-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 AMD<\/a>. \u0422\u0430\u043c \u0432 \u0447\u0438\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/136\/881\/dc3\/136881dc3c27169ec7f51dff01ce7388.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/136\/881\/dc3\/136881dc3c27169ec7f51dff01ce7388.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/136\/881\/dc3\/136881dc3c27169ec7f51dff01ce7388.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab<a href=\"https:\/\/rocm.docs.amd.com\/en\/docs-6.0.2\/reference\/rocmcc.html#compiler-reference-guide\">Compiler reference guide<\/a>\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/fc3\/1cf\/436\/fc31cf436d2ca1de22263ed24711fbcd.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/fc3\/1cf\/436\/fc31cf436d2ca1de22263ed24711fbcd.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/fc3\/1cf\/436\/fc31cf436d2ca1de22263ed24711fbcd.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0418 \u0432\u043e\u0442 \u0442\u0443\u0442 \u0443\u0436\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/p>\n<p> <a name=\"3\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0427\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 GFX<\/h2>\n<p><\/font><br \/> \u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435 \u043c\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e <b>gfxYZT<\/b> \u2014 \u044d\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433 <b>sm_XY<\/b>. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0438\u0441\u043a\u0430\u0432 \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 <b>YZT<\/b> \u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u0438\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/081\/f65\/e40\/081f65e4029cd8ac0d6c900f0049170a.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/081\/f65\/e40\/081f65e4029cd8ac0d6c900f0049170a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/081\/f65\/e40\/081f65e4029cd8ac0d6c900f0049170a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0412\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u0436\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 gfx\u2019\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u043d \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 Processors. \u0418 \u0435\u0441\u043b\u0438 \u043f\u043e\u0439\u0442\u0438 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443, \u0442\u043e\u2026 \u0432\u0441\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0447\u0435\u043d\u044c-\u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/c57\/067\/515\/c570675150656bbb4873d8e8aa860072.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/c57\/067\/515\/c570675150656bbb4873d8e8aa860072.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/c57\/067\/515\/c570675150656bbb4873d8e8aa860072.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, gfx\u2019\u044b \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0441\u0440\u0430\u0437\u0443. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0447\u0435\u0442\u043a\u043e\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 YZT\u2019\u0430\u043c\u0438 \u0438 \u043a\u0430\u043a\u0438\u043c\u0438-\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c.<\/p>\n<blockquote><p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u044f \u043d\u0430\u0431\u0440\u0435\u043b \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e <a href=\"https:\/\/llvm.org\/docs\/AMDGPUUsage.html#assembler\">\u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/f4a\/719\/49b\/f4a71949b82968ae27a44af6a05c694f.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/f4a\/719\/49b\/f4a71949b82968ae27a44af6a05c694f.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/f4a\/719\/49b\/f4a71949b82968ae27a44af6a05c694f.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<\/blockquote>\n<p> \u0410 \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435! \u0413\u043b\u044f\u0434\u044f \u043d\u0430 \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0449\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e: <\/p>\n<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Graphics_Core_Next#Comparison_of_GCN_GPUs\">GCN<\/a>,<\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/CDNA_(microarchitecture)\">CDNA<\/a>,<\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/RDNA_(microarchitecture)\">RDNA<\/a>.<\/li>\n<\/ul>\n<p> \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 (Core) \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 (ISA). \u0422\u0430\u043a\u0436\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0439: <\/p>\n<ul>\n<li>GCN: GCN 1, GCN 2, GCN 3, GCN 4, GCN 5,<\/li>\n<li>CDNA: CDNA 1, CDNA 2, CDNA 3,<\/li>\n<li>RDNA: RDNA 1, RDNA 2, RDNA 3.<\/li>\n<\/ul>\n<p> \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435\u043c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u2014 \u043d\u0435 \u043e\u0434\u0438\u043d \u043a \u043e\u0434\u043d\u043e\u043c\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, GFX9 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u0436 \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f\u043c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440, \u043f\u0440\u0438\u0447\u0435\u043c \u043e\u0434\u043d\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430. \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0439 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439.<\/p>\n<p> \u041f\u043e \u0441\u0443\u0442\u0438, YZT \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0438 \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. Y \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u2014 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0443\u0437\u043d\u0430\u0447\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c. ZT \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430.<\/p>\n<p> \u0422\u0443\u0442 \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441: \u0430 \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043c \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0438\u0445 gfxYZT? \u0414\u043e\u043b\u0436\u0435\u043d \u0436\u0435 \u0431\u044b\u0442\u044c \u0443 AMD \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u043d \u0435\u0441\u0442\u044c. <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/understand\/compilers.html#hipcc\">\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u043e\u0447\u0435\u043d\u044c \u0441\u0436\u0430\u0442\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u0434. \u0415\u0441\u043b\u0438 \u0432\u043a\u0440\u0430\u0442\u0446\u0435, \u0442\u043e, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 NVIDIA, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c JIT \u0438 FatBinary.<\/p>\n<p> \u041f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 JIT-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043f\u0440\u044f\u043c\u043e <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/how-to\/hip_rtc.html\">\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430<\/a> \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438, \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u044d\u0442\u043e \u043d\u0435 \u0441\u0430\u043c\u0430\u044f \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f (\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u043a\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0443\u0436 \u0442\u043e\u0447\u043d\u043e). \u041d\u0430\u0434\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 &lt;hip\/hiprtc.h&gt; \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043a\u043e\u0434, \u0438 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 GPU, \u0432 \u0447\u0438\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438 \u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c gfxYZT, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 gfxYZT \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 &#8212;gpu-architecture.<\/p>\n<p> \u0412 \u044d\u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u00ab\u0422\u043e\u043b\u0441\u0442\u044f\u043a\u0430 \u0411\u0438\u043d\u0430\u00bb (FatBinary) \u0443 AMD \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/342\/84d\/786\/34284d78677943da1d122f138e82ca8a.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/342\/84d\/786\/34284d78677943da1d122f138e82ca8a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/342\/84d\/786\/34284d78677943da1d122f138e82ca8a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0414\u0430\u0431\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0435 \u0444\u0430\u0442\u0431\u0438\u043d\u0430\u0440\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0433\u043e \u00abHello, world!\u00bb \u0432 \u043c\u0438\u0440\u0435 GPGPU, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/tutorial\/saxpy.html\">Single-precision A times X Plus Y (SAXPY)<\/a>.<\/p>\n<p> \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u043e\u0441\u0442\u0430\u043b\u0441\u044f: \u043f\u043e\u0447\u0435\u043c\u0443 GFX? \u0425\u043e\u0442\u044f, \u0434\u0443\u043c\u0430\u044e, \u0442\u0443\u0442 \u043e\u0442\u0432\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u0421\u044e\u0440\u043f\u0440\u0438\u0437: \u044d\u0442\u043e <a href=\"https:\/\/en.wiktionary.org\/wiki\/gfx\">\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 graphics<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e9e\/363\/b92\/e9e363b92ac6cb9aa599cd0fa980aeb8.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/e9e\/363\/b92\/e9e363b92ac6cb9aa599cd0fa980aeb8.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e9e\/363\/b92\/e9e363b92ac6cb9aa599cd0fa980aeb8.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> <a name=\"4\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>Logical vs Actual<\/h2>\n<p><\/font><br \/> \u041c\u044b \u0431\u043e\u043b\u0435\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433 SM\u2019\u043e\u043a. \u0421\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0436\u0435\u043b\u0435\u0437\u043d\u0430\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u043f\u0440\u044f\u043c\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434, \u043a\u0430\u043a \u0435\u0433\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c \u0438 \u0442. \u0434.<\/p>\n<p> \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0435\u0449\u0435 Warp\u2019\u044b, Thread\u2019\u044b. Block\u2019\u0438 \u0438 Grid\u2019\u044b. \u0427\u0442\u043e \u044d\u0442\u043e? \u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e? \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e? \u0412\u0441\u0435 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u043d\u0430 \u043d\u0438\u0445 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c.<\/p>\n<p> \u0418 \u043d\u0430\u0447\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e <a href=\"https:\/\/stackoverflow.com\/questions\/2207171\/how-much-is-run-concurrently-on-a-gpu-given-its-numbers-of-sms-and-sps\/2213744#2213744\">\u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0430 Stack Overflow<\/a>. \u0412 \u043d\u0435\u043c \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043c\u0438\u043c\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0442\u043e, \u043a\u0430\u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0436\u0435\u043b\u0435\u0437\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438 \u043a\u0430\u043a \u043e\u0434\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0435\u0442\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c:<\/p>\n<blockquote><p>\u00ab&#8230;That&#8217;s the logical hierarchy. You really only need to understand the logical hierarchy to implement a function on the GPU, however to get performance you need to understand the hardware too which is SMs and SPs\u00bb.<\/p><\/blockquote>\n<p> \u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0447\u0435\u0442\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0435\u0441\u044f \u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0442 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 GPU \u0438 \u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0434. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p> \u0418\u0442\u0430\u043a, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u0434 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u0432\u0437\u044f\u0442\u043e <a href=\"https:\/\/www.cs.cmu.edu\/afs\/cs\/academic\/class\/15869-f11\/www\/readings\/lindholm08_tesla.pdf\">\u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 Tesla):<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/dd0\/d59\/9ac\/dd0d599ac69481589d7362ca2a3f42ba.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/dd0\/d59\/9ac\/dd0d599ac69481589d7362ca2a3f42ba.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/dd0\/d59\/9ac\/dd0d599ac69481589d7362ca2a3f42ba.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0414\u0430\u0431\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0430\u0441\u0442\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u043c\u044b\u0441\u043b\u044c\u044e \u043f\u043e \u0434\u0440\u0435\u0432\u0443, \u0441\u043e\u0448\u043b\u0435\u043c\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b \u00abCooperative thread array or thread block\u00bb \u0432 \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0439 \u0432\u044b\u0448\u0435 <a href=\"https:\/\/www.cs.cmu.edu\/afs\/cs\/academic\/class\/15869-f11\/www\/readings\/lindholm08_tesla.pdf\">\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 Tesla \u0438 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab<a href=\"https:\/\/docs.nvidia.com\/cuda\/cuda-c-programming-guide\/#thread-hierarchy\">Thread Hierarchy<\/a>\u00bb \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e: <\/p>\n<ul>\n<li>\u043e\u0434\u0438\u043d CUDA-kernel \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e CUDA-thread,<\/li>\n<li>CUDA-thread\u2019\u044b \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 CUDA-thread-block\u2019\u0438,<\/li>\n<li>CUDA-thread-block\u2019\u0438 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 CUDA-Grid\u2019\u044b.<\/li>\n<\/ul>\n<p> \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/bcc\/f9d\/00a\/bccf9d00a9f4e4f60f6a0e060fd6bf7e.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/bcc\/f9d\/00a\/bccf9d00a9f4e4f60f6a0e060fd6bf7e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/bcc\/f9d\/00a\/bccf9d00a9f4e4f60f6a0e060fd6bf7e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0412\u043e\u043f\u0440\u043e\u0441: \u0430 \u043a\u0430\u043a \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0443 AMD? \u041e\u0442\u0432\u0435\u0442 \u0435\u0441\u0442\u044c \u0432 \u0432\u0438\u0434\u0435\u043e \u00ab<a href=\"https:\/\/www.youtube.com\/watch?v=uu-3aEyesWQ%26list=PLx15eYqzJifehAxhWRD6T35GZwAqM9IK4%26index=4\">Introduction to AMD GPU Hardware<\/a>\u00bb.<\/p>\n<p> \u041a\u0430\u043a \u0438 \u0443 NVIDIA, \u0443 AMD \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u2014 <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/what_is_hip.html\">Heterogeneous-computing Interface for Portability (HIP)<\/a>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0435\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0442. \u043a. \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0435\u043c\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c, \u0434\u0430\u0431\u044b \u043d\u0438\u0436\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043e \u0447\u0435\u043c \u0440\u0435\u0447\u044c.<\/p>\n<p> \u0418\u0442\u0430\u043a: <\/p>\n<ul>\n<li>\u043e\u0434\u0438\u043d HIP-kernel \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e HIP-thread\u2019\u0430,<\/li>\n<li>HIP-thread-\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 HIP-Workgroup\u2019\u044b,<\/li>\n<li>HIP-Workgroup-\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 HIP-Grid\u2019\u044b.<\/li>\n<\/ul>\n<p> \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a8c\/e08\/8e2\/a8ce088e23c6b763a4deda5f01d83497.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/a8c\/e08\/8e2\/a8ce088e23c6b763a4deda5f01d83497.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a8c\/e08\/8e2\/a8ce088e23c6b763a4deda5f01d83497.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> <a name=\"5\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0427\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 Warp<\/h2>\n<p><\/font><br \/> \u0421\u0442\u043e\u043f! \u0410 \u043e\u0442\u043a\u0443\u0434\u0430 \u0442\u0443\u0442 \u0432\u0437\u044f\u043b\u0438\u0441\u044c Warp\u2019\u044b? \u0418 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0443\u0442 \u043d\u0435 Workgroup\u2019\u044b, \u0430 Block\u2019\u0438? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f. \u0427\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435 Warp? \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u043e\u043f\u044f\u0442\u044c \u0436\u0435 <a href=\"https:\/\/www.cs.cmu.edu\/afs\/cs\/academic\/class\/15869-f11\/www\/readings\/lindholm08_tesla.pdf\">\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a> \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 Tesla \u0438, \u0447\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u043c Ctrl\/Cmd+F:<\/p>\n<blockquote><p>\u00abTo manage and execute hundreds of threads running several different programs efficiently, the Tesla SM uses a new processor architecture we call single-instruction, multiple-thread (SIMT). The SM\u2019s SIMT multithreaded instruction unit creates, manages, schedules, and executes threads in groups of 32 parallel threads called warps\u00bb.<\/p><\/blockquote>\n<p> \u0417\u0434\u0435\u0441\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 SM\u2019\u043e\u0432 thread\u2019\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e 32 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 thread\u2019\u0430 \u2014 warp\u2019\u044b. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0440\u0430\u0437\u0430:<\/p>\n<blockquote><p>\u00abThe term warp originates from weaving, the first parallel thread technology\u00bb.<\/p><\/blockquote>\n<p> \u0417\u0434\u0435\u0441\u044c \u0430\u0432\u0442\u043e\u0440\u044b \u0441\u0442\u0430\u0442\u044c\u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u043e\u044f\u0441\u043d\u044f\u044e\u0442, \u0447\u0442\u043e \u0441\u043b\u043e\u0432\u043e \u00abwarp\u00bb \u0431\u0435\u0440\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u043e \u0438\u0437\u2026 \u0442\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430! \u041e\u0431\u043e\u0436\u0430\u044e, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0437\u044f\u043b\u0438\u0441\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u043d\u0438 \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0442! \u0411\u0435\u0437 \u0448\u0443\u0442\u043e\u043a, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e.<\/p>\n<p> \u041f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e, \u0442\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e! \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043f\u0430\u043b\u0435\u043e\u043b\u0438\u0442\u0430 (\u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c \u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u044d\u043d\u0446\u0438\u043a\u043b\u043e\u043f\u0435\u0434\u0438\u0438) \u0441\u0442\u0430\u043b\u0430 \u0440\u043e\u0434\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0438\u0446\u0435\u0439 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439! \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0442\u043e \u0432\u043e\u0442 \u0432\u0430\u043c <a href=\"https:\/\/adorno.design\/editorial\/weaving-one-of-the-earliest-tech-booms\/?srsltid=AfmBOopF7bkuA03wMJSDc5V6XZbtIfL6nPclnKxf5YcrJJdv5fI9rwUV\">\u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u0441 \u043a\u0440\u0430\u0442\u043a\u0438\u043c \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u044d\u043a\u0441\u043a\u0443\u0440\u0441\u043e\u043c \u0432 \u044d\u0442\u0443 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e. \u041d\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a NVIDIA.<\/p>\n<p> Stream(ing) Multiprocessor, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Single_instruction,_multiple_threads\">SIMT (Single instruction, multiple threads<\/a>), \u043d\u0430\u0440\u0435\u0437\u0430\u0435\u0442 CUDA-thread\u2019\u044b \u043d\u0430 Warp\u2019\u044b, \u043f\u043e 32 CUDA-thread\u2019\u0430 \u043d\u0430 \u043e\u0434\u0438\u043d Warp.<\/p>\n<p> \u0422\u0430\u043a \u0432\u043e\u0442, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443, \u043e\u0442\u043a\u0443\u0434\u0430 \u0442\u0443\u0442 (\u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u0443 AMD) \u0432\u0437\u044f\u043b\u0438\u0441\u044c Warp\u2019\u044b. \u0418 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0443\u0442 \u043d\u0435 Workgroup\u2019\u044b, \u0430 Block\u2019\u0438? \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e AMD <a href=\"https:\/\/rocm.docs.amd.com\/projects\/HIP\/en\/latest\/understand\/hardware_implementation.html#compute-units\">\u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0432\u0441\u0435 \u0442\u0443 \u0436\u0435 SIMT-\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/cb5\/8a8\/fdf\/cb58a8fdf6fcb6d79fcb4fd915cf2425.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/cb5\/8a8\/fdf\/cb58a8fdf6fcb6d79fcb4fd915cf2425.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/cb5\/8a8\/fdf\/cb58a8fdf6fcb6d79fcb4fd915cf2425.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041b\u0430\u0434\u043d\u043e, \u0441 \u044d\u0442\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0431\u043e\u043b\u0435\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c. \u0412\u0442\u043e\u0440\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0443\u0442 \u043d\u0435 Workgroup\u2019\u044b, \u0430 Block\u2019\u0438? \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u043c\u0443 \u0432\u044b\u0448\u0435 <a href=\"https:\/\/www.youtube.com\/watch?v=uu-3aEyesWQ%26list=PLx15eYqzJifehAxhWRD6T35GZwAqM9IK4%26index=4\">\u0432\u0438\u0434\u0435\u043e<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/6f3\/eb7\/299\/6f3eb72994b97cf2b7160a888b0de15a.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/6f3\/eb7\/299\/6f3eb72994b97cf2b7160a888b0de15a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/6f3\/eb7\/299\/6f3eb72994b97cf2b7160a888b0de15a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438 AMD CUDA-thread-block (\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e Block) \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c HIP-Workgroup\u2019\u0430. \u0410 \u0435\u0441\u0442\u044c \u043b\u0438 \u0434\u043b\u044f Warp\u2019\u0430 \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438 AMD? \u0414\u0430, \u0435\u0441\u0442\u044c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/394\/e7d\/369\/394e7d3699a1547b01fe4063dbba6f15.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/394\/e7d\/369\/394e7d3699a1547b01fe4063dbba6f15.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/394\/e7d\/369\/394e7d3699a1547b01fe4063dbba6f15.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u0418 \u0432\u0441\u044f \u044d\u0442\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043a\u0432\u0438\u043b\u0438\u0431\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043e\u0442 \u0432 \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/300\/b2e\/71a\/300b2e71a8bd28e50afd15b3ba20af3a.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/300\/b2e\/71a\/300b2e71a8bd28e50afd15b3ba20af3a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/300\/b2e\/71a\/300b2e71a8bd28e50afd15b3ba20af3a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u043d\u043e \u043e\u0441\u043e\u0431\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p> <a name=\"6\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p><\/font><br \/> \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u0432\u0435\u0441\u0442\u0438 \u0438\u0442\u043e\u0433. <\/p>\n<ul>\n<li><font color=\"#FF0000\"><b>AMD<\/b><\/font> \u0438 <font color=\"#008000\"><b>NVIDIA<\/b><\/font> \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0433\u043e \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b.<\/li>\n<li>\u041e\u0431\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 (<font color=\"#008000\"><b>NVCC<\/b><\/font> \u0438 <font color=\"#FF0000\"><b>HIPCC<\/b><\/font>) \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 LLVM\u2019\u043d\u044b\u0439 \u0431\u044d\u043a\u0435\u043d\u0434, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 device-\u043a\u043e\u0434\u0430, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 ISA.<\/li>\n<li>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 <font color=\"#008000\"><b>SM<\/b><\/font>, \u044d\u0442\u043e <font color=\"#FF0000\"><b>CU<\/b><\/font>.<\/li>\n<li><font color=\"#FF0000\"><b>AMD<\/b><\/font> \u0438 <font color=\"#008000\"><b>NVIDIA<\/b><\/font> \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 SIMT-\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.<\/li>\n<li>\u0427\u0435\u0440\u0435\u0437 \u044d\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0430 \u0432 <font color=\"#FF0000\"><b>HIP<\/b><\/font> \u0438 <font color=\"#008000\"><b>CUDA<\/b><\/font> \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0430.<\/li>\n<\/ul>\n<p> <a name=\"7\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h2>\n<p><\/font><br \/> \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043a\u043e\u043c\u043a\u0430\u043d\u043e, \u043d\u043e \u043b\u0438\u0445\u0430 \u0431\u0435\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e. \u041d\u0430\u0434\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043e\u0442 \u0447\u0435\u0433\u043e-\u0442\u043e \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0441\u0443\u0449\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0410 \u043a\u0430\u043a\u043e\u0432\u044b \u043e\u043d\u0438, \u044d\u0442\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b? \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c?<\/p>\n<p> \u0414\u0430\u043b\u044c\u0448\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0430\u0437\u043e\u0432\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0441\u0443\u0449\u043d\u044b\u043c\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 AI\/DL\/ML\u2019\u043d\u043e\u0439 \u0442\u0435\u043c\u044b. <\/p>\n<ul>\n<li>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 ML-\u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0430 AMD? \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e? \u0421\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u043d\u0430 NVIDIA? \u0427\u0442\u043e \u0442\u0430\u043c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432? \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Docker? \u0415\u0441\u0442\u044c \u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432: TensorFlow, PyTorch, JAX \u0438 \u0434\u0440\u0443\u0433\u0438\u0445?<\/li>\n<li>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u043d\u0444\u0435\u0440\u0435\u043d\u0441 ML-\u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0430 AMD? \u0415\u0441\u0442\u044c \u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 Inference-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432: vLLM, Ollama \u0438\u043b\u0438 Triton Inference Server?<\/li>\n<li>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 AMD \u0432 Kubernetes? \u0415\u0441\u0442\u044c \u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438 GPU Operator\u2019\u0430, Device-\u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432? \u0427\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 GPU (\u0430\u043d\u0430\u043b\u043e\u0433 NDCG)?<\/li>\n<li>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Distributed ML \u043d\u0430 AMD? \u0427\u0442\u043e AMD \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0432\u0435\u0441 NVLink, NVSwitch \u0438 InfiniBand? \u0415\u0441\u0442\u044c \u043b\u0438 \u0443 AMD \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 NCCL? \u041a\u0430\u043a \u044d\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043b\u0438 PyTorch, TensorFlow \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 AMD\u2019\u0448\u043d\u044b\u0445 GPU?<\/li>\n<li>\u0414\u043e\u0440\u043e\u0433\u043e \u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c ML-\u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 AMD? \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0438\u0442 GPU \u043e\u0442 AMD? \u041a\u0430\u043a \u0446\u0435\u043d\u043d\u0438\u043a\u0438 \u043d\u0430 AMD\u2019\u0448\u043d\u044b\u0435 GPU \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u0446\u0435\u043d\u0430\u043c\u0438 \u043d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u043e\u0442 NVIDIA?<\/li>\n<li>\u0412\u044b\u0433\u043e\u0434\u043d\u043e \u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c ML-\u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 AMD? \u0410 \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 AMD\u2019\u0448\u043d\u044b\u0435 GPU \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442? \u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u044e\u0442 \u043b\u0438 \u043e\u043d\u0438 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u044d\u043d\u0435\u0440\u0433\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c? \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u0441 NVIDIA- \u043d\u0430 AMD-\u0441\u0442\u0435\u043a?<\/li>\n<\/ul>\n<p> \u042d\u0442\u043e \u043d\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439. \u042d\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435, \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445. \u041a\u0440\u0430\u0442\u043a\u043e \u043e \u0447\u0435\u043c-\u0442\u043e \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b <a href=\"https:\/\/imlconf.com\/archive\/2024%2520Autumn\/talks\/0514efbb1c2a48238cce0b88356d6543\/?referer=%252F\">\u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 I\u2019ML<\/a>, \u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0435\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e.<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/912108\/\"> https:\/\/habr.com\/ru\/articles\/912108\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/999\/77b\/ca6\/99977bca6019170401a3a22af4b48207.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/div>\n<p> \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u042d\u0442\u043e \u0441\u043d\u043e\u0432\u0430 \u0415\u0444\u0438\u043c \u0413\u043e\u043b\u043e\u0432\u0438\u043d, \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 MLOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0432 Selectel. <a href=\"https:\/\/habr.com\/ru\/companies\/selectel\/articles\/909612\/\">\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b AMD \u0432 ML \u043c\u044b \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0432 \u0434\u0435\u0431\u0440\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 NVIDIA. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0440\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0443 AMD. \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434, \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u00ab\u043a\u0440\u0430\u0441\u043d\u044b\u0435\u00bb \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043c\u0438. \u042d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438 NVIDIA \u0438\u0445 \u043d\u0435 \u0438\u0437 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0432\u0437\u044f\u043b\u0438. \u0412\u0441\u0435 \u044d\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043a\u043e\u0440\u043d\u044f\u043c\u0438 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u0438\u0434\u0435\u0438, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u00abCUDA\u00bb, \u00abSM\u00bb, \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b Tesla \u0438 \u0442. \u0434.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-460751","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/460751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=460751"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/460751\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=460751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=460751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=460751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}