Skip to content

icpx: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option] #516

@valassi

Description

@valassi

This is for clang14 (also 13?), or for icpx that uses clang14.

I think that it is because I am partly disabling fast math on one file for c++, but cuda always keeps it

ccache /usr/local/cuda-11.7/bin/nvcc  -O3  -lineinfo -I. -I../../src -I../../../../../tools -I/usr/local/cuda-11.7/include/ -DUSE_NVTX -gencode arch=compute_70,code=compute_70 -gencode arch=compute_70,code=sm_70 -use_fast_math -std=c++17  -ccbin /cvmfs/projects.cern.ch/intelsw/oneAPI/linux/x86_64/2022/compiler/2022.1.0/linux/bin/icpx -allow-unsupported-compiler -DMGONGPU_FPTYPE_DOUBLE -Xcompiler -fno-fast-math -Xcompiler -fPIC -c gCrossSectionKernels.cu -o gCrossSectionKernels.o
clang++: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]
clang++: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]
clang++: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]

This is llvm/llvm-project issues/54625

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions