multimedia/svt-hevc: use all cores by default
Thread affinity isn't supported yet. Mounting /proc is no help as it doesn't expose CPU topology e.g.., physical id is always 0.
This commit is contained in:
parent
019f4869d3
commit
79f303af35
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493741
3 changed files with 10 additions and 4 deletions
|
@ -3,8 +3,12 @@
|
|||
PORTNAME= svt-hevc
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTVERSION= 1.3.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
||||
PATCHFILES+= ad0942db4ce4.patch:-p1
|
||||
|
||||
MAINTAINER= jbeich@FreeBSD.org
|
||||
COMMENT= Scalable HEVC encoder
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
TIMESTAMP = 1550104614
|
||||
SHA256 (Intel-SVT-HEVC-v1.3.0_GH0.tar.gz) = ef21f3a13e33b4f61af4a0c79337ce9e4f73f6fe13d1c2afe2c3b0712f4158d9
|
||||
SIZE (Intel-SVT-HEVC-v1.3.0_GH0.tar.gz) = 1137878
|
||||
SHA256 (ad0942db4ce4.patch) = 2165f1b1d658dbbac91f8a2e86976f6692f93fcc6649feacbc6013d811874f48
|
||||
SIZE (ad0942db4ce4.patch) = 864
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
FreeBSD (unlike DragonFly) didn't try to be compatible with GNU libc at first.
|
||||
|
||||
In file included from Source/Lib/Codec/EbEncDecProcess.c:9:
|
||||
In file included from Source/Lib/Codec/EbTransforms.h:14:
|
||||
In file included from Source/Lib/Codec/EbSequenceControlSet.h:10:
|
||||
|
@ -9,16 +7,18 @@ extern cpu_set_t groupAffinity;
|
|||
|
||||
--- Source/Lib/Codec/EbThreads.h.orig 2019-02-14 00:36:54 UTC
|
||||
+++ Source/Lib/Codec/EbThreads.h
|
||||
@@ -95,7 +95,12 @@ extern EB_BOOL alternateGroups;
|
||||
@@ -95,7 +95,14 @@ extern EB_BOOL alternateGroups;
|
||||
#else
|
||||
#define __USE_GNU
|
||||
#define _GNU_SOURCE
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <pthread_np.h>
|
||||
+#define cpu_set_t cpuset_t
|
||||
+#else
|
||||
#include <sched.h>
|
||||
+#endif
|
||||
#include <pthread.h>
|
||||
+#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||
+#include <pthread_np.h>
|
||||
+#endif
|
||||
extern cpu_set_t groupAffinity;
|
||||
#define EB_CREATETHREAD(type, pointer, nElements, pointerClass, threadFunction, threadContext) \
|
||||
|
|
Loading…
Reference in a new issue