Re: How use ldc pragmas?

2021-10-02 Thread james.p.leblanc via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc wrote: D-ers, Update from myself to myself (and any others who might use the bash command from my origin posting), I try to compile the above using: ```bash ldc2 -mattr=+avx2 myexample.d -H ~/ldc2/import/ldc/gccbuiltins_x86.di

Re: How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:19:39 UTC, Imperatorn wrote: Take a look at my post ;) YES! === Thanks to both Imperatorn, and Max for their helpful and quick responses. The problem is SOLVED! I didn't realize that the pragma had to be placed outside of the main() ... but it seems

Re: How use ldc pragmas?

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:14:01 UTC, james.p.leblanc wrote: On Friday, 1 October 2021 at 19:58:30 UTC, max haughton wrote: [...] [...] Hello Max, Thanks for the correction... unfortunately, even after changing the "32", to "f32", **I receive the same error**. So there is something

Re: How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:58:30 UTC, max haughton wrote: On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc Is it sqrt.32 or sqrt.f32? Try the latter, LLVM docs seem to agree. Hello Max, Thanks for the correction... unfortunately, even after changing the "32", to "f32", **I

Re: How use ldc pragmas?

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc wrote: D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are

Re: How use ldc pragmas?

2021-10-01 Thread max haughton via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc wrote: D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are

How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are quite welcome). Based on this, I wanted to investigate the use of