branch | s11-sru |
changeset 2291 | b0bb4aa104b6 |
parent 369 | cc8c00719da9 |
2290:1eee62467178 | 2291:b0bb4aa104b6 |
---|---|
287 #include <string.h> |
287 #include <string.h> |
288 +#endif |
288 +#endif |
289 #include <unistd.h> |
289 #include <unistd.h> |
290 #include <netinet/in.h> |
290 #include <netinet/in.h> |
291 #include <rdma/rdma_cma.h> |
291 #include <rdma/rdma_cma.h> |
292 @@ -566,11 +570,15 @@ |
292 @@ -110,7 +114,8 @@ |
293 uint32_t srqn; /* Shared queue number */ |
|
294 uint32_t rkey; /* Remote key */ |
|
295 uint32_t alt_lid; /* Alternate Path Local LID */ |
|
296 - uint32_t rd_atomic; /* Number of read/atomics supported */ |
|
297 + uint32_t rd_atomic /* Number of read/atomics supported */ |
|
298 + __attribute__ ((aligned (8))); /* align struct size to 64-bit binary */ |
|
299 } NODE; |
|
300 |
|
301 |
|
302 @@ -566,11 +571,15 @@ |
|
293 void |
303 void |
294 run_client_uc_bi_bw(void) |
304 run_client_uc_bi_bw(void) |
295 { |
305 { |
296 +#if (defined(__SVR4) && defined(__sun)) |
306 +#if (defined(__SVR4) && defined(__sun)) |
297 + error(RET, "UC Not Supported"); |
307 + error(RET, "UC Not Supported"); |
303 show_results(BANDWIDTH_SR); |
313 show_results(BANDWIDTH_SR); |
304 +#endif |
314 +#endif |
305 } |
315 } |
306 |
316 |
307 |
317 |
308 @@ -580,7 +588,11 @@ |
318 @@ -580,7 +589,11 @@ |
309 void |
319 void |
310 run_server_uc_bi_bw(void) |
320 run_server_uc_bi_bw(void) |
311 { |
321 { |
312 +#if (defined(__SVR4) && defined(__sun)) |
322 +#if (defined(__SVR4) && defined(__sun)) |
313 + error(RET, "UC Not Supported"); |
323 + error(RET, "UC Not Supported"); |
315 rd_bi_bw(IBV_QPT_UC); |
325 rd_bi_bw(IBV_QPT_UC); |
316 +#endif |
326 +#endif |
317 } |
327 } |
318 |
328 |
319 |
329 |
320 @@ -590,6 +602,9 @@ |
330 @@ -590,6 +603,9 @@ |
321 void |
331 void |
322 run_client_uc_bw(void) |
332 run_client_uc_bw(void) |
323 { |
333 { |
324 +#if (defined(__SVR4) && defined(__sun)) |
334 +#if (defined(__SVR4) && defined(__sun)) |
325 + error(RET, "UC Not Supported"); |
335 + error(RET, "UC Not Supported"); |
326 +#else |
336 +#else |
327 par_use(L_ACCESS_RECV); |
337 par_use(L_ACCESS_RECV); |
328 par_use(R_ACCESS_RECV); |
338 par_use(R_ACCESS_RECV); |
329 par_use(L_NO_MSGS); |
339 par_use(L_NO_MSGS); |
330 @@ -597,6 +612,7 @@ |
340 @@ -597,6 +613,7 @@ |
331 rd_params(IBV_QPT_UC, K64, 1, 0); |
341 rd_params(IBV_QPT_UC, K64, 1, 0); |
332 rd_client_bw(IBV_QPT_UC); |
342 rd_client_bw(IBV_QPT_UC); |
333 show_results(BANDWIDTH_SR); |
343 show_results(BANDWIDTH_SR); |
334 +#endif |
344 +#endif |
335 } |
345 } |
336 |
346 |
337 |
347 |
338 @@ -606,7 +622,11 @@ |
348 @@ -606,7 +623,11 @@ |
339 void |
349 void |
340 run_server_uc_bw(void) |
350 run_server_uc_bw(void) |
341 { |
351 { |
342 +#if (defined(__SVR4) && defined(__sun)) |
352 +#if (defined(__SVR4) && defined(__sun)) |
343 + error(RET, "UC Not Supported"); |
353 + error(RET, "UC Not Supported"); |
345 rd_server_def(IBV_QPT_UC); |
355 rd_server_def(IBV_QPT_UC); |
346 +#endif |
356 +#endif |
347 } |
357 } |
348 |
358 |
349 |
359 |
350 @@ -616,8 +636,12 @@ |
360 @@ -616,8 +637,12 @@ |
351 void |
361 void |
352 run_client_uc_lat(void) |
362 run_client_uc_lat(void) |
353 { |
363 { |
354 +#if (defined(__SVR4) && defined(__sun)) |
364 +#if (defined(__SVR4) && defined(__sun)) |
355 + error(RET, "UC Not Supported"); |
365 + error(RET, "UC Not Supported"); |
358 rd_pp_lat(IBV_QPT_UC, IO_SR); |
368 rd_pp_lat(IBV_QPT_UC, IO_SR); |
359 +#endif |
369 +#endif |
360 } |
370 } |
361 |
371 |
362 |
372 |
363 @@ -627,7 +651,11 @@ |
373 @@ -627,7 +652,11 @@ |
364 void |
374 void |
365 run_server_uc_lat(void) |
375 run_server_uc_lat(void) |
366 { |
376 { |
367 +#if (defined(__SVR4) && defined(__sun)) |
377 +#if (defined(__SVR4) && defined(__sun)) |
368 + error(RET, "UC Not Supported"); |
378 + error(RET, "UC Not Supported"); |
370 rd_pp_lat(IBV_QPT_UC, IO_SR); |
380 rd_pp_lat(IBV_QPT_UC, IO_SR); |
371 +#endif |
381 +#endif |
372 } |
382 } |
373 |
383 |
374 |
384 |
375 @@ -637,9 +665,13 @@ |
385 @@ -637,9 +666,13 @@ |
376 void |
386 void |
377 run_client_uc_rdma_write_bw(void) |
387 run_client_uc_rdma_write_bw(void) |
378 { |
388 { |
379 +#if (defined(__SVR4) && defined(__sun)) |
389 +#if (defined(__SVR4) && defined(__sun)) |
380 + error(RET, "UC Not Supported"); |
390 + error(RET, "UC Not Supported"); |
384 show_results(BANDWIDTH_SR); |
394 show_results(BANDWIDTH_SR); |
385 +#endif |
395 +#endif |
386 } |
396 } |
387 |
397 |
388 |
398 |
389 @@ -649,7 +681,11 @@ |
399 @@ -649,7 +682,11 @@ |
390 void |
400 void |
391 run_server_uc_rdma_write_bw(void) |
401 run_server_uc_rdma_write_bw(void) |
392 { |
402 { |
393 +#if (defined(__SVR4) && defined(__sun)) |
403 +#if (defined(__SVR4) && defined(__sun)) |
394 + error(RET, "UC Not Supported"); |
404 + error(RET, "UC Not Supported"); |
396 rd_server_def(IBV_QPT_UC); |
406 rd_server_def(IBV_QPT_UC); |
397 +#endif |
407 +#endif |
398 } |
408 } |
399 |
409 |
400 |
410 |
401 @@ -659,8 +695,12 @@ |
411 @@ -659,8 +696,12 @@ |
402 void |
412 void |
403 run_client_uc_rdma_write_lat(void) |
413 run_client_uc_rdma_write_lat(void) |
404 { |
414 { |
405 +#if (defined(__SVR4) && defined(__sun)) |
415 +#if (defined(__SVR4) && defined(__sun)) |
406 + error(RET, "UC Not Supported"); |
416 + error(RET, "UC Not Supported"); |
409 rd_pp_lat(IBV_QPT_UC, IO_RDMA); |
419 rd_pp_lat(IBV_QPT_UC, IO_RDMA); |
410 +#endif |
420 +#endif |
411 } |
421 } |
412 |
422 |
413 |
423 |
414 @@ -670,7 +710,11 @@ |
424 @@ -670,7 +711,11 @@ |
415 void |
425 void |
416 run_server_uc_rdma_write_lat(void) |
426 run_server_uc_rdma_write_lat(void) |
417 { |
427 { |
418 +#if (defined(__SVR4) && defined(__sun)) |
428 +#if (defined(__SVR4) && defined(__sun)) |
419 + error(RET, "UC Not Supported"); |
429 + error(RET, "UC Not Supported"); |
421 rd_pp_lat(IBV_QPT_UC, IO_RDMA); |
431 rd_pp_lat(IBV_QPT_UC, IO_RDMA); |
422 +#endif |
432 +#endif |
423 } |
433 } |
424 |
434 |
425 |
435 |
426 @@ -680,9 +724,13 @@ |
436 @@ -680,9 +725,13 @@ |
427 void |
437 void |
428 run_client_uc_rdma_write_poll_lat(void) |
438 run_client_uc_rdma_write_poll_lat(void) |
429 { |
439 { |
430 +#if (defined(__SVR4) && defined(__sun)) |
440 +#if (defined(__SVR4) && defined(__sun)) |
431 + error(RET, "UC Not Supported"); |
441 + error(RET, "UC Not Supported"); |
435 show_results(LATENCY); |
445 show_results(LATENCY); |
436 +#endif |
446 +#endif |
437 } |
447 } |
438 |
448 |
439 |
449 |
440 @@ -692,7 +740,11 @@ |
450 @@ -692,7 +741,11 @@ |
441 void |
451 void |
442 run_server_uc_rdma_write_poll_lat(void) |
452 run_server_uc_rdma_write_poll_lat(void) |
443 { |
453 { |
444 +#if (defined(__SVR4) && defined(__sun)) |
454 +#if (defined(__SVR4) && defined(__sun)) |
445 + error(RET, "UC Not Supported"); |
455 + error(RET, "UC Not Supported"); |
507 + sa.ss_family = AF_INET; |
517 + sa.ss_family = AF_INET; |
508 +#endif |
518 +#endif |
509 qgetnameinfo((SA *)&sa, salen, 0, 0, p, sizeof(p), NI_NUMERICSERV); |
519 qgetnameinfo((SA *)&sa, salen, 0, 0, p, sizeof(p), NI_NUMERICSERV); |
510 port = atoi(p); |
520 port = atoi(p); |
511 if (!port) |
521 if (!port) |
522 diff -r -u /tmp/730054/qperf-0.4.6/src/qperf.h qperf-0.4.6/src/qperf.h |
|
523 --- /tmp/730054/qperf-0.4.6/src/qperf.h Mon Aug 31 00:00:40 2009 |
|
524 +++ qperf-0.4.6/src/qperf.h Mon Jun 11 21:45:24 2012 |
|
525 @@ -193,6 +193,7 @@ |
|
526 uint32_t no_cpus; /* Number of processors */ |
|
527 uint32_t no_ticks; /* Ticks per second */ |
|
528 uint32_t max_cqes; /* Maximum CQ entries */ |
|
529 + __attribute__ ((aligned (8))) /* align with 32-bit & 64-bit binary */ |
|
530 CLOCK time_s[T_N]; /* Start times */ |
|
531 CLOCK time_e[T_N]; /* End times */ |
|
532 USTAT s; /* Send statistics */ |