Commit Graph

109 Commits

Author SHA1 Message Date
Stefano Sinigardi 19dde2f296
fix runtime libs (#8924) 2024-10-22 18:17:16 +02:00
Stefano Sinigardi d17ec15a06
update cuda to 12.6 (#8922)
* update cuda to 12.6
* remove cuda from opencv2 and opencv3
2024-10-10 09:59:36 +02:00
Stefano Sinigardi 9a9fcdb111
minor code cleaning (#8844)
* minor cleanup
* vcpkg force internal tools to reduce cache misses
* move getopt to 3rdparty
* add a very small test on a couple of platform in CI
2023-09-27 02:04:56 +02:00
Stefano Sinigardi d30c13c38f
cpack update (#8842)
* enable building installers in CI

* [build.ps1] improve installer handling

* do not install directly when building installer
2023-09-11 21:09:53 +02:00
Stefano Sinigardi 291cdb9ccd
enable packaging (#8837) 2023-08-31 11:32:51 +02:00
Stefano Sinigardi 2f4ab0887c
Gl integration (#8833)
* Start adding support for running darknet from OpenGL textures

* Get CUDA-GL interop working (at least without segfaults...)

* Copy the GL texture to the CUDA input buffer

* Remove printf statements

* Code cleanup

* Fix a function call

* Remove the #ifdef GPU guard in darknet.h

* Use the width and height from the network instead of hard-coding

* Install libgles2-mesa-dev for some ubuntu targets

* Get the build working on Windows

* Add an OpenGL-CUDA integration option for CMake

* Bump the version-date in vcpkg.json

* Remove ifdef in darknet.h for the network_predict_gl_texture() function

* Use target_compile_definitions to set CUDA_OPENGL_INTEGRATION flag

* Re-add the #ifdef CUDA_OPENGL_INTEGRATION guard

---------

Co-authored-by: Brian Schwind <brianmschwind@gmail.com>
2023-08-26 03:50:00 +02:00
mwohlm eb313288a5
Set option ENABLE_SSE_AND_AVX_FLAGS after all dependent variables have been defined. (#8597) 2023-08-26 02:54:28 +02:00
Stefano Sinigardi f3a50b9aee
add kmeansiou to build targets (#8831) 2023-08-25 22:11:50 +02:00
Stefano Sinigardi a87fe0b40d
update github actions (#8829)
* update github actions
* consolidate versions
* bump minimum cmake version
2023-08-24 19:16:28 +02:00
Stefano Sinigardi ed59050950
fix errors in CI (#8753)
* update build scripts

* add pkg-config on osx

* re-enable building with older opencv versions
2023-03-03 18:24:13 +01:00
Stefano Sinigardi 1ee19442ee
update to cuda 11.7, update pthreads4w cmake module, upgrade ps1 scripts (#8586) 2022-07-01 16:46:41 +02:00
Stefano Sinigardi 8a0bf84c19
various fixes (#8398)
* re-enable opencv on osx

* enable all and all-major architecture flags for cuda

* update build script

* use proper path separator

* [windows-cuda] bump to 11.6.1

* [windows-cuda] some fixes from CI runs

* make deploy-cuda.ps1 work also when called from outside its folder

* bump to cuda 11.6 also on linux

* deploy custom cmake modules if requested by the user

* fix cmake module source path

* use proper clause for dll copy
2022-03-07 01:41:08 +03:00
Stefano Sinigardi 57910b1fa9
[CI] build dependencies in release-only mode (#8304)
* enable release-only triplet on windows

* add debug tmate

* use release-only triplets also for linux and osx
2021-12-22 12:20:27 +01:00
Stefano Sinigardi cf7b458543
[cmake] update modules (#7891)
* [cmake] update modules

* [cmake] use proper module name when using vcpkg libs

* apply fixes from review
2021-07-16 00:30:40 +03:00
Stefano Sinigardi 7ff80b1a47
add missing asm tools in CI, run it every night (#7790)
* add missing asm tools

* run CI every night

* add csharp tool
2021-06-11 03:35:26 +03:00
Stefano Sinigardi 8c85eb7784
[build.ps1/setup.sh] do not export vcpkg_root anymore, add setup scripts to CI (#7751)
* [build.ps1] do not export vcpkg_root anymore

* [README.md] add a build step related to Set-ExecutionPolicy on Windows

* use scope currentuser to avoid admin powershell

* simplify even more set-executionpolicy command order

* remove unnecessary decoration to shell commands to improve user experience with copy button

* write instructions to build using only cmake

* Update README.md

* add target install

* improve setup scripts for future tests

* improve setup.sh script for more tool installations and add command line flags handling

* add CI tests for setup scripts

* use nuget artifact cache to improve CI build times

* disable interactivity for build script when called from setup script, add kitware gpg key in CI

* enable cudnn in setup.sh

* add a workaround for missing nvidia drivers in CI

* setup CUDA env variables

* remove some very slow builds from travis and move them to github actions

* chmod sh scripts

* use deploy-cuda scripts also in PR pipelines

* install asm tools

* restore links missing for CI when using deploy-cuda.sh

* enable cudnn on ubuntu ci pipelines

* pass CUDA env variables

* add missing cuda install for opencv2 and opencv3 ci pipelines

* remove unnecessary steps

Co-authored-by: Alexey <AlexeyAB@users.noreply.github.com>
2021-06-04 15:02:07 +03:00
Stefano Sinigardi 5853e51d60
[build.ps1] fix 64bit build with developer powershell for VS19 (#7740)
* [build.ps1] use x64 also on developer powershell for VS

* improve handling of errors on windows platform

* [build.ps1] bump version

* improve logic handling in uselib_track
2021-05-26 23:58:29 +03:00
Stefano Sinigardi 0024a6a3c8
[build.ps1] improvements (#7711)
* use parentheses to make clear operator order, print out versions

* add english language pack note in README.md

* add even more build info
2021-05-16 22:16:49 +03:00
Stefano Sinigardi ba8f7bf756
improve build process even more (#7610)
* test for shared libs

* improve flag handling

* build so lib in ci

* clone vcpkg if not found

* fix

* improve clang handling

* bump vcpkg.json version

* gemm.c compatible with ARM

* remove unnecessary vcpkg.json field

* do not unnecessarily rebuild vcpkg in the CI build stage

* use alexeyab nuget cache

* enable self-removal of build folder

* add interactivity in build.ps1 if not opt-out

* spellcheck README

* fix another leftover spelling error

* also auto-update darknet if possible

* do not self-update darknet in CI
2021-04-18 16:11:36 +03:00
Stefano Sinigardi 56cd9c6e8c enable opencv w/cuda in build.ps1 2021-04-14 17:15:36 +02:00
Stefano Sinigardi 013d5e676d use only build.ps1 2021-04-14 15:06:10 +02:00
Stefano Sinigardi 44d29d5982 do not enable cudnn feature if cuda is not enabled 2021-02-21 10:31:29 +01:00
Stefano Sinigardi fd6ea9ba60 use same logic for all enables: if on, then package is required 2021-02-20 11:22:23 +01:00
Stefano Sinigardi b9d296e308 improve manifest mode 2021-02-20 09:28:07 +01:00
Stefano Sinigardi 05bda64c92 Update vcpkg refs to OpenCV 4.5.1 2021-01-29 08:30:06 +01:00
Stefano Sinigardi e2a4253bb0 add cuda to path to github ci; improve diagnostic messages 2021-01-24 15:31:13 +01:00
Stefano Sinigardi 1735d57ad1 rework integrated libs logic 2021-01-23 16:06:36 +01:00
Stefano Sinigardi 00d578e327
update GitHub actions (#7095)
* update to run-vcpkg@v6

* bump to cmake 3.18

* use newer cuda syntax, fail if cuda enabled but not found

* update win build script

* improve travis with non-cuda-enabled builds

* improve windows building process
2021-01-21 17:36:00 +01:00
Ievgen Popovych f57636ad65
CMake CUDA configuration improvements (#7164)
* CMake: Fail generation if CUDA was requested but not found

..instead of resorting to CPU build silently.

This makes builds predictable and
removes the confusion of `ENABLE_CUDA` option being merely a suggestion.

Signed-off-by: Ievgen Popovych <ievgenp@seetrue.ai>

* CMake: Be more precise with ZED SDK messages

CMake generation with `ENABLE_CUDA=OFF` and `ENABLE_ZED_CAMERA=OFF`
would spit out "ZED SDK not enabled, since it requires CUDA" messages
even though ZED SDK was explicitly disabled.
Fix this by being a bit more precise with messages.

Signed-off-by: Ievgen Popovych <ievgenp@seetrue.ai>

* CMake: Honor CUDNN_ENABLE option

Setting CUDNN_ENABLE to OFF would not disable CUDNN support if
CUDNN libraries are available.

Fix this behavior by only looking for CUDNN if it was requested (CUDNN_ENABLE)
and predicate actual settings on CUDNN_FOUND.

Signed-off-by: Ievgen Popovych <ievgenp@seetrue.ai>

* github: actions: Explicitly set CUDA state in CI
2021-01-21 17:31:21 +01:00
AlexeyAB e87042a49a Fixed Makefile and CMakeLists.txt for RTX 3090 2020-12-01 05:14:02 +03:00
Stefano Sinigardi 86b1bf7497 restore missing infos in README.md after merging with master 2020-08-08 16:25:53 +02:00
Stefano Sinigardi c00dbbb9fa bump minimum compute capability to 5.0 2020-08-08 15:35:46 +02:00
Stefano Sinigardi 78293335df unify lib naming with makefile 2020-08-08 13:15:03 +02:00
Stefano Sinigardi 20968ef98b Merge branch 'dev/alexey/master' into dev/cenit/cuda-cmake 2020-08-08 13:10:27 +02:00
tomheaven f04b6ad538 fix an openmp related error on macOS 2020-06-10 09:00:46 +08:00
Stefano Sinigardi 6a2e9ca1c6 add compatibility with CMake 3.17 2020-05-23 15:48:13 +02:00
Stefano Sinigardi ac7436dccd ported build configs from circleCI 2020-05-01 09:29:03 +02:00
Stefano Sinigardi 24ad413a79 add mingw and cuda on github actions, restored cuda 10.2 on appveyor as a test 2020-05-01 09:28:51 +02:00
Stefano Sinigardi c3dc2c4a0d use Release as default build type 2020-04-30 18:47:23 +02:00
Stefano Sinigardi 6afe964d4f upgrade CUDA, cmake and VS on CI 2020-04-29 22:31:07 +02:00
Stefano Sinigardi 1c64c2d892 enable cc70,cc72,cc75 for half_precision, add message for omp missing on macOS 2020-04-29 20:24:08 +02:00
Stefano Sinigardi fe879f3baf simplify cmake due to minimum project requirement already gone to 3.12 2020-04-29 20:24:08 +02:00
Stefano Sinigardi be49ab30cd omp support on macOS 2020-04-29 20:24:00 +02:00
AlexeyAB 893b889b2f Cmake is fixed for V100 (CC=7.0) 2020-04-25 14:58:36 +03:00
Stefano Sinigardi 3869d7ec40 restrict the opencv module selection to the only problematic configuration 2019-08-02 10:12:36 +02:00
Stefano Sinigardi 7377f661f6 fix label option 2019-08-02 09:01:58 +02:00
Stefano Sinigardi 73baf8531e bump tweak version 2019-08-01 13:23:04 +02:00
Stefano Sinigardi a57a16998d move bool from set cache to option 2019-08-01 13:19:19 +02:00
Stefano Sinigardi 9baf9861d7 restore shared lib as default 2019-08-01 07:47:38 +02:00
Stefano Sinigardi 53699c189b use selected OpenCV modules only on Windows 2019-07-31 13:30:20 +02:00