{"id":30590,"date":"2026-02-23T00:06:54","date_gmt":"2026-02-22T22:06:54","guid":{"rendered":"https:\/\/hgpu.org\/?p=30590"},"modified":"2026-02-23T00:06:54","modified_gmt":"2026-02-22T22:06:54","slug":"hpc-an-llvm-based-automatic-parallelization-framework-with-heterogeneous-cpu-gpu-execution","status":"publish","type":"post","link":"https:\/\/hgpu.org\/?p=30590","title":{"rendered":"HPC++: An LLVM-Based Automatic Parallelization Framework with Heterogeneous CPU\u2013GPU Execution"},"content":{"rendered":"<p>We present HPC++, an automatic parallelization framework that transforms sequential C++ programs into efficient parallel implementations targeting both multi-core CPUs and OpenCL-capable GPUs. Operating at the LLVM Intermediate Representation (IR) level, HPC++ performs pattern-driven analysis to detect seven distinct parallelization strategies\u2014including reductions, elementwise maps, matrix multiplications, nested loops, search operations, histogram patterns, and independent function calls\u2014and emits optimized parallel wrappers with zero source-code modifications. On an Intel Core Ultra 7 255H (16 cores) with an integrated Intel Graphics GPU (128 CUs) employing a Unified Memory Architecture (UMA), the framework achieves peak speedups of 2009.4\u00d7 on GPU-offloaded workloads and 32.1\u00d7 on CPU-parallelized tasks, while maintaining numerical correctness across all 134 unit tests and 18 integration tests. We describe the system architecture, the IR-level analysis and transformation pipeline, the dual-target CPU\/GPU code generation strategy, and present comprehensive benchmark results across scientific computing workloads.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We present HPC++, an automatic parallelization framework that transforms sequential C++ programs into efficient parallel implementations targeting both multi-core CPUs and OpenCL-capable GPUs. Operating at the LLVM Intermediate Representation (IR) level, HPC++ performs pattern-driven analysis to detect seven distinct parallelization strategies\u2014including reductions, elementwise maps, matrix multiplications, nested loops, search operations, histogram patterns, and independent function [&hellip;]<\/p>\n","protected":false},"author":351,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11,90,3],"tags":[1782,1682,1814,1793],"class_list":["post-30590","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-opencl","category-paper","tag-computer-science","tag-hpc","tag-llvm","tag-opencl"],"views":568,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts\/30590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/users\/351"}],"replies":[{"embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30590"}],"version-history":[{"count":0,"href":"https:\/\/hgpu.org\/index.php?rest_route=\/wp\/v2\/posts\/30590\/revisions"}],"wp:attachment":[{"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hgpu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}