{"id":2106,"date":"2024-02-20T09:45:37","date_gmt":"2024-02-20T01:45:37","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=2106"},"modified":"2024-02-20T09:45:37","modified_gmt":"2024-02-20T01:45:37","slug":"intel-ipp%ef%bc%88integrated-performance-primitives%ef%bc%89%e7%9a%84%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e7%9a%84%e5%8a%a0%e9%80%9f%e5%8e%9f%e7%90%86%e5%92%8c%e7%ae%80%e5%8d%95%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2024\/02\/20\/intel-ipp%ef%bc%88integrated-performance-primitives%ef%bc%89%e7%9a%84%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e7%9a%84%e5%8a%a0%e9%80%9f%e5%8e%9f%e7%90%86%e5%92%8c%e7%ae%80%e5%8d%95%e5%ae%9e%e7%8e%b0\/","title":{"rendered":"Intel IPP\uff08Integrated Performance Primitives\uff09\u7684\u56fe\u50cf\u5904\u7406\u7684\u52a0\u901f\u539f\u7406\u548c\u7b80\u5355\u5b9e\u73b0"},"content":{"rendered":"\n<p>Intel Integrated Performance Primitives\uff08IPP\uff09\u662f\u4e00\u5957\u7528\u4e8e\u52a0\u901f\u56fe\u50cf\u5904\u7406\u3001\u4fe1\u53f7\u5904\u7406\u548c\u6570\u636e\u5904\u7406\u7b49\u5404\u79cd\u7b97\u6cd5\u7684\u8f6f\u4ef6\u5e93\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u9ad8\u6027\u80fd\u7684\u51fd\u6570\u548c\u7b97\u6cd5\uff0c\u53ef\u4ee5\u5728\u5404\u79cd\u5e73\u53f0\u4e0a\uff08\u5305\u62ecIntel\u5904\u7406\u5668\u548c\u5176\u4ed6\u517c\u5bb9\u5904\u7406\u5668\uff09\u5b9e\u73b0\u52a0\u901f\u8ba1\u7b97\u3002IPP\u5e93\u5305\u542b\u4e86\u8bb8\u591a\u4f18\u5316\u7684\u51fd\u6570\u548c\u7b97\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u52a0\u901f\u5404\u79cd\u8ba1\u7b97\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u4f8b\u5982\u56fe\u50cf\u5904\u7406\u3001\u89c6\u9891\u7f16\u89e3\u7801\u3001\u97f3\u9891\u5904\u7406\u3001\u52a0\u5bc6\u548c\u89e3\u5bc6\u7b49\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662fIntel IPP\u7684\u4e00\u4e9b\u4e3b\u8981\u7279\u70b9\u548c\u7528\u9014\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u9ad8\u6027\u80fd\u51fd\u6570\u5e93<\/strong>\uff1aIPP\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u9ad8\u6027\u80fd\u51fd\u6570\u548c\u7b97\u6cd5\uff0c\u6db5\u76d6\u4e86\u56fe\u50cf\u5904\u7406\u3001\u4fe1\u53f7\u5904\u7406\u3001\u6570\u636e\u538b\u7f29\u3001\u52a0\u5bc6\u548c\u89e3\u5bc6\u7b49\u591a\u4e2a\u9886\u57df\u3002\u8fd9\u4e9b\u51fd\u6570\u548c\u7b97\u6cd5\u7ecf\u8fc7\u4f18\u5316\uff0c\u53ef\u4ee5\u5145\u5206\u5229\u7528\u5904\u7406\u5668\u7684\u5e76\u884c\u8ba1\u7b97\u80fd\u529b\u548c\u591a\u6838\u5fc3\u67b6\u6784\uff0c\u4ece\u800c\u5b9e\u73b0\u5feb\u901f\u7684\u8ba1\u7b97\u3002<\/li><li><strong>\u8de8\u5e73\u53f0\u652f\u6301<\/strong>\uff1aIPP\u5e93\u53ef\u4ee5\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u5e73\u53f0\u4e0a\u8fd0\u884c\uff0c\u5305\u62ecWindows\u3001Linux\u3001macOS\u7b49\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u53cax86\u67b6\u6784\u7684\u5904\u7406\u5668\u3002\u8fd9\u4f7f\u5f97IPP\u5e93\u53ef\u4ee5\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u8ba1\u7b97\u73af\u5883\u4e2d\u3002<\/li><li><strong>\u6613\u4e8e\u96c6\u6210<\/strong>\uff1aIPP\u5e93\u63d0\u4f9b\u4e86\u6613\u4e8e\u4f7f\u7528\u7684API\u548c\u63a5\u53e3\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5c06IPP\u51fd\u6570\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u3002IPP\u8fd8\u63d0\u4f9b\u4e86\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u63a5\u53e3\uff0c\u5305\u62ecC\u3001C++\u3001Fortran\u7b49\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8fdb\u884c\u5f00\u53d1\u548c\u4f7f\u7528\u3002<\/li><li><strong>\u652f\u6301\u591a\u79cd\u5e94\u7528\u573a\u666f<\/strong>\uff1aIPP\u5e93\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u9886\u57df\uff0c\u5305\u62ec\u56fe\u50cf\u5904\u7406\uff08\u5982\u56fe\u50cf\u6ee4\u6ce2\u3001\u56fe\u50cf\u53d8\u6362\u3001\u56fe\u50cf\u5206\u5272\uff09\u3001\u89c6\u9891\u7f16\u89e3\u7801\u3001\u97f3\u9891\u5904\u7406\u3001\u6570\u636e\u538b\u7f29\u3001\u52a0\u5bc6\u548c\u89e3\u5bc6\u7b49\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u52a0\u901f\u5404\u79cd\u8ba1\u7b97\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u6548\u7387\u3002<\/li><\/ol>\n\n\n\n<p>\u603b\u7684\u6765\u8bf4\uff0cIntel IPP\u662f\u4e00\u5957\u5f3a\u5927\u7684\u8f6f\u4ef6\u5e93\uff0c\u63d0\u4f9b\u4e86\u9ad8\u6027\u80fd\u7684\u51fd\u6570\u548c\u7b97\u6cd5\uff0c\u53ef\u7528\u4e8e\u52a0\u901f\u5404\u79cd\u56fe\u50cf\u5904\u7406\u3001\u4fe1\u53f7\u5904\u7406\u548c\u6570\u636e\u5904\u7406\u7b49\u4efb\u52a1\u3002\u5b83\u662f\u5f00\u53d1\u8005\u52a0\u901f\u8ba1\u7b97\u5bc6\u96c6\u578b\u5e94\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u5de5\u5177\u4e4b\u4e00\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4ed6\u4eec\u5b9e\u73b0\u5feb\u901f\u3001\u9ad8\u6548\u7684\u8ba1\u7b97\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Intel IPP\uff08Integrated Performance Primitives\uff09\u7684\u52a0\u901f\u539f\u7406\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u5e76\u884c\u5316\u548c\u4f18\u5316\u7b97\u6cd5<\/strong>\uff1aIPP\u5e93\u4e2d\u7684\u51fd\u6570\u548c\u7b97\u6cd5\u7ecf\u8fc7\u4e86\u9ad8\u5ea6\u4f18\u5316\uff0c\u5229\u7528\u4e86\u73b0\u4ee3\u5904\u7406\u5668\u7684\u5e76\u884c\u8ba1\u7b97\u80fd\u529b\u548c\u591a\u6838\u5fc3\u67b6\u6784\u3002IPP\u4e2d\u7684\u51fd\u6570\u901a\u5e38\u91c7\u7528\u4e86\u591a\u7ebf\u7a0b\u5e76\u884c\u5316\u6280\u672f\uff0c\u80fd\u591f\u540c\u65f6\u5229\u7528\u591a\u4e2a\u5904\u7406\u5668\u6838\u5fc3\u6765\u6267\u884c\u8ba1\u7b97\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002<\/li><li><strong>CPU\u6307\u4ee4\u96c6\u4f18\u5316<\/strong>\uff1aIPP\u5e93\u9488\u5bf9\u4e0d\u540c\u7684\u5904\u7406\u5668\u67b6\u6784\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u5229\u7528\u4e86\u5404\u79cd\u5904\u7406\u5668\u7684\u7279\u5b9a\u6307\u4ee4\u96c6\u548c\u786c\u4ef6\u529f\u80fd\u6765\u63d0\u9ad8\u8ba1\u7b97\u6027\u80fd\u3002\u4f8b\u5982\uff0cIPP\u5e93\u4e2d\u7684\u51fd\u6570\u4f1a\u6839\u636e\u5904\u7406\u5668\u652f\u6301\u7684\u6307\u4ee4\u96c6\uff08\u5982SSE\u3001AVX\u7b49\uff09\u81ea\u52a8\u9009\u62e9\u6700\u4f18\u7684\u4ee3\u7801\u8def\u5f84\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u5feb\u7684\u8ba1\u7b97\u901f\u5ea6\u3002<\/li><li><strong>\u6570\u636e\u5e03\u5c40\u4f18\u5316<\/strong>\uff1aIPP\u5e93\u4e2d\u7684\u51fd\u6570\u901a\u5e38\u9488\u5bf9\u5904\u7406\u5668\u7684\u5185\u5b58\u5c42\u6b21\u7ed3\u6784\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u4ee5\u51cf\u5c11\u5185\u5b58\u8bbf\u95ee\u5ef6\u8fdf\u548c\u63d0\u9ad8\u6570\u636e\u7f13\u5b58\u5229\u7528\u7387\u3002\u8fd9\u5305\u62ec\u6570\u636e\u5bf9\u9f50\u3001\u6570\u636e\u9884\u53d6\u3001\u6570\u636e\u5c40\u90e8\u6027\u4f18\u5316\u7b49\u6280\u672f\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002<\/li><li><strong>\u7b97\u6cd5\u4f18\u5316\u548c\u7279\u5316\u5b9e\u73b0<\/strong>\uff1aIPP\u5e93\u4e2d\u7684\u51fd\u6570\u548c\u7b97\u6cd5\u7ecf\u8fc7\u4e86\u957f\u65f6\u95f4\u7684\u4f18\u5316\u548c\u8c03\u4f18\uff0c\u9488\u5bf9\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u4e86\u7279\u5316\u5b9e\u73b0\u3002\u8fd9\u4e9b\u7b97\u6cd5\u901a\u5e38\u91c7\u7528\u4e86\u6700\u4f18\u7684\u6570\u5b66\u65b9\u6cd5\u548c\u8ba1\u7b97\u6280\u5de7\uff0c\u4ee5\u5b9e\u73b0\u66f4\u5feb\u3001\u66f4\u9ad8\u6548\u7684\u8ba1\u7b97\u3002<\/li><\/ol>\n\n\n\n<p>\u603b\u7684\u6765\u8bf4\uff0cIntel IPP\u5e93\u5229\u7528\u4e86\u73b0\u4ee3\u5904\u7406\u5668\u7684\u5e76\u884c\u8ba1\u7b97\u80fd\u529b\u3001CPU\u6307\u4ee4\u96c6\u4f18\u5316\u3001\u6570\u636e\u5e03\u5c40\u4f18\u5316\u548c\u7b97\u6cd5\u4f18\u5316\u7b49\u591a\u79cd\u6280\u672f\uff0c\u5b9e\u73b0\u4e86\u9ad8\u6027\u80fd\u7684\u8ba1\u7b97\u52a0\u901f\u3002\u901a\u8fc7\u5408\u7406\u5229\u7528\u786c\u4ef6\u8d44\u6e90\u548c\u4f18\u5316\u8ba1\u7b97\u65b9\u6cd5\uff0cIPP\u5e93\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u8ba1\u7b97\u5bc6\u96c6\u578b\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u6548\u7387\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u4e86cpu\u8d85\u9891\u4e86\u5417\uff1f<\/h2>\n\n\n\n<p><br>Intel IPP\u5e93\u672c\u8eab\u4e0d\u4f1a\u76f4\u63a5\u5f71\u54cdCPU\u7684\u8d85\u9891\u529f\u80fd\uff0c\u56e0\u4e3aIPP\u5e93\u4e3b\u8981\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5e93\uff0c\u7528\u4e8e\u63d0\u4f9b\u9ad8\u6027\u80fd\u7684\u51fd\u6570\u548c\u7b97\u6cd5\uff0c\u4ee5\u52a0\u901f\u5404\u79cd\u8ba1\u7b97\u5bc6\u96c6\u578b\u4efb\u52a1\u3002IPP\u5e93\u7684\u6027\u80fd\u4e3b\u8981\u53d6\u51b3\u4e8e\u5904\u7406\u5668\u7684\u786c\u4ef6\u6027\u80fd\uff0c\u5305\u62ec\u5904\u7406\u5668\u7684\u6838\u5fc3\u6570\u91cf\u3001\u4e3b\u9891\u3001\u5185\u5b58\u5e26\u5bbd\u7b49\u3002<\/p>\n\n\n\n<p>\u7136\u800c\uff0c\u5982\u679c\u60a8\u5728\u8fd0\u884c\u4f7f\u7528IPP\u5e93\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\u5bf9CPU\u8fdb\u884c\u4e86\u8d85\u9891\uff0c\u90a3\u4e48IPP\u5e93\u53ef\u80fd\u4f1a\u95f4\u63a5\u53d7\u76ca\u4e8eCPU\u7684\u6027\u80fd\u63d0\u5347\u3002\u901a\u8fc7\u8d85\u9891\uff0c\u60a8\u53ef\u4ee5\u589e\u52a0\u5904\u7406\u5668\u7684\u4e3b\u9891\uff0c\u4ece\u800c\u52a0\u5febIPP\u5e93\u4e2d\u7684\u8ba1\u7b97\u4efb\u52a1\u7684\u6267\u884c\u901f\u5ea6\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7fIPP\u5e93\u4e2d\u7684\u51fd\u6570\u548c\u7b97\u6cd5\u5728\u66f4\u77ed\u7684\u65f6\u95f4\u5185\u5b8c\u6210\u8ba1\u7b97\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8d85\u9891\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5904\u7406\u5668\u7684\u6e29\u5ea6\u5347\u9ad8\u548c\u529f\u8017\u589e\u52a0\uff0c\u53ef\u80fd\u4f1a\u5bf9\u7cfb\u7edf\u7a33\u5b9a\u6027\u548c\u786c\u4ef6\u5bff\u547d\u4ea7\u751f\u5f71\u54cd\u3002\u56e0\u6b64\uff0c\u5728\u8fdb\u884c\u8d85\u9891\u65f6\uff0c\u5efa\u8bae\u8c28\u614e\u64cd\u4f5c\uff0c\u5e76\u786e\u4fdd\u5904\u7406\u5668\u80fd\u591f\u5728\u5b89\u5168\u8303\u56f4\u5185\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u8bf4\u8d77\u786c\u4ef6\u52a0\u901f\uff0c\u6700\u5e38\u89c1\u7684\u662f\u663e\u5361\u786c\u4ef6\u52a0\u901f\u5982Nvidia \u7684 CUDA\uff0c\u5176\u5b9eCPU \u4e5f\u80fd\u786c\u4ef6\u52a0\u901f\u7a0b\u5e8f\uff0c\u4f5c\u4e3a CPU \u9635\u8425\u7684\u8001\u5927\uff0cIntel \u5c31\u5f00\u53d1\u4e86\u5f88\u591a\u786c\u4ef6\u52a0\u901f\u5e93\uff0c<a href=\"https:\/\/links.jianshu.com\/go?to=%255Bhttps%3A%2F%2Fsoftware.intel.com%2Fcontent%2Fwww%2Fus%2Fen%2Fdevelop%2Ftools%2Fperformance-libraries.html%255D%28https%3A%2F%2Fsoftware.intel.com%2Fcontent%2Fwww%2Fus%2Fen%2Fdevelop%2Ftools%2Fperformance-libraries.html%29\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u7f51<\/a>\u7f57\u5217\u4e865\u4e2a\u5e93\uff0c\u4e0b\u9762\u6765\u4ecb\u7ecd\u4e0b\uff1a<br>1.<strong>Intel\u00ae Math Kernel Library<\/strong><br>\u5c31\u662f\u5927\u540d\u9f0e\u9f0e\u7684MKL,\u5bf9\u5f88\u591a\u5e38\u89c1\u6570\u5b66\u51fd\u6570\u63d0\u4f9b\u4e86 CPU \u7ea7\u522b\u7684\u786c\u4ef6\u52a0\u901f,\u7b2c\u4e09\u65b9\u6570\u5b66\u3001\u7edf\u8ba1\u3001\u673a\u5668\u5b66\u4e60\u5e93\u53ef\u4ee5\u7528MKL\u6765\u63d0\u5347\u8fd0\u884c\u6548\u7387\uff0c\u5982\uff1aBLAS,\uff0cLAPACK\uff0cFFTW\uff0cNumPy, SciPy, and scikit-learn\u7b49<\/p>\n\n\n\n<p>2.<strong>Intel\u00ae Integrated Performance Primitives<\/strong><br>\u7b80\u79f0 IPP\uff0c\u5229\u7528 Intel CPU \u7684 SIMD\u3001AVX2\u3001AVX-512\u7b49\u6307\u4ee4\u96c6\u6765\u52a0\u901f\u56fe\u50cf\u5904\u7406(\u5982\u56fe\u50cf\u8bc6\u522b)\u3001\u4fe1\u53f7\u5904\u7406(\u5982\u8bed\u97f3\u8bc6\u522b\u5408\u6210)\u3001\u52a0\u5bc6\u89e3\u5bc6(\u5982MD5\u3001SHA\u3001AES)\u3001\u6570\u636e\u538b\u7f29(\u5982 zlib\u3001Bzip2)<\/p>\n\n\n\n<p>3.<strong>Intel\u00ae Threading Building Blocks<\/strong><br>\u7b80\u79f0 TBB\uff0c\u63d0\u4f9b\u66f4\u597d\u7684\u591a\u7ebf\u7a0b\u7f16\u7a0b\u6027\u80fd\u548c\u5185\u5b58\u5206\u914d\u673a\u5236<\/p>\n\n\n\n<p>4.<strong>Intel\u00ae Data Analytics Acceleration Library<\/strong><br>\u7b80\u79f0 DAAL\uff0c\u7528\u5728\u6570\u636e\u79d1\u5b66\u9886\u57df\uff0c NumPy, SciPy, and scikit-learn\u7b49\u5e93\u53ef\u4ee5\u7528 DAAL \u6765\u52a0\u901f<\/p>\n\n\n\n<p>5.<strong>Intel\u00ae MPI Library<\/strong><br>\u4e3b\u8981\u7528\u5728\u9ad8\u6027\u80fd\u8ba1\u7b97\u9886\u57df\uff0c\u8de8\u96c6\u7fa4\u5f00\u53d1<\/p>\n\n\n\n<p>\u4ee5\u4e0a 5 \u5927\u5e93\u8fd8\u662f\u504f\u5e95\u5c42\u5f00\u53d1\u7684\uff0c\u5927\u90e8\u5206\u7528\u6237\u5176\u5b9e\u5e0c\u671b\u5f00\u7bb1\u5373\u7528\uff1b\u8b6c\u5982\u7528\u8fd9\u4e9b\u5e93\u6765\u52a0\u901f Numpy \u8fd8\u5f97\u81ea\u5df1\u5728Numpy\u6e90\u7801\u6253\u4e0aMKL \u548c DAAL \u5e93\u518d\u7f16\u8bd1\u6765\u63d0\u901f\u591a\u9ebb\u70e6\uff0cIntel \u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u96c6\u6210\u4e0a\u8ff0\u786c\u4ef6\u52a0\u901f\u5e93\u7684\u5f00\u7bb1\u5373\u7528\u7684\u5de5\u5177\u5e94\u7528\uff0c\u5982\uff1a<br>1.<strong>Intel\u00ae Distribution for Python<\/strong><br>Intel \u4f18\u5316\u8fc7\u7684 Python \u53d1\u884c\u7248\uff0c\u4e0d\u5149 Python \u672c\u8eab\uff0c\u673a\u5668\u5b66\u4e60\u3001\u7edf\u8ba1\u751f\u6001\u5e38\u89c1\u5e93\u5982NumPy, SciPy, and scikit-learn\u90fd\u5305\u542b\u4e86\uff1b<\/p>\n\n\n\n<p>2.<strong>Intel\u00ae C++ Compiler<\/strong><br>Intel \u4f18\u5316\u8fc7\u7684C\u3001C++\u7f16\u8bd1\u5668\uff0c\u636e\u8bf4\u6bd4 GCC \u66f4\u5feb<\/p>\n\n\n\n<p>3.<strong>Intel\u00ae Fortran Compiler<\/strong><br>Intel \u4f18\u5316\u8fc7\u7684Fortran\u7f16\u8bd1\u5668\uff0c\u636e\u8bf4\u80fd\u63d0\u5347 40%\u7684\u6027\u80fd<\/p>\n\n\n\n<p>4.<strong>Intel\u00ae Distribution of OpenVINO\u2122 Toolkit<\/strong><br>Intel \u4f18\u5316\u8fc7\u7684\u6df1\u5ea6\u5b66\u4e60\u5de5\u5177\u96c6\uff0c\u4e3b\u8981\u662f\u901a\u8fc7\u4f18\u5316 OpenCV, OpenCL\u6765\u63d0\u5347\u6df1\u5ea6\u5b66\u4e60\u6548\u7387<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h>\n#include \"ipp.h\"\n\n#define PRINT_INFO(feature, text) printf(\"  %-30s= \", #feature); \\\n    printf(\"%c\\t%c\\t\", (cpuFeatures &amp; feature) ? 'Y' : 'N', (enabledFeatures &amp; feature) ? 'Y' : 'N'); \\\n    printf( #text \"\\n\")\n\nint main(int argc, char* argv&#91;])\n{\n    const       IppLibraryVersion *libVersion;\n    IppStatus   status;\n    Ipp64u      cpuFeatures, enabledFeatures;\n\n    ippInit();                      \/* Initialize Intel(R) IPP library *\/\n    libVersion = ippGetLibVersion();\/* Get Intel(R) IPP library version info *\/\n    printf(\"%s %s\\n\", libVersion->Name, libVersion->Version);\n\n    status = ippGetCpuFeatures(&amp;cpuFeatures, 0);\/* Get CPU features and features enabled with selected library level *\/\n    if (ippStsNoErr != status) return status;\n    enabledFeatures = ippGetEnabledCpuFeatures();\n    printf(\"Features supported: by CPU\\tby Intel(R) IPP\\n\");\n    printf(\"------------------------------------------------\\n\");\n    PRINT_INFO(ippCPUID_MMX,        Intel(R) Architecture MMX technology supported);\n    PRINT_INFO(ippCPUID_SSE,        Intel(R) Streaming SIMD Extensions);\n    PRINT_INFO(ippCPUID_SSE2,       Intel(R) Streaming SIMD Extensions 2);\n    PRINT_INFO(ippCPUID_SSE3,       Intel(R) Streaming SIMD Extensions 3);\n    PRINT_INFO(ippCPUID_SSSE3,      Supplemental Streaming SIMD Extensions 3);\n    PRINT_INFO(ippCPUID_MOVBE,      Intel(R) MOVBE instruction);\n    PRINT_INFO(ippCPUID_SSE41,      Intel(R) Streaming SIMD Extensions 4.1);\n    PRINT_INFO(ippCPUID_SSE42,      Intel(R) Streaming SIMD Extensions 4.2);\n    PRINT_INFO(ippCPUID_AVX,        Intel(R) Advanced Vector Extensions instruction set);\n    PRINT_INFO(ippAVX_ENABLEDBYOS,  Intel(R) Advanced Vector Extensions instruction set is supported by OS);\n    PRINT_INFO(ippCPUID_AES,        Intel(R) AES New Instructions);\n    PRINT_INFO(ippCPUID_CLMUL,      Intel(R) CLMUL instruction);\n    PRINT_INFO(ippCPUID_RDRAND,     Intel(R) RDRAND instruction);\n    PRINT_INFO(ippCPUID_F16C,       Intel(R) F16C new instructions);\n    PRINT_INFO(ippCPUID_AVX2,       Intel(R) Advanced Vector Extensions 2 instruction set);\n    PRINT_INFO(ippCPUID_ADCOX,      Intel(R) ADOX\/ADCX new instructions);\n    PRINT_INFO(ippCPUID_RDSEED,     Intel(R) RDSEED instruction);\n    PRINT_INFO(ippCPUID_PREFETCHW,  Intel(R) PREFETCHW instruction);\n    PRINT_INFO(ippCPUID_SHA,        Intel(R) SHA new instructions);\n    PRINT_INFO(ippCPUID_AVX512F,    Intel(R) Advanced Vector Extensions 512 Foundation instruction set);\n    PRINT_INFO(ippCPUID_AVX512CD,   Intel(R) Advanced Vector Extensions 512 CD instruction set);\n    PRINT_INFO(ippCPUID_AVX512ER,   Intel(R) Advanced Vector Extensions 512 ER instruction set);\n    PRINT_INFO(ippCPUID_AVX512PF,   Intel(R) Advanced Vector Extensions 512 PF instruction set);\n    PRINT_INFO(ippCPUID_AVX512BW,   Intel(R) Advanced Vector Extensions 512 BW instruction set);\n    PRINT_INFO(ippCPUID_AVX512VL,   Intel(R) Advanced Vector Extensions 512 VL instruction set);\n    PRINT_INFO(ippCPUID_AVX512VBMI, Intel(R) Advanced Vector Extensions 512 Bit Manipulation instructions);\n    PRINT_INFO(ippCPUID_MPX,        Intel(R) Memory Protection Extensions);\n    PRINT_INFO(ippCPUID_AVX512_4FMADDPS,    Intel(R) Advanced Vector Extensions 512 DL floating-point single precision);\n    PRINT_INFO(ippCPUID_AVX512_4VNNIW,      Intel(R) Advanced Vector Extensions 512 DL enhanced word variable precision);\n    PRINT_INFO(ippCPUID_KNC,        Intel(R) Xeon Phi(TM) Coprocessor);\n    PRINT_INFO(ippCPUID_AVX512IFMA, Intel(R) Advanced Vector Extensions 512 IFMA (PMADD52) instruction set);\n    PRINT_INFO(ippAVX512_ENABLEDBYOS,       Intel(R) Advanced Vector Extensions 512 is supported by OS);\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Intel Integrated&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,43],"tags":[],"class_list":["post-2106","post","type-post","status-publish","format-standard","hentry","category-vtk","category-43"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=2106"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2106\/revisions"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=2106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=2106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=2106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}