ashadrina
3889dcf3f8
Merge pull request #24286 from ashadrina:intel_icx_compiler_support
...
Add Intel® oneAPI DPC++/C++ Compiler (icx) #24286
Intel® C++ Compiler Classic (icc) is deprecated and will be removed in a oneAPI release in the second half of 2023 ([deprecation notice](https://community.intel.com/t5/Intel-oneAPI-IoT-Toolkit/DEPRECATION-NOTICE-Intel-C-Compiler-Classic/m-p/1412267#:~:text=Intel%C2%AE%20C%2B%2B%20Compiler%20Classic%20(icc)%20is%20deprecated%20and%20will,the%20second%20half%20of%202023 .)). This commit is intended to add support for the next-generation compiler, Intel® oneAPI DPC++/C++ Compiler (icx) (the documentation for the compiler is available on the [link](https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-2/overview.html )).
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
1 year ago
不鱼儿
4ee0f212cc
Eliminating compilation warnings when using lto in
...
gcc12 and later versions
use -flto=auto when use gcc12 or later
Signed-off-by: 不鱼儿 <36976072+buyuer@users.noreply.github.com>
1 year ago
Alexander Smorkalov
2d92f42878
Disable finite-math-only option with ENABLE_FAST_MATH=1 case to handle NaN and Inf checks correctly.
1 year ago
Andrey Senyaev
ccfc34b13f
Disabled compiling warnings in case of symbols in cmake for 4.x
2 years ago
Andrey Senyaev
3f4abcb228
Disabled compiling warnings in case of symbols in cmake for 3.4
2 years ago
Alexander Alekhin
75bb6aa9a1
build: disable psabi warning with GCC 7.0 and ARM
2 years ago
Tatsuro Shibamura
d354ad1c34
Merge pull request #21630 from shibayan:arm64-msvc-neon
...
* Added NEON support in builds for Windows on ARM
* Fixed `HAVE_CPU_NEON_SUPPORT` display broken during compiler test
* Fixed a build error prior to Visual Studio 2022
3 years ago
Alexander Alekhin
30ff9c6775
cmake: don't force -Werror=...
...
- improve compatibility with further compiler versions
- warnings are not errors by default
3 years ago
Alexander Alekhin
51e8af9e5f
cmake(link): add '-Wl,--no-undefined'
...
- avoid missing of necessary library dependencies
3 years ago
Dale Phurrough
3995deaf76
fix opencv/opencv#20544 nodiscard for msvc/gcc
...
- includes workaround for preprocessor non-compliance
- enable attribute syntax checking in msvc
3 years ago
Francesco Petrogalli
b928ebdd53
Merge pull request #19985 from fpetrogalli:disable_threads
...
* [build][option] Introduce `OPENCV_DISABLE_THREAD_SUPPORT` option.
The option forces the library to build without thread support.
* update handling of OPENCV_DISABLE_THREAD_SUPPORT
- reduce amount of #if conditions
* [to squash] cmake: apply mode vars in toolchains too
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
3 years ago
Alexander Alekhin
0e523618a1
cmake: exclude -pthread from Emscripten default build
3 years ago
Alexander Alekhin
901ed5545f
cmake: fix handling of CMAKE_MODULE_LINKER_FLAGS
4 years ago
Maksim Shabunin
b89410a266
Fix standalone plugin compilation for Windows
4 years ago
Alexander Alekhin
cc73c36e32
core(parallel): plugins support
4 years ago
Alexander Alekhin
8215380336
cmake: support ccache with Xcode generator
4 years ago
Alexander Alekhin
6bfb0dda85
cmake: avoid duplication of -Winit-self flag
4 years ago
Alexander Alekhin
5c987e4c75
Merge pull request #18924 from alalek:4.x-xcode12
...
(4.x) build: Xcode 12 support
* build: xcode 12 support, cmake fixes
* ts: eliminate clang 11 warnigns
* 3rdparty: clang 11 warnings
* features2d: eliminate build warnings
* test: warnings
* gapi: warnings from 18928
4 years ago
Alexander Alekhin
387a76ba59
build: xcode 12 support, cmake fixes
4 years ago
Alexander Alekhin
56b5a7d977
cmake: fix ENABLE_PROFILING
5 years ago
Peter Würtz
5012fc5d23
Merge pull request #16684 from pwuertz:ignore_clang_mat_inl
...
* Ignore clang warnings for deprecated enum+enum operations in mat.inl.hpp
* build: added customization macros, cmake flags for OpenCV build
5 years ago
Alexander Alekhin
ef93aea0da
cmake: update handling of MSVC /MP flag
5 years ago
Alexander Alekhin
8af87d5792
cmake: apply '-Wl,--as-needed' linker option
5 years ago
Alexander Alekhin
af92a517a7
cmake: set _WIN32_WINNT for Windows 7 API
5 years ago
Tomoaki Teshima
40c71a2463
suppress noisy warning
...
* add -Wno-psabi when using GCC 6
* add -Wundef for CUDA 10
* add -Wdeprecated-declarations when using GCC 7
* add -Wstrict-aliasing and -Wtautological-compare for GCC 7
* replace cudaThreadSynchronize with cudaDeviceSynchronize
5 years ago
Alexander Alekhin
5ef548a985
cmake: update initialization
5 years ago
Alexander Alekhin
bc79f477dd
cmake: support rpath-link linker option
...
- builds with CMAKE_SKIP_RPATH=ON should properly find project .so files from <build>/lib directory
- $ORIGIN doesn't work properly in cross-compilation mode
6 years ago
Alexander Alekhin
d8b42792a6
cmake: update ENABLE_FAST_MATH option
6 years ago
Alexander Alekhin
c1981f28ad
build: +OPENCV_ENABLE_MEMORY_SANITIZER flag
6 years ago
Sayed Adel
f41359688b
core:vsx Add support for VSX3 half precision conversions
6 years ago
Alexander Alekhin
ccbc16f3a9
cmake: clean unreferenced functions from OpenCV modules too
6 years ago
Sayed Adel
872e7894b4
core:vsx working around gcc aligned memory access bug
...
- allow cmake to check sanity of vsx aligned ld/st
- force universal intrinsics v_load_aligned/v_store_aligned
to failback to unaligned ld/st if cmake runtime vsx aligned test fail
6 years ago
Maksim Shabunin
8c1e0537ec
Merge pull request #13889 from mshabunin:enable-narrowing-warning
...
* Enabled -Wnarrowing warning
* Fixed type narrowing issues
* Cast python constants
* Use long long for python constants
* Use int for python constants with fallback to long
* Update cv2.cpp
6 years ago
Alexander Alekhin
98a73de526
cmake: eliminate GCC4.x warnings
6 years ago
Alexander Alekhin
a2e754c136
build: eliminate warnings
6 years ago
Reid Kleckner
ffaf58349c
Fix CMake for clang-cl
...
Avoids passing -Wall, which will enable literally every warning in
Clang. Avoids passing -ffunction-sections etc to clang-cl, which each
generate warnings.
6 years ago
Vadim Pisarevsky
54279523a3
Merge pull request #12437 from vpisarev:avx2_fixes
...
* trying to fix the custom AVX2 builder test failures (false alarms)
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* seemingly disabled false alarm warning in surf.cpp; increased tolerance thresholds in the tests for SolvePnP and in DNN/ENet
6 years ago
Kuang Fangjun
9ae28415ec
fix doc.
7 years ago
Sayed Adel
788d6a7105
cmake: Disable -Wsuggest-override option in case of using PCH #11433
7 years ago
Alexander Alekhin
ef2548778c
build: -Wimplicit-fallthrough warning for GCC 7+ only
7 years ago
Alexander Alekhin
12e8e33144
build: enable -Wimplicit-fallthrough warning for OpenCV modules
7 years ago
Alexander Alekhin
0ede1b5b22
cmake: enable override warnings (requires C++11 compilation mode)
7 years ago
Alexander Alekhin
08941b7890
cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars
...
- Recommended compiler checks:
- GCC: CV_GCC
- Clang: CV_CLANG
- fixed problem with CMAKE_CXX_COMPILER_ID=Clang/AppleClang mess on MacOSX
Details: cmake --help-policy CMP0025
- do not declare Clang as GCC compiler
7 years ago
Alexander Alekhin
95014f311d
cmake: debug info
7 years ago
Alexander Alekhin
65ba2e0adf
cmake: update adding of extra compiler flags
...
Read flags from 'cache' instead of resetting them
7 years ago
luz.paz
413fba14ab
Some mist. typo fixes
...
Found via `codespell -i 3 -w --skip="./3rdparty" -I ../opencv-whitelist.txt`
7 years ago
Maksim Shabunin
60f1c9dcdf
Do not enable LTO flags for MSVC debug configuration
7 years ago
Maksim Shabunin
c0ae812aa2
Add ThinLTO support for clang
7 years ago
Tomoaki Teshima
fe7b3f1228
clean up the code
...
* disable the warning in CMake, not int the code using pragma
7 years ago
Maksim Shabunin
38c62f6461
Added option to disable gc-sections flag
7 years ago