{"id":384,"date":"2022-09-11T10:14:10","date_gmt":"2022-09-11T10:14:10","guid":{"rendered":"https:\/\/blogs.gentoo.org\/gsoc\/?p=384"},"modified":"2022-09-11T10:14:10","modified_gmt":"2022-09-11T10:14:10","slug":"week-11-report-for-refining-rocm-packages-in-gentoo","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/gsoc\/2022\/09\/11\/week-11-report-for-refining-rocm-packages-in-gentoo\/","title":{"rendered":"Week 11 Report for Refining ROCm Packages in Gentoo"},"content":{"rendered":"<p>My progress this week is mainly writing wiki and refining <code>rocm.eclass<\/code>.<\/p>\n<p>Although the current eclass can work with my new ebuilds [1],  Micha\u0142 G\u00f3rny has pointed out various flaws on the Github PR [2]. He also pointed out the necessity about <code>rocm.eclass<\/code>, because  it seems like a combination of two eclasses. In my opinion, <code>rocm.eclass<\/code> has its value, mainly for handling <code>USE_EXPANDS<\/code> and common phase functions. The ugly part is mainly in rocm_src_test: due to the inconsistency of test methods of packages in [3], I have to detect which method is using and do it accordingly. So my plan is to split the one-size-fits-all rocm_src_test into two functions, corresponding to two scenarios (cmake test or standalone binary), and let each ebuild decide which to use. This can avoid detailed detection code that make rocm_src_test bloated.<\/p>\n<p>Wiki writing: I think the main part of ROCm wiki[1] and HIP[2] is nearly finished. But due to the delay of <code>rocm.eclass<\/code>, the related information is not appended (ROCm#Developing guide). There is also a section a reserved: ROCm#Installation guide. I have little clue on how to write this part, because ROCm is a wide collection of packages. Maybe a meta package (there are users working on this) would be helpful.<\/p>\n<p>To be honest I&#8217;m a bit anxious, because there is only one week left, but there are still a lot to be determined and tested on <code>rocm.eclass<\/code> along with the <code>sci-libs\/roc*<\/code> ebuilds. I hope I can resolve these core issues in the last week.<\/p>\n<p>[1] https:\/\/github.com\/littlewu2508\/gentoo\/tree\/rocm-5.1.3-scilibs<br \/>\n[2] https:\/\/github.com\/gentoo\/gentoo\/pull\/26784<br \/>\n[3] https:\/\/github.com\/ROCmSoftwarePlatform<br \/>\n[4] https:\/\/wiki.gentoo.org\/wiki\/ROCm<br \/>\n[5] https:\/\/wiki.gentoo.org\/wiki\/HIP<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My progress this week is mainly writing wiki and refining rocm.eclass. Although the current eclass can work with my new ebuilds [1], Micha\u0142 G\u00f3rny has pointed out various flaws on the Github PR [2]. He also pointed out the necessity &hellip; <a href=\"https:\/\/blogs.gentoo.org\/gsoc\/2022\/09\/11\/week-11-report-for-refining-rocm-packages-in-gentoo\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/384"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/comments?post=384"}],"version-history":[{"count":3,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/384\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/media?parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/categories?post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/tags?post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}