Commit Graph

56 Commits

Author SHA1 Message Date
Stefano Sinigardi d5e0450290
upgrade to cuda 12.2 (#8832) 2023-08-26 01:41:27 +02:00
Stefano Sinigardi d47d72cb70
minor spelling fixes (#8830)
* minor spelling fixes
* fix spacing
* bump stb to latest and greatest
2023-08-25 16:47:31 +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 9bf13a09d8
update build script to workaround vcpkg integrated in vs (#8818) 2023-08-02 08:50:59 +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 0faed3e60e
add missing dependencies (#8694) 2022-11-04 14:27:17 +01:00
Stefano Sinigardi 96f08de683
restore Windows PowerShell compatibility (#8607)
* fix IsWindowsPowershell visibility

* add missing closing braces

* use proper flag

* non-interactive deploy of cuda

* set default host triplet

* add a CI test for legacy Windows PowerShell

* add powershell as shell name explicitly, otherwise github actions are already defaulting to pwsh
2022-08-16 20:20:48 +02: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 7fe4fb7c45
[github actions] add missing tool from base image (#8271) 2021-12-03 18:33:58 +01:00
Stefano Sinigardi 108dc8b7fe force ash shell for nuget setup 2021-11-14 13:03:43 +01:00
Stefano Sinigardi 29c78e9e9f
fix unnecessary mono call on windows (#8229) 2021-11-14 11:35:50 +01:00
Stefano Sinigardi 4b35dbbf9a
update to cuda 11.5 (#8174) 2021-11-12 04:58:00 +01:00
Stefano Sinigardi b8dceb7ed0
[CI] update to cuda11.4 (#7914)
* [CI] update to cuda11.4

* update setup scripts to cuda 11.4
2021-07-30 04:05:23 +03:00
Stefano Sinigardi 8bbdb6b77c
[CI] test vcpkg nightly builds (#7826) 2021-06-24 10:23:45 +02:00
Stefano Sinigardi 3fafd211b9
[autorebase] bump to v1.5 (#7819) 2021-06-21 11:07:31 +02:00
Stefano Sinigardi 6c171a4cea
add automatic rebase github action (#7809)
* add automatic rebase action

* do not upload artifacts from PRs

* use proper symbol in build.ps1

* fix lib naming

* fix folder for dll artifacts
2021-06-18 01:15:55 +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 4f794aa152
almost revert last PR (#7634)
* [darknet] split pr/ci pipelines to use fast caching only when accessible

* restore original pipeline names

* restore original ccpp file name

* speed up scripts avoiding -wait flag

* restore fast cache in readonly

* clean up scripts removing references to github packages, which are often down/broken
2021-04-22 18:03:23 +03:00
Stefano Sinigardi 91efb7c7f6
Deploy CUDA 11.3 in CI (#7630)
* [nuget] use personal baget repo

* update cuda to 11.3 on windows

* add error messages during build to not have green badge when failed

* remove cygwin script, is untested now; use deploy-cuda.ps1 script also inside setup.ps1
2021-04-21 19:25:46 +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 e1c02e02da circumvent current upstream bugs 2021-04-15 08:15:27 +02:00
Stefano Sinigardi 42ecbfa4b4 improve non-windows handling in ps1 script 2021-04-14 13:30:50 +02:00
Stefano Sinigardi fa8d21dee5 use build.ps1 also in CI to better test it 2021-04-14 11:50:54 +02:00
Stefano Sinigardi b409569ee4 upgrade to run-vcpkg@v7 2021-04-11 19:23:49 +02:00
Stefano Sinigardi 44c868baca add missing pubkey install step 2021-02-21 18:11:02 +01:00
Stefano Sinigardi 552bddc140 move to ubuntu 20.04 on github actions 2021-02-21 18:00:59 +01:00
Stefano Sinigardi 8f3cd2840e fixes 2021-02-20 17:05:27 +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 9284d02809 comment out windows-vcpkg, improve setup scripts 2021-02-18 22:22:39 +01:00
Stefano Sinigardi 661e8ab26b add nasm dependency 2021-01-29 17:39:25 +01:00
Stefano Sinigardi 05bda64c92 Update vcpkg refs to OpenCV 4.5.1 2021-01-29 08:30:06 +01:00
Stefano Sinigardi 5f84f90909 revert to double backslash 2021-01-24 17:07:10 +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 dcc38312fe trying with forward slashes 2021-01-24 12:40:59 +01:00
Stefano Sinigardi da15b141f0 trying to fix cuda path 2021-01-23 22:03:43 +01:00
Stefano Sinigardi 63caceab0d add manual trigger for github actions 2021-01-23 17:04:23 +01:00
Stefano Sinigardi 1735d57ad1 rework integrated libs logic 2021-01-23 16:06:36 +01:00
Stefano Sinigardi 4de12a1e7e default on opencv4.5 on vcpkg 2021-01-23 09:02:22 +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
Stefano Sinigardi 8cddef3466 upgrade vcpkg commit ref 2020-08-08 15:35:57 +02:00
Stefano Sinigardi 040d900350 merge from master 2020-06-14 23:37:33 +02:00
Juuso Alasuutari 27c49e460d
Explicitly install CUDA version 10.2 in win-{vcpkg,intlibs}-cuda actions (#5958)
Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>
2020-06-14 23:30:20 +02:00
Stefano Sinigardi 7e5c3ec24b fix vcpkg freeze 2020-05-29 18:03:26 +02:00
Stefano Sinigardi 861192df19 shorten github actions names 2020-05-03 16:36:05 +02:00
Stefano Sinigardi 551e57dc8b fix linux make and add windows cygwin on github actions 2020-05-01 16:00:36 +02:00