') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); issue/1311 - feat: refactor InfiniCore cpu and cuda-like runtime to InfiniRT by spike-zhu · Pull Request #1342 · InfiniTensor/InfiniCore · GitHub
Skip to content

issue/1311 - feat: refactor InfiniCore cpu and cuda-like runtime to InfiniRT - #1342

Merged
voltjia merged 1 commit into
issue/1373from
issue/1311
Jul 10, 2026
Merged

issue/1311 - feat: refactor InfiniCore cpu and cuda-like runtime to InfiniRT#1342
voltjia merged 1 commit into
issue/1373from
issue/1311

Conversation

@spike-zhu

@spike-zhuspike-zhu commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

将 InfiniCore 中 CPU runtime 的实现调整为复用 InfiniRT 已有的 CPU runtime 接口,对应 InfiniRT 中更改见 InfiniTensor/InfiniRT#8

单算子测试截图:
image
image

@spike-zhu
spike-zhu requested a review from a teamJune 25, 2026 13:23
@spike-zhuspike-zhu self-assigned this Jun 25, 2026
@spike-zhu
spike-zhu marked this pull request as draft June 25, 2026 13:23
@spike-zhu
spike-zhuforce-pushed the issue/1311 branch 5 times, most recently from 22ae5cc to 2a5e0e1CompareJuly 6, 2026 01:59
Comment threadsrc/infinicore/graph/graph.cc
Comment threadsrc/infinicore/context/context_impl.cc Outdated
Comment threadsrc/runtime/infini_rt.hpp Outdated
Comment threadtest/infiniop/libinfiniop/utils.py
@voltjia

Copy link
Copy Markdown
Collaborator

哦对,还有就是 CI,因为咱们相当于是引入了新的 InfiniRT 作为依赖,所以如果想让 CI 通过的话应该也需要做些 workflow 的修改。

@spike-zhuspike-zhu changed the title issue/1311 - feat: refactor InfiniCore cpu runtime to InfiniRTissue/1311 - feat: refactor InfiniCore cpu and cuda-like runtime to InfiniRTJul 8, 2026
@spike-zhu

Copy link
Copy Markdown
ContributorAuthor

替换 InfiniCore 运行时为 InfiniRT 基建后,InfiniLM 9g8b tp=2 推理测试截图:
image

@spike-zhu
spike-zhu changed the base branch from main to issue/1373July 8, 2026 02:57
@spike-zhu
spike-zhu marked this pull request as ready for review July 8, 2026 03:05
@spike-zhu
spike-zhu requested a review from voltjiaJuly 8, 2026 03:23
@voltjia
voltjia merged commit f0ecc19 into issue/1373Jul 10, 2026
2 of 10 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@spike-zhu@voltjia