-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
Fix build against cuda<=11 #851
Conversation
5985cff
to
96c1ec7
Compare
@griwodz maybe we can take the cmake function you did for popsift here as well? |
To use only a single CC (and save a lot of compile time), I'm usually running the usual cmake first and I edit the ALICEVISION_CUDA_CC_LIST variable in the CMakeCache.txt afterwards (I use ccmake, but manual should also work). |
I think you can go directly with this one, we fix it properly once for all |
|
@bartoszek The set() operation is in an if() and there's no CACHE label, so you're probably right and it is overwritten. It will work with the cmake file that we'll adapt from PopSift in a followup-PR, but we should merge your PR first because it fixed SDK 11 now and not next week. ;-) |
I've tested it with my AUR package and it works fine, I can build for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ready for merging.
Sorry, accidentally push some local stuff here - already rolled back. |
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Tested with: UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
thx for the contribution! |
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: #851 Signed-off-by: Alastair D'Silva <[email protected]>
These Docker scripts differ in the following ways: - New arguments - Support parallel building - Use common downloads in the host environment across many images - Don't build the bundle (as the install is needed for Meshroom) - Only copy in the required files when needed to minimise rebuilds - Uses the distro cmake, which is recent enough - Build suitesparse & lapack (requires GMP & MPFR as deps) - Requests Docker delete intermediate images on success - Images are tagged with the AliceVision branch & commit, plus distro & CUDA versions Tested with: CUDA_VERSION=11.0 UBUNTU_VERSION=20.04 CUDA_VERSION=11.0 UBUNTU_VERSION=18.04 CUDA_VERSION=10.2 UBUNTU_VERSION=18.04 CUDA_VERSION=9.2 UBUNTU_VERSION=18.04 Note: CUDA 11 support depends on the following PRs: Popsift: alicevision/popsift#103 AliceVision: alicevision#851 Signed-off-by: Alastair D'Silva <[email protected]>
Have some trouble building against
cuda:11
so i reworked nvcc compute arch section a bit, now it looks clearer and nicer.btw. is there a way to force build for specific compute capability, can't find it anywhere?