Skip to content

Commit

Permalink
Adding arch detection in xccl_ucs
Browse files Browse the repository at this point in the history
Signed-off-by: Tomislavj Janjusic <[email protected]>

Co-authored-by: Artem Polyakov <[email protected]>
Co-authored-by: Sergey Lebedev <[email protected]>
  • Loading branch information
3 people committed Jan 7, 2021
1 parent 434f3dc commit 2e158cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/xccl_ucs.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
#define XCCL_UCS_H_

#include <inttypes.h>
#include <ucs/arch/x86_64/bitops.h>

#if defined(__x86_64__)
# include <ucs/arch/x86_64/bitops.h>
#elif defined(__aarch64__)
# include <ucs/arch/aarch64/bitops.h>
#elif defined(__powerpc64__)
# include <ucs/arch/ppc64/bitops.h>
#else
# error "Unsupported architecture"
#endif

#define ucs_ilog2(_n) \
( \
Expand Down

0 comments on commit 2e158cb

Please sign in to comment.