Date: Tue, 18 Oct 2022 20:36:39 +1030 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Dima Panov <fluffy@FreeBSD.org>, Tatsuki Makino <tatsuki_makino@hotmail.com> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: Blender Message-ID: <c9900c7b-dbc3-87ff-a2a9-99f79f1e0320@ShaneWare.Biz> In-Reply-To: <8b4ff769-9707-3ae3-7de1-1b77d9776098@FreeBSD.org> References: <20221015124220.7df485d6@dismail.de> <PSAPR03MB563903B2554A4AEBA9D52401FA279@PSAPR03MB5639.apcprd03.prod.outlook.com> <6f526043-c67c-0261-12dd-e8c58612dc86@FreeBSD.org> <PSAPR03MB5639A5BF89291F017B8B536DFA279@PSAPR03MB5639.apcprd03.prod.outlook.com> <o7uc-v3ts-wny@FreeBSD.org> <PSAPR03MB563933699CE20E6848A24F82FA269@PSAPR03MB5639.apcprd03.prod.outlook.com> <PSAPR03MB563958F89E166A68CB29715FFA269@PSAPR03MB5639.apcprd03.prod.outlook.com> <PSAPR03MB5639AF4C5068C2F70331386BFA299@PSAPR03MB5639.apcprd03.prod.outlook.com> <8b4ff769-9707-3ae3-7de1-1b77d9776098@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18/10/22 3:18 am, Dima Panov wrote: > > > On 17.10.2022 10:21, Tatsuki Makino wrote: >> Tatsuki Makino wrote on 2022/10/16 15:45: >>> opensubdiv-3.5.0 package was created by poudriere bulk -T. >>> However, blender-3.2.2_2 build using it failed. >>> There is a line in the log that may be caused by opensubdiv. >>> >> >> I don't know how to use OpenMP properly... >> In opensubdiv-3.5.0, OpenMP is used since NO_OMP was dropped. >> ( >> https://cgit.freebsd.org/ports/commit/graphics/opensubdiv?id=161039e32b880280cc0fb7b478bfc2a0181ba8fc >> ) >> Therefore, -fopenmp=libomp is added to all compilations. >> However, when linking libraries, it may be necessary to link some kind >> of openmp library, but there is no writing about it anywhere. >> (something like ${OpenMP_CXX_LIBRARIES}) >> So I think that if NO_OMP is not written in CMAKE_ON, it will generate >> a library that cannot be used. >> This is just a guess by me, not understanding OpenMP :) > > Blender have an options knob OPENMP to utilize it. > > By the way, I'll modify opensubdiv to make openmp support optional too > (off by defaukt) > It has been a while since I tested it, there were issues trying to get opensubdiv and blender working with openmp. Now that llvm has had openmp support for a while, this may not be the case. The TBB allows multi-cpu usage without building issues. I recall the osd examples/tests showing tbb to be a better if not equal option to omp. -- FreeBSD - the place to B...Software Developing Shane Ambler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c9900c7b-dbc3-87ff-a2a9-99f79f1e0320>