Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: inlining failed in call to always_inline '__m256i _mm256_max_epi16(__m256i, __m256i)': target specific option mismatch #15141

Closed
CesarLiu opened this issue Sep 20, 2023 · 0 comments

Comments

@CesarLiu
Copy link

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04):Linux Ubuntu 20.04
  • Apollo installed from (source or binary):source
  • Apollo version (3.5, 5.0, 5.5, 6.0):9.x_alpha
  • Output of apollo.sh config if on master branch:
    bash apollo.sh config -n
    [INFO] Apollo Environment Settings:
    [INFO] APOLLO_ROOT_DIR: /apollo
    [INFO] APOLLO_CACHE_DIR: /apollo/.cache
    [INFO] APOLLO_IN_DOCKER: true
    [INFO] APOLLO_VERSION: 9.x_alpha-2023-08-25-33bc20e272
    [INFO] DOCKER_IMG: dev-x86_64-18.04-20230724_1143
    [INFO] APOLLO_ENV: STAGE=dev USE_ESD_CAN=false
    [INFO] USE_GPU: USE_GPU_HOST=1 USE_GPU_TARGET=1
    [INFO] Configure .apollo.bazelrc in non-interactive mode
    You have bazel 5.2.0 installed.
    Found possible Python library paths:
    /usr/local/lib/python3.6/dist-packages
    /usr/lib/python3/dist-packages
    Found CUDA 11.1 in:
    /usr/local/cuda-11.1/targets/x86_64-linux/lib
    /usr/local/cuda-11.1/targets/x86_64-linux/include
    Found cuDNN 8 in:
    /usr/lib/x86_64-linux-gnu
    /usr/include
    Found TensorRT 7 in:
    /usr/lib/x86_64-linux-gnu
    /usr/include/x86_64-linux-gnu

[ OK ] Successfully configured .apollo.bazelrc in non-interactive mode.

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:
    /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:356:1: error: inlining failed in call to always_inline '__m256i _mm256_max_epi16(__m256i, __m256i)': target specific option mismatch
    _mm256_max_epi16 (__m256i __A, __m256i __B)
    ^~~~~~~~~~~~~~~~
    In file included from modules/drivers/camera/util.cc:17:0:
    ./modules/drivers/camera/util.h:362:26: note: called from here
    return _mm256_min_epi16(K16_00FF, _mm256_max_epi16(value, K_ZERO));

Supporting materials (screenshots, command lines, code/script snippets):

ERROR: /apollo/modules/drivers/camera/BUILD:60:18: Compiling modules/drivers/camera/util.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/drivers/camera/_objs/libapollo_camera_util.so/util.pic.d ... (remaining 127 arguments skipped)
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
from ./modules/drivers/camera/util.h:34,
from modules/drivers/camera/util.cc:17:
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h: In function '__m256i apollo::drivers::camera::SaturateI16ToU8(__m256i)':
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:398:1: error: inlining failed in call to always_inline '__m256i _mm256_min_epi16(__m256i, __m256i)': target specific option mismatch
_mm256_min_epi16 (__m256i __A, __m256i __B)
^~~~~~~~~~~~~~~~
In file included from modules/drivers/camera/util.cc:17:0:
./modules/drivers/camera/util.h:362:68: note: called from here
return _mm256_min_epi16(K16_00FF, _mm256_max_epi16(value, K_ZERO));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
from ./modules/drivers/camera/util.h:34,
from modules/drivers/camera/util.cc:17:
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:356:1: error: inlining failed in call to always_inline '__m256i _mm256_max_epi16(__m256i, __m256i)': target specific option mismatch
_mm256_max_epi16 (__m256i __A, __m256i __B)
^~~~~~~~~~~~~~~~
In file included from modules/drivers/camera/util.cc:17:0:
./modules/drivers/camera/util.h:362:26: note: called from here
return _mm256_min_epi16(K16_00FF, _mm256_max_epi16(value, K_ZERO));
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(16:04:43) INFO: Elapsed time: 303.002s, Critical Path: 66.81s
(16:04:43) INFO: 3197 processes: 1797 internal, 1400 local.
(16:04:43) FAILED: Build did NOT complete successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant