Skip to content

Embree ISA issue on OSX #47

Description

@melMass

Hi,

I'm planning to use Cycles in Gaffer next week so I want to try and build a version at home first and l'll report my issues here.

Issue 01 - Multiple ISAs not allowed in Clang

I think the most portable way to deal with it is to use embree's instructions detection by using:

-D EMBREE_MAX_ISA=DEFAULT

This detects the current CPU's instruction technology and only build that one. It might be an issue in CI and Docker but I think it's cross platform for the rest.

Error

But different instructions are requested later on in the build resulting in the following errors:

Make Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
EMBREE_EMBREE_AVX2_LIBRARY (ADVANCED)
    linked by target "GafferCycles" in directory /Users/joedoe/gits/contribs/GafferCycles
    linked by target "cycles" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/app
    linked by target "cycles_bvh" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/bvh
EMBREE_EMBREE_AVX_LIBRARY (ADVANCED)
    linked by target "GafferCycles" in directory /Users/joedoe/gits/contribs/GafferCycles
    linked by target "cycles" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/app
    linked by target "cycles_bvh" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/bvh
EMBREE_EMBREE_SSE42_LIBRARY (ADVANCED)
    linked by target "GafferCycles" in directory /Users/joedoe/gits/contribs/GafferCycles
    linked by target "cycles" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/app
    linked by target "cycles_bvh" in directory /Users/joedoe/gits/contribs/GafferCycles/cycles/src/bvh

I'm still debugging it but if you have an idea :)

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions