Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
technical:generic:openmpi-4-ucx-issue [2024-12-05 10:37] – frey | technical:generic:openmpi-4-ucx-issue [2024-12-05 10:47] (current) – [How is it fixed] frey | ||
---|---|---|---|
Line 75: | Line 75: | ||
</ | </ | ||
- | The GCC compiler implements a '' | + | Adding the precondition that '' |
+ | |||
+ | <code c> | ||
+ | int ctz(unsigned int v) | ||
+ | { | ||
+ | int l = 0; | ||
+ | |||
+ | while ( (v & 1) == 0 ) l++, v >>= 1; | ||
+ | return l; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | and if '' | ||
+ | |||
+ | <code c> | ||
+ | int ctz(unsigned int v) | ||
+ | { | ||
+ | int l = -1; | ||
+ | |||
+ | do { l++, v >>= 1; } while (v); | ||
+ | return l; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The GCC compiler implements a '' | ||
<code c> | <code c> |