Hi Shachar,

When you use multiple targets in the same compilation, it triggers enabling
of auto-dispatch code. The problem is that auto-dispatch needs to make
decision for the dispatch solely on CPUID. Hence two targets for the same
ISA, but with different width cause ambiguity.

Who are you going to use the same function compiled for the same AVX
targets in different variants? How are you going to make a decision which
version to use?

Dmitry.

On Thu, Apr 11, 2019 at 7:40 AM shachar harussi <[email protected]> wrote:

> Hi,
> I compile w/ ispc for multiple targets ( same code on different machines
> w/  avx OR avx2  OR both)
> tried
> ispc --pic
> --target=avx1-i32x4,avx1-i32x8,avx1-i32x16,avx1-i64x4,avx1.1-i32x8,avx1.1-i32x16,avx1.1-i64x4,avx2-i32x8,avx2-i32x16,avx2-i64x4,avx512knl-i32x16,avx512skx-i32x16
> ${CMAKE_CURRENT_SOURCE_DIR}/ispc/${srcfile}.ispc -o ${srcfile}.o
>
> but getting
>
> Error: Can't compile to multiple variants of avx target!
>
> What should I do ?
>
> use generic ?
>
> compile w/ different avx targets by my self ?
>
> best,
>
> Shachar
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Intel SPMD Program Compiler Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to