Say you support no-SSE, SSE or AVX and you want to pick which to use at runtime. Is there a way to tell the optimizer not to use AVX, or SEE on a given module? Like set "-mattr" on a module by module basis?
Thread overview |
---|
January 07, 2024 Controlling SIMD codegen on a module by module basis? | ||||
---|---|---|---|---|
| ||||
January 07, 2024 Re: Controlling SIMD codegen on a module by module basis? | ||||
---|---|---|---|---|
| ||||
Posted in reply to claptrap | On Sunday, 7 January 2024 at 10:48:47 UTC, claptrap wrote: >Say you support no-SSE, SSE or AVX and you want to pick which to use at runtime. Is there a way to tell the optimizer not to use AVX, or SEE on a given module? Like set "-mattr" on a module by module basis? You can use @ldc.attributes.target for this. cheers, |
January 07, 2024 Re: Controlling SIMD codegen on a module by module basis? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan | On Sunday, 7 January 2024 at 12:08:17 UTC, Johan wrote: >On Sunday, 7 January 2024 at 10:48:47 UTC, claptrap wrote: >Say you support no-SSE, SSE or AVX and you want to pick which to use at runtime. Is there a way to tell the optimizer not to use AVX, or SEE on a given module? Like set "-mattr" on a module by module basis? You can use @ldc.attributes.target for this. cheers, thanks |