1. <legend id='ixbsa'><style id='ixbsa'><dir id='ixbsa'><q id='ixbsa'></q></dir></style></legend>
    <tfoot id='ixbsa'></tfoot>
      • <bdo id='ixbsa'></bdo><ul id='ixbsa'></ul>
    1. <i id='ixbsa'><tr id='ixbsa'><dt id='ixbsa'><q id='ixbsa'><span id='ixbsa'><b id='ixbsa'><form id='ixbsa'><ins id='ixbsa'></ins><ul id='ixbsa'></ul><sub id='ixbsa'></sub></form><legend id='ixbsa'></legend><bdo id='ixbsa'><pre id='ixbsa'><center id='ixbsa'></center></pre></bdo></b><th id='ixbsa'></th></span></q></dt></tr></i><div id='ixbsa'><tfoot id='ixbsa'></tfoot><dl id='ixbsa'><fieldset id='ixbsa'></fieldset></dl></div>
    2. <small id='ixbsa'></small><noframes id='ixbsa'>

      内联调用 always_inline '__m256d _mm256_broadcast_sd(c

      时间:2023-09-19

    3. <tfoot id='jYwlx'></tfoot>
    4. <small id='jYwlx'></small><noframes id='jYwlx'>

        <i id='jYwlx'><tr id='jYwlx'><dt id='jYwlx'><q id='jYwlx'><span id='jYwlx'><b id='jYwlx'><form id='jYwlx'><ins id='jYwlx'></ins><ul id='jYwlx'></ul><sub id='jYwlx'></sub></form><legend id='jYwlx'></legend><bdo id='jYwlx'><pre id='jYwlx'><center id='jYwlx'></center></pre></bdo></b><th id='jYwlx'></th></span></q></dt></tr></i><div id='jYwlx'><tfoot id='jYwlx'></tfoot><dl id='jYwlx'><fieldset id='jYwlx'></fieldset></dl></div>
          <bdo id='jYwlx'></bdo><ul id='jYwlx'></ul>
              <tbody id='jYwlx'></tbody>

              1. <legend id='jYwlx'><style id='jYwlx'><dir id='jYwlx'><q id='jYwlx'></q></dir></style></legend>
              2. 本文介绍了内联调用 always_inline '__m256d _mm256_broadcast_sd(const double*)' 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我正在尝试运行一个由我的朋友创建的 Visual Studio cpp 项目.我正在尝试在没有 VS 的情况下运行该文件.但是我得到了一个错误列表,格式都一样:

                I'm trying to run a Visual Studio cpp project created by a friend of mine. I'm trying to run the file without VS. But I'm getting a list of errors, all in the same format:

                inlining failed in call to always_inline '__m256d _mm256_broadcast_sd(const double*)': target specific option mismatch|
                

                它在具有发布模式的 VS 中正确运行,并在调试模式下运行时中断.

                It runs correctly in VS with release mode and breaks when run in debug mode.

                include 如下:

                #include "stdafx.h"
                #include <iostream>
                #include <stdio.h>
                #include <stdlib.h>
                #include <time.h>
                #include <vector>
                # include <omp.h>
                #include <chrono>
                #include <fstream>
                #include <algorithm>
                
                #include <immintrin.h>
                
                using namespace std::chrono;
                using namespace std;
                

                从这里调用错误:

                double zero = 0;
                __m256d acc = _mm256_broadcast_sd(&zero);
                

                更新:

                我正在使用这个命令来运行它:g++ -std=c++0x multip.cpp -o multip,是否有额外的参数可以将 -mavx 添加到编译器调用中?

                I'm using the this command to run it: g++ -std=c++0x multip.cpp -o multip, is there an additional parameter to add -mavx to the compiler invocation?

                推荐答案

                目标特定选项不匹配" 意味着您缺少 GCC 调用中的功能标志.您可能需要将 -mavx 添加到编译器调用中.

                "Target specific option mismatch" means that you're missing a feature flag from your GCC invocation. You probably need to add -mavx to your compiler invocation.

                如果您只打算在您的计算机上运行它,-march=native 将打开您自己的机器支持的所有功能标志.

                If you're intending to run this on your computer only, -march=native will turn on all the feature flags that your own machine supports.

                这篇关于内联调用 always_inline '__m256d _mm256_broadcast_sd(const double*)' 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:constexpr 使用静态函数初始化静态成员 下一篇:如果我针对大小而不是速度进行优化,为什么

                相关文章

                最新文章

                  <tfoot id='afpCL'></tfoot>

                    <bdo id='afpCL'></bdo><ul id='afpCL'></ul>

                  <small id='afpCL'></small><noframes id='afpCL'>

                1. <i id='afpCL'><tr id='afpCL'><dt id='afpCL'><q id='afpCL'><span id='afpCL'><b id='afpCL'><form id='afpCL'><ins id='afpCL'></ins><ul id='afpCL'></ul><sub id='afpCL'></sub></form><legend id='afpCL'></legend><bdo id='afpCL'><pre id='afpCL'><center id='afpCL'></center></pre></bdo></b><th id='afpCL'></th></span></q></dt></tr></i><div id='afpCL'><tfoot id='afpCL'></tfoot><dl id='afpCL'><fieldset id='afpCL'></fieldset></dl></div>
                  <legend id='afpCL'><style id='afpCL'><dir id='afpCL'><q id='afpCL'></q></dir></style></legend>