Skip to content

Commit

Permalink
alice-vision: default to 3.1.0, enable alignment and full optimizatio…
Browse files Browse the repository at this point in the history
…n when possible
  • Loading branch information
Isidor Zeuner committed Oct 4, 2023
1 parent c47846f commit fdce462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions pkgs/development/libraries/alice-vision/3.1.0.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ stdenv.mkDerivation rec {
--replace \
'alicevision_add_test(matching_test.cpp NAME "matching" LINKS aliceVision_matching)' \
'alicevision_add_test(matching_test.cpp NAME "matching" LINKS aliceVision_matching lz4)'
'' + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
# -O3 currently causes segmentation faults on x86_64-linux
sed -i 's/-O3/-O2/' src/CMakeLists.txt
'';

# Disable warning causing compile error on certain Clang versions
Expand Down Expand Up @@ -154,8 +151,9 @@ stdenv.mkDerivation rec {
ALICEVISION_BUILD_DOC = false;
ALICEVISION_BUILD_EXAMPLES = false;
ALICEVISION_BUILD_SOFTWARE = true;
# enabled alignment led to wrong initialization of Vec2 variables
AV_EIGEN_MEMORY_ALIGNMENT = false;
# CCTag package does not support alignment yet, and this must be
# consistent between both packages
AV_EIGEN_MEMORY_ALIGNMENT = ! enableCctag;

ALICEVISION_BUILD_TESTS = doCheck;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20698,7 +20698,7 @@ with pkgs;

alass = callPackage ../applications/video/alass { };

alice-vision = alice-vision_3_0_0;
alice-vision = alice-vision_3_1_0;

alice-vision_3_0_0 = callPackage ../development/libraries/alice-vision/3.0.0.nix {
inherit (llvmPackages) openmp;
Expand Down

0 comments on commit fdce462

Please sign in to comment.