Build failure on anything other than x86*


Leon Marz
 

Thanks for the quick reply.

I will happily test this patch on any architecture I have access to.

- Leon

On 10/4/22 17:40, Larry Gritz wrote:
I see, you are correct! It looks like there are a few places where the inclusion of certain headers that are specific to the SIMD batch shading should be guarded by `#if OSL_USE_BATCHED`.

I'll try to put together a patch that addresses this, but I'll need some help to verify that it works because I don't have machines with those architectures to directly test with.

-- lg


On Oct 4, 2022, at 8:32 AM, Leon Marz via lists.aswf.io <http://lists.aswf.io> <main=lmarz.org@...> wrote:

Hi,

I've noticed that with version 1.12.6.2 of osl only building on x86* architectures works.

The problem lies in src/include/OSL/mask.h with the inclusion of immintrin.h, the intel intrinsics.

I have attached the full log for further information.

I may be an error on my side with a wrong configuration, but I currently don't see any way to disable this functionality.

Thank you very much,

- Leon


OSL version: 1.12.6.2

OS: Alpine Linux

C++ compiler: Clang 15.0.1

LLVM version: 15.0.1

OIIO version: 2.4.4.2

Build success on: x86, x86_64

Build failure on: aarch64 (arm64), armhf, armv7, ppc64le, riscv64






<log.txt>
--
Larry Gritz
lg@...






Larry Gritz
 

I see, you are correct! It looks like there are a few places where the inclusion of certain headers that are specific to the SIMD batch shading should be guarded by `#if OSL_USE_BATCHED`.

I'll try to put together a patch that addresses this, but I'll need some help to verify that it works because I don't have machines with those architectures to directly test with.

-- lg


On Oct 4, 2022, at 8:32 AM, Leon Marz via lists.aswf.io <main=lmarz.org@...> wrote:

Hi,

I've noticed that with version 1.12.6.2 of osl only building on x86* architectures works.

The problem lies in src/include/OSL/mask.h with the inclusion of immintrin.h, the intel intrinsics.

I have attached the full log for further information.

I may be an error on my side with a wrong configuration, but I currently don't see any way to disable this functionality.

Thank you very much,

- Leon


OSL version: 1.12.6.2

OS: Alpine Linux

C++ compiler: Clang 15.0.1

LLVM version: 15.0.1

OIIO version: 2.4.4.2

Build success on: x86, x86_64

Build failure on: aarch64 (arm64), armhf, armv7, ppc64le, riscv64






<log.txt>

--
Larry Gritz






Leon Marz
 

Hi,

I've noticed that with version 1.12.6.2 of osl only building on x86* architectures works.

The problem lies in src/include/OSL/mask.h with the inclusion of immintrin.h, the intel intrinsics.

I have attached the full log for further information.

I may be an error on my side with a wrong configuration, but I currently don't see any way to disable this functionality.

Thank you very much,

- Leon


OSL version: 1.12.6.2

OS: Alpine Linux

C++ compiler: Clang 15.0.1

LLVM version: 15.0.1

OIIO version: 2.4.4.2

Build success on: x86, x86_64

Build failure on: aarch64 (arm64), armhf, armv7, ppc64le, riscv64