community/opensubdiv to 3.4.4-5

This commit is contained in:
Kevin Mihelich 2021-08-18 12:52:24 +00:00
parent 3b1edea165
commit 0588a97864
2 changed files with 5 additions and 4 deletions

View file

@ -5,7 +5,7 @@
pkgname=opensubdiv pkgname=opensubdiv
pkgver=3.4.4 pkgver=3.4.4
pkgrel=4 pkgrel=5
pkgdesc="An Open-Source subdivision surface library" pkgdesc="An Open-Source subdivision surface library"
arch=(x86_64) arch=(x86_64)
url="http://graphics.pixar.com/opensubdiv" url="http://graphics.pixar.com/opensubdiv"
@ -17,7 +17,7 @@ source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//
cuda11.patch) cuda11.patch)
sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb' sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb'
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5' '10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
'e67d270496b56f6337698ee7bd9f1a0c945e75cd963e5f9dd451414c92c12382525190d691de269d783cffebed0b0dae5bd8fd94e555d7bb94ae06034edc375f') 'a9f15c1c2c66d5ecfd4b9b9e8f5a5a455488c5745def284fc5f1ac22f4429974de2b85c6da5289c0290ec9a02c2e2d022fcd760e5d37f532a0cd8c479c7f2d1a')
prepare() { prepare() {
cd "OpenSubdiv-${pkgver//./_}" cd "OpenSubdiv-${pkgver//./_}"
@ -35,7 +35,8 @@ build() {
cmake .. \ cmake .. \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=sm_52' \ -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_52' \
-DCUDA_HOST_COMPILER=/usr/bin/g++ \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_PREFIX=/usr
make make

View file

@ -11,7 +11,7 @@ diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt OpenSubdiv-3_4_4-new/CMake
+ elseif (CUDA_VERSION_MAJOR LESS 11) + elseif (CUDA_VERSION_MAJOR LESS 11)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 ) + set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
+ else() + else()
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_37 ) + set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_52 )
endif() endif()
endif() endif()
endif() endif()