[openib-general] mvapich-gen2 IA64 compile problem

John Partridge johnip at sgi.com
Wed Oct 12 08:30:12 PDT 2005


I am compiling mvapich-gen2 on a IA64 (SGI Altix) and have hit an issue with ibverbs_const.h
DEFAULT_MTU is defined for IA32, X86_64 and EM64T, but not IA64, so please may I propose this
small patch to fix this problem :-


--- ibverbs_const.h     2005-10-10 15:43:41.615100090 -0500
+++ ibverbs_const.h-johnip      2005-10-10 15:46:14.696637248 -0500
@@ -20,11 +20,10 @@
  #define DEFAULT_MAX_RECV_WQE        (300)
  #define DEFAULT_MAX_SEND_SGE        (1)
  #define DEFAULT_MAX_RECV_SGE        (1)
-#if defined(_IA32_) || defined(_X86_64_)
-#define DEFAULT_MTU                 (IBV_MTU_1024)
-#endif
  #if defined(_EM64T_)
  #define DEFAULT_MTU                 (IBV_MTU_2048)
+#else
+#define DEFAULT_MTU                 (IBV_MTU_1024)
  #endif
  #define DEFAULT_MAX_RDMA_SIZE       (1048576)
  #define DEFAULT_PSN                 (0)

So the new code would look like this :-

#if defined(_EM64T_)
#define DEFAULT_MTU                 (IBV_MTU_2048)
#else
#define DEFAULT_MTU                 (IBV_MTU_1024)
#endif

John

-- 
John Partridge

Silicon Graphics Inc
Tel:  651-683-3428
Vnet: 233-3428
E-Mail: johnip at sgi.com



More information about the general mailing list