Tools (profiler)¶
- Contenu
- Tools (profiler)
likwid
¶
- https://hpc.fau.de/research/tools/likwid/
- https://github.com/RRZE-HPC/likwid
- Likwid is toolsuite of command line applications and a library for performance oriented programmers. It works for Intel, AMD, ARMv8 and POWER9 processors on the Linux operating system. There is additional support for Nvidia and AMD GPUs.
Utilisation¶
- module associé :
profilers/likwid/5.3.0
homer@jarvis ~ $ module add profilers/likwid/5.3.0 Loading profilers/likwid/5.3.0 Loading requirement: compilers/gcc/14.2.0
- découverte de la topologie matérielle (NUMA) :
homer@jarvis ~ $ likwid-topology -------------------------------------------------------------------------------- CPU name: Intel(R) Xeon(R) Platinum 8468H CPU type: Intel SapphireRapids processor CPU stepping: 8 ******************************************************************************** Hardware Thread Topology ******************************************************************************** Sockets: 16 Cores per socket: 48 Threads per core: 1 -------------------------------------------------------------------------------- HWThread Thread Core Die Socket Available 0 0 0 0 0 * 1 0 1 0 0 2 0 2 0 0 3 0 3 0 0 4 0 4 0 0 5 0 5 0 0 6 0 6 0 0 7 0 7 0 0 8 0 8 0 0 9 0 9 0 0 10 0 10 0 0 ... 758 0 758 0 15 759 0 759 0 15 760 0 760 0 15 761 0 761 0 15 762 0 762 0 15 763 0 763 0 15 764 0 764 0 15 765 0 765 0 15 766 0 766 0 15 767 0 767 0 15 -------------------------------------------------------------------------------- Socket 0: ( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ) Socket 1: ( 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 ) Socket 2: ( 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 ) Socket 3: ( 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ) Socket 4: ( 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 ) Socket 5: ( 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 ) Socket 6: ( 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 ) Socket 7: ( 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 ) Socket 8: ( 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 ) Socket 9: ( 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 ) Socket 10: ( 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 ) Socket 11: ( 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 ) Socket 12: ( 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 ) Socket 13: ( 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 ) Socket 14: ( 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 ) Socket 15: ( 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 ) -------------------------------------------------------------------------------- ******************************************************************************** Cache Topology ******************************************************************************** Level: 1 Size: 48 kB Cache groups: ( 0 ) ( 1 ) ( 2 ) ( 3 ) ( 4 ) ( 5 ) ( 6 ) ( 7 ) ( 8 ) ( 9 ) ( 10 ) ( 11 ) ( 12 ) ( 13 ) ( 14 ) ( 15 ) ( 16 ) ( 17 ) ( 18 ) ( 19 ) ( 20 ) ( 21 ) ( 22 ) ( 23 ) ( 24 ) ( 25 ) ( 26 ) ( 27 ) ( 28 ) ( 29 ) ( 30 ) ( 31 ) ( 32 ) ( 33 ) ( 34 ) ( 35 ) ( 36 ) ( 37 ) ( 38 ) ( 39 ) ( 40 ) ( 41 ) ( 42 ) ( 43 ) ( 44 ) ( 45 ) ( 46 ) ( 47 ) ( 48 ) ( 49 ) ( 50 ) ( 51 ) ( 52 ) ( 53 ) ( 54 ) ( 55 ) ( 56 ) ( 57 ) ( 58 ) ( 59 ) ( 60 ) ( 61 ) ( 62 ) ( 63 ) ( 64 ) ( 65 ) ( 66 ) ( 67 ) ( 68 ) ( 69 ) ( 70 ) ( 71 ) ( 72 ) ( 73 ) ( 74 ) ( 75 ) ( 76 ) ( 77 ) ( 78 ) ( 79 ) ( 80 ) ( 81 ) ( 82 ) ( 83 ) ( 84 ) ( 85 ) ( 86 ) ( 87 ) ( 88 ) ( 89 ) ( 90 ) ( 91 ) ( 92 ) ( 93 ) ( 94 ) ( 95 ) ( 96 ) ( 97 ) ( 98 ) ( 99 ) ( 100 ) ( 101 ) ( 102 ) ( 103 ) ( 104 ) ( 105 ) ( 106 ) ( 107 ) ( 108 ) ( 109 ) ( 110 ) ( 111 ) ( 112 ) ( 113 ) ( 114 ) ( 115 ) ( 116 ) ( 117 ) ( 118 ) ( 119 ) ( 120 ) ( 121 ) ( 122 ) ( 123 ) ( 124 ) ( 125 ) ( 126 ) ( 127 ) ( 128 ) ( 129 ) ( 130 ) ( 131 ) ( 132 ) ( 133 ) ( 134 ) ( 135 ) ( 136 ) ( 137 ) ( 138 ) ( 139 ) ( 140 ) ( 141 ) ( 142 ) ( 143 ) ( 144 ) ( 145 ) ( 146 ) ( 147 ) ( 148 ) ( 149 ) ( 150 ) ( 151 ) ( 152 ) ( 153 ) ( 154 ) ( 155 ) ( 156 ) ( 157 ) ( 158 ) ( 159 ) ( 160 ) ( 161 ) ( 162 ) ( 163 ) ( 164 ) ( 165 ) ( 166 ) ( 167 ) ( 168 ) ( 169 ) ( 170 ) ( 171 ) ( 172 ) ( 173 ) ( 174 ) ( 175 ) ( 176 ) ( 177 ) ( 178 ) ( 179 ) ( 180 ) ( 181 ) ( 182 ) ( 183 ) ( 184 ) ( 185 ) ( 186 ) ( 187 ) ( 188 ) ( 189 ) ( 190 ) ( 191 ) ( 192 ) ( 193 ) ( 194 ) ( 195 ) ( 196 ) ( 197 ) ( 198 ) ( 199 ) ( 200 ) ( 201 ) ( 202 ) ( 203 ) ( 204 ) ( 205 ) ( 206 ) ( 207 ) ( 208 ) ( 209 ) ( 210 ) ( 211 ) ( 212 ) ( 213 ) ( 214 ) ( 215 ) ( 216 ) ( 217 ) ( 218 ) ( 219 ) ( 220 ) ( 221 ) ( 222 ) ( 223 ) ( 224 ) ( 225 ) ( 226 ) ( 227 ) ( 228 ) ( 229 ) ( 230 ) ( 231 ) ( 232 ) ( 233 ) ( 234 ) ( 235 ) ( 236 ) ( 237 ) ( 238 ) ( 239 ) ( 240 ) ( 241 ) ( 242 ) ( 243 ) ( 244 ) ( 245 ) ( 246 ) ( 247 ) ( 248 ) ( 249 ) ( 250 ) ( 251 ) ( 252 ) ( 253 ) ( 254 ) ( 255 ) ( 256 ) ( 257 ) ( 258 ) ( 259 ) ( 260 ) ( 261 ) ( 262 ) ( 263 ) ( 264 ) ( 265 ) ( 266 ) ( 267 ) ( 268 ) ( 269 ) ( 270 ) ( 271 ) ( 272 ) ( 273 ) ( 274 ) ( 275 ) ( 276 ) ( 277 ) ( 278 ) ( 279 ) ( 280 ) ( 281 ) ( 282 ) ( 283 ) ( 284 ) ( 285 ) ( 286 ) ( 287 ) ( 288 ) ( 289 ) ( 290 ) ( 291 ) ( 292 ) ( 293 ) ( 294 ) ( 295 ) ( 296 ) ( 297 ) ( 298 ) ( 299 ) ( 300 ) ( 301 ) ( 302 ) ( 303 ) ( 304 ) ( 305 ) ( 306 ) ( 307 ) ( 308 ) ( 309 ) ( 310 ) ( 311 ) ( 312 ) ( 313 ) ( 314 ) ( 315 ) ( 316 ) ( 317 ) ( 318 ) ( 319 ) ( 320 ) ( 321 ) ( 322 ) ( 323 ) ( 324 ) ( 325 ) ( 326 ) ( 327 ) ( 328 ) ( 329 ) ( 330 ) ( 331 ) ( 332 ) ( 333 ) ( 334 ) ( 335 ) ( 336 ) ( 337 ) ( 338 ) ( 339 ) ( 340 ) ( 341 ) ( 342 ) ( 343 ) ( 344 ) ( 345 ) ( 346 ) ( 347 ) ( 348 ) ( 349 ) ( 350 ) ( 351 ) ( 352 ) ( 353 ) ( 354 ) ( 355 ) ( 356 ) ( 357 ) ( 358 ) ( 359 ) ( 360 ) ( 361 ) ( 362 ) ( 363 ) ( 364 ) ( 365 ) ( 366 ) ( 367 ) ( 368 ) ( 369 ) ( 370 ) ( 371 ) ( 372 ) ( 373 ) ( 374 ) ( 375 ) ( 376 ) ( 377 ) ( 378 ) ( 379 ) ( 380 ) ( 381 ) ( 382 ) ( 383 ) ( 384 ) ( 385 ) ( 386 ) ( 387 ) ( 388 ) ( 389 ) ( 390 ) ( 391 ) ( 392 ) ( 393 ) ( 394 ) ( 395 ) ( 396 ) ( 397 ) ( 398 ) ( 399 ) ( 400 ) ( 401 ) ( 402 ) ( 403 ) ( 404 ) ( 405 ) ( 406 ) ( 407 ) ( 408 ) ( 409 ) ( 410 ) ( 411 ) ( 412 ) ( 413 ) ( 414 ) ( 415 ) ( 416 ) ( 417 ) ( 418 ) ( 419 ) ( 420 ) ( 421 ) ( 422 ) ( 423 ) ( 424 ) ( 425 ) ( 426 ) ( 427 ) ( 428 ) ( 429 ) ( 430 ) ( 431 ) ( 432 ) ( 433 ) ( 434 ) ( 435 ) ( 436 ) ( 437 ) ( 438 ) ( 439 ) ( 440 ) ( 441 ) ( 442 ) ( 443 ) ( 444 ) ( 445 ) ( 446 ) ( 447 ) ( 448 ) ( 449 ) ( 450 ) ( 451 ) ( 452 ) ( 453 ) ( 454 ) ( 455 ) ( 456 ) ( 457 ) ( 458 ) ( 459 ) ( 460 ) ( 461 ) ( 462 ) ( 463 ) ( 464 ) ( 465 ) ( 466 ) ( 467 ) ( 468 ) ( 469 ) ( 470 ) ( 471 ) ( 472 ) ( 473 ) ( 474 ) ( 475 ) ( 476 ) ( 477 ) ( 478 ) ( 479 ) ( 480 ) ( 481 ) ( 482 ) ( 483 ) ( 484 ) ( 485 ) ( 486 ) ( 487 ) ( 488 ) ( 489 ) ( 490 ) ( 491 ) ( 492 ) ( 493 ) ( 494 ) ( 495 ) ( 496 ) ( 497 ) ( 498 ) ( 499 ) ( 500 ) ( 501 ) ( 502 ) ( 503 ) ( 504 ) ( 505 ) ( 506 ) ( 507 ) ( 508 ) ( 509 ) ( 510 ) ( 511 ) ( 512 ) ( 513 ) ( 514 ) ( 515 ) ( 516 ) ( 517 ) ( 518 ) ( 519 ) ( 520 ) ( 521 ) ( 522 ) ( 523 ) ( 524 ) ( 525 ) ( 526 ) ( 527 ) ( 528 ) ( 529 ) ( 530 ) ( 531 ) ( 532 ) ( 533 ) ( 534 ) ( 535 ) ( 536 ) ( 537 ) ( 538 ) ( 539 ) ( 540 ) ( 541 ) ( 542 ) ( 543 ) ( 544 ) ( 545 ) ( 546 ) ( 547 ) ( 548 ) ( 549 ) ( 550 ) ( 551 ) ( 552 ) ( 553 ) ( 554 ) ( 555 ) ( 556 ) ( 557 ) ( 558 ) ( 559 ) ( 560 ) ( 561 ) ( 562 ) ( 563 ) ( 564 ) ( 565 ) ( 566 ) ( 567 ) ( 568 ) ( 569 ) ( 570 ) ( 571 ) ( 572 ) ( 573 ) ( 574 ) ( 575 ) ( 576 ) ( 577 ) ( 578 ) ( 579 ) ( 580 ) ( 581 ) ( 582 ) ( 583 ) ( 584 ) ( 585 ) ( 586 ) ( 587 ) ( 588 ) ( 589 ) ( 590 ) ( 591 ) ( 592 ) ( 593 ) ( 594 ) ( 595 ) ( 596 ) ( 597 ) ( 598 ) ( 599 ) ( 600 ) ( 601 ) ( 602 ) ( 603 ) ( 604 ) ( 605 ) ( 606 ) ( 607 ) ( 608 ) ( 609 ) ( 610 ) ( 611 ) ( 612 ) ( 613 ) ( 614 ) ( 615 ) ( 616 ) ( 617 ) ( 618 ) ( 619 ) ( 620 ) ( 621 ) ( 622 ) ( 623 ) ( 624 ) ( 625 ) ( 626 ) ( 627 ) ( 628 ) ( 629 ) ( 630 ) ( 631 ) ( 632 ) ( 633 ) ( 634 ) ( 635 ) ( 636 ) ( 637 ) ( 638 ) ( 639 ) ( 640 ) ( 641 ) ( 642 ) ( 643 ) ( 644 ) ( 645 ) ( 646 ) ( 647 ) ( 648 ) ( 649 ) ( 650 ) ( 651 ) ( 652 ) ( 653 ) ( 654 ) ( 655 ) ( 656 ) ( 657 ) ( 658 ) ( 659 ) ( 660 ) ( 661 ) ( 662 ) ( 663 ) ( 664 ) ( 665 ) ( 666 ) ( 667 ) ( 668 ) ( 669 ) ( 670 ) ( 671 ) ( 672 ) ( 673 ) ( 674 ) ( 675 ) ( 676 ) ( 677 ) ( 678 ) ( 679 ) ( 680 ) ( 681 ) ( 682 ) ( 683 ) ( 684 ) ( 685 ) ( 686 ) ( 687 ) ( 688 ) ( 689 ) ( 690 ) ( 691 ) ( 692 ) ( 693 ) ( 694 ) ( 695 ) ( 696 ) ( 697 ) ( 698 ) ( 699 ) ( 700 ) ( 701 ) ( 702 ) ( 703 ) ( 704 ) ( 705 ) ( 706 ) ( 707 ) ( 708 ) ( 709 ) ( 710 ) ( 711 ) ( 712 ) ( 713 ) ( 714 ) ( 715 ) ( 716 ) ( 717 ) ( 718 ) ( 719 ) ( 720 ) ( 721 ) ( 722 ) ( 723 ) ( 724 ) ( 725 ) ( 726 ) ( 727 ) ( 728 ) ( 729 ) ( 730 ) ( 731 ) ( 732 ) ( 733 ) ( 734 ) ( 735 ) ( 736 ) ( 737 ) ( 738 ) ( 739 ) ( 740 ) ( 741 ) ( 742 ) ( 743 ) ( 744 ) ( 745 ) ( 746 ) ( 747 ) ( 748 ) ( 749 ) ( 750 ) ( 751 ) ( 752 ) ( 753 ) ( 754 ) ( 755 ) ( 756 ) ( 757 ) ( 758 ) ( 759 ) ( 760 ) ( 761 ) ( 762 ) ( 763 ) ( 764 ) ( 765 ) ( 766 ) ( 767 ) -------------------------------------------------------------------------------- Level: 2 Size: 2 MB Cache groups: ( 0 ) ( 1 ) ( 2 ) ( 3 ) ( 4 ) ( 5 ) ( 6 ) ( 7 ) ( 8 ) ( 9 ) ( 10 ) ( 11 ) ( 12 ) ( 13 ) ( 14 ) ( 15 ) ( 16 ) ( 17 ) ( 18 ) ( 19 ) ( 20 ) ( 21 ) ( 22 ) ( 23 ) ( 24 ) ( 25 ) ( 26 ) ( 27 ) ( 28 ) ( 29 ) ( 30 ) ( 31 ) ( 32 ) ( 33 ) ( 34 ) ( 35 ) ( 36 ) ( 37 ) ( 38 ) ( 39 ) ( 40 ) ( 41 ) ( 42 ) ( 43 ) ( 44 ) ( 45 ) ( 46 ) ( 47 ) ( 48 ) ( 49 ) ( 50 ) ( 51 ) ( 52 ) ( 53 ) ( 54 ) ( 55 ) ( 56 ) ( 57 ) ( 58 ) ( 59 ) ( 60 ) ( 61 ) ( 62 ) ( 63 ) ( 64 ) ( 65 ) ( 66 ) ( 67 ) ( 68 ) ( 69 ) ( 70 ) ( 71 ) ( 72 ) ( 73 ) ( 74 ) ( 75 ) ( 76 ) ( 77 ) ( 78 ) ( 79 ) ( 80 ) ( 81 ) ( 82 ) ( 83 ) ( 84 ) ( 85 ) ( 86 ) ( 87 ) ( 88 ) ( 89 ) ( 90 ) ( 91 ) ( 92 ) ( 93 ) ( 94 ) ( 95 ) ( 96 ) ( 97 ) ( 98 ) ( 99 ) ( 100 ) ( 101 ) ( 102 ) ( 103 ) ( 104 ) ( 105 ) ( 106 ) ( 107 ) ( 108 ) ( 109 ) ( 110 ) ( 111 ) ( 112 ) ( 113 ) ( 114 ) ( 115 ) ( 116 ) ( 117 ) ( 118 ) ( 119 ) ( 120 ) ( 121 ) ( 122 ) ( 123 ) ( 124 ) ( 125 ) ( 126 ) ( 127 ) ( 128 ) ( 129 ) ( 130 ) ( 131 ) ( 132 ) ( 133 ) ( 134 ) ( 135 ) ( 136 ) ( 137 ) ( 138 ) ( 139 ) ( 140 ) ( 141 ) ( 142 ) ( 143 ) ( 144 ) ( 145 ) ( 146 ) ( 147 ) ( 148 ) ( 149 ) ( 150 ) ( 151 ) ( 152 ) ( 153 ) ( 154 ) ( 155 ) ( 156 ) ( 157 ) ( 158 ) ( 159 ) ( 160 ) ( 161 ) ( 162 ) ( 163 ) ( 164 ) ( 165 ) ( 166 ) ( 167 ) ( 168 ) ( 169 ) ( 170 ) ( 171 ) ( 172 ) ( 173 ) ( 174 ) ( 175 ) ( 176 ) ( 177 ) ( 178 ) ( 179 ) ( 180 ) ( 181 ) ( 182 ) ( 183 ) ( 184 ) ( 185 ) ( 186 ) ( 187 ) ( 188 ) ( 189 ) ( 190 ) ( 191 ) ( 192 ) ( 193 ) ( 194 ) ( 195 ) ( 196 ) ( 197 ) ( 198 ) ( 199 ) ( 200 ) ( 201 ) ( 202 ) ( 203 ) ( 204 ) ( 205 ) ( 206 ) ( 207 ) ( 208 ) ( 209 ) ( 210 ) ( 211 ) ( 212 ) ( 213 ) ( 214 ) ( 215 ) ( 216 ) ( 217 ) ( 218 ) ( 219 ) ( 220 ) ( 221 ) ( 222 ) ( 223 ) ( 224 ) ( 225 ) ( 226 ) ( 227 ) ( 228 ) ( 229 ) ( 230 ) ( 231 ) ( 232 ) ( 233 ) ( 234 ) ( 235 ) ( 236 ) ( 237 ) ( 238 ) ( 239 ) ( 240 ) ( 241 ) ( 242 ) ( 243 ) ( 244 ) ( 245 ) ( 246 ) ( 247 ) ( 248 ) ( 249 ) ( 250 ) ( 251 ) ( 252 ) ( 253 ) ( 254 ) ( 255 ) ( 256 ) ( 257 ) ( 258 ) ( 259 ) ( 260 ) ( 261 ) ( 262 ) ( 263 ) ( 264 ) ( 265 ) ( 266 ) ( 267 ) ( 268 ) ( 269 ) ( 270 ) ( 271 ) ( 272 ) ( 273 ) ( 274 ) ( 275 ) ( 276 ) ( 277 ) ( 278 ) ( 279 ) ( 280 ) ( 281 ) ( 282 ) ( 283 ) ( 284 ) ( 285 ) ( 286 ) ( 287 ) ( 288 ) ( 289 ) ( 290 ) ( 291 ) ( 292 ) ( 293 ) ( 294 ) ( 295 ) ( 296 ) ( 297 ) ( 298 ) ( 299 ) ( 300 ) ( 301 ) ( 302 ) ( 303 ) ( 304 ) ( 305 ) ( 306 ) ( 307 ) ( 308 ) ( 309 ) ( 310 ) ( 311 ) ( 312 ) ( 313 ) ( 314 ) ( 315 ) ( 316 ) ( 317 ) ( 318 ) ( 319 ) ( 320 ) ( 321 ) ( 322 ) ( 323 ) ( 324 ) ( 325 ) ( 326 ) ( 327 ) ( 328 ) ( 329 ) ( 330 ) ( 331 ) ( 332 ) ( 333 ) ( 334 ) ( 335 ) ( 336 ) ( 337 ) ( 338 ) ( 339 ) ( 340 ) ( 341 ) ( 342 ) ( 343 ) ( 344 ) ( 345 ) ( 346 ) ( 347 ) ( 348 ) ( 349 ) ( 350 ) ( 351 ) ( 352 ) ( 353 ) ( 354 ) ( 355 ) ( 356 ) ( 357 ) ( 358 ) ( 359 ) ( 360 ) ( 361 ) ( 362 ) ( 363 ) ( 364 ) ( 365 ) ( 366 ) ( 367 ) ( 368 ) ( 369 ) ( 370 ) ( 371 ) ( 372 ) ( 373 ) ( 374 ) ( 375 ) ( 376 ) ( 377 ) ( 378 ) ( 379 ) ( 380 ) ( 381 ) ( 382 ) ( 383 ) ( 384 ) ( 385 ) ( 386 ) ( 387 ) ( 388 ) ( 389 ) ( 390 ) ( 391 ) ( 392 ) ( 393 ) ( 394 ) ( 395 ) ( 396 ) ( 397 ) ( 398 ) ( 399 ) ( 400 ) ( 401 ) ( 402 ) ( 403 ) ( 404 ) ( 405 ) ( 406 ) ( 407 ) ( 408 ) ( 409 ) ( 410 ) ( 411 ) ( 412 ) ( 413 ) ( 414 ) ( 415 ) ( 416 ) ( 417 ) ( 418 ) ( 419 ) ( 420 ) ( 421 ) ( 422 ) ( 423 ) ( 424 ) ( 425 ) ( 426 ) ( 427 ) ( 428 ) ( 429 ) ( 430 ) ( 431 ) ( 432 ) ( 433 ) ( 434 ) ( 435 ) ( 436 ) ( 437 ) ( 438 ) ( 439 ) ( 440 ) ( 441 ) ( 442 ) ( 443 ) ( 444 ) ( 445 ) ( 446 ) ( 447 ) ( 448 ) ( 449 ) ( 450 ) ( 451 ) ( 452 ) ( 453 ) ( 454 ) ( 455 ) ( 456 ) ( 457 ) ( 458 ) ( 459 ) ( 460 ) ( 461 ) ( 462 ) ( 463 ) ( 464 ) ( 465 ) ( 466 ) ( 467 ) ( 468 ) ( 469 ) ( 470 ) ( 471 ) ( 472 ) ( 473 ) ( 474 ) ( 475 ) ( 476 ) ( 477 ) ( 478 ) ( 479 ) ( 480 ) ( 481 ) ( 482 ) ( 483 ) ( 484 ) ( 485 ) ( 486 ) ( 487 ) ( 488 ) ( 489 ) ( 490 ) ( 491 ) ( 492 ) ( 493 ) ( 494 ) ( 495 ) ( 496 ) ( 497 ) ( 498 ) ( 499 ) ( 500 ) ( 501 ) ( 502 ) ( 503 ) ( 504 ) ( 505 ) ( 506 ) ( 507 ) ( 508 ) ( 509 ) ( 510 ) ( 511 ) ( 512 ) ( 513 ) ( 514 ) ( 515 ) ( 516 ) ( 517 ) ( 518 ) ( 519 ) ( 520 ) ( 521 ) ( 522 ) ( 523 ) ( 524 ) ( 525 ) ( 526 ) ( 527 ) ( 528 ) ( 529 ) ( 530 ) ( 531 ) ( 532 ) ( 533 ) ( 534 ) ( 535 ) ( 536 ) ( 537 ) ( 538 ) ( 539 ) ( 540 ) ( 541 ) ( 542 ) ( 543 ) ( 544 ) ( 545 ) ( 546 ) ( 547 ) ( 548 ) ( 549 ) ( 550 ) ( 551 ) ( 552 ) ( 553 ) ( 554 ) ( 555 ) ( 556 ) ( 557 ) ( 558 ) ( 559 ) ( 560 ) ( 561 ) ( 562 ) ( 563 ) ( 564 ) ( 565 ) ( 566 ) ( 567 ) ( 568 ) ( 569 ) ( 570 ) ( 571 ) ( 572 ) ( 573 ) ( 574 ) ( 575 ) ( 576 ) ( 577 ) ( 578 ) ( 579 ) ( 580 ) ( 581 ) ( 582 ) ( 583 ) ( 584 ) ( 585 ) ( 586 ) ( 587 ) ( 588 ) ( 589 ) ( 590 ) ( 591 ) ( 592 ) ( 593 ) ( 594 ) ( 595 ) ( 596 ) ( 597 ) ( 598 ) ( 599 ) ( 600 ) ( 601 ) ( 602 ) ( 603 ) ( 604 ) ( 605 ) ( 606 ) ( 607 ) ( 608 ) ( 609 ) ( 610 ) ( 611 ) ( 612 ) ( 613 ) ( 614 ) ( 615 ) ( 616 ) ( 617 ) ( 618 ) ( 619 ) ( 620 ) ( 621 ) ( 622 ) ( 623 ) ( 624 ) ( 625 ) ( 626 ) ( 627 ) ( 628 ) ( 629 ) ( 630 ) ( 631 ) ( 632 ) ( 633 ) ( 634 ) ( 635 ) ( 636 ) ( 637 ) ( 638 ) ( 639 ) ( 640 ) ( 641 ) ( 642 ) ( 643 ) ( 644 ) ( 645 ) ( 646 ) ( 647 ) ( 648 ) ( 649 ) ( 650 ) ( 651 ) ( 652 ) ( 653 ) ( 654 ) ( 655 ) ( 656 ) ( 657 ) ( 658 ) ( 659 ) ( 660 ) ( 661 ) ( 662 ) ( 663 ) ( 664 ) ( 665 ) ( 666 ) ( 667 ) ( 668 ) ( 669 ) ( 670 ) ( 671 ) ( 672 ) ( 673 ) ( 674 ) ( 675 ) ( 676 ) ( 677 ) ( 678 ) ( 679 ) ( 680 ) ( 681 ) ( 682 ) ( 683 ) ( 684 ) ( 685 ) ( 686 ) ( 687 ) ( 688 ) ( 689 ) ( 690 ) ( 691 ) ( 692 ) ( 693 ) ( 694 ) ( 695 ) ( 696 ) ( 697 ) ( 698 ) ( 699 ) ( 700 ) ( 701 ) ( 702 ) ( 703 ) ( 704 ) ( 705 ) ( 706 ) ( 707 ) ( 708 ) ( 709 ) ( 710 ) ( 711 ) ( 712 ) ( 713 ) ( 714 ) ( 715 ) ( 716 ) ( 717 ) ( 718 ) ( 719 ) ( 720 ) ( 721 ) ( 722 ) ( 723 ) ( 724 ) ( 725 ) ( 726 ) ( 727 ) ( 728 ) ( 729 ) ( 730 ) ( 731 ) ( 732 ) ( 733 ) ( 734 ) ( 735 ) ( 736 ) ( 737 ) ( 738 ) ( 739 ) ( 740 ) ( 741 ) ( 742 ) ( 743 ) ( 744 ) ( 745 ) ( 746 ) ( 747 ) ( 748 ) ( 749 ) ( 750 ) ( 751 ) ( 752 ) ( 753 ) ( 754 ) ( 755 ) ( 756 ) ( 757 ) ( 758 ) ( 759 ) ( 760 ) ( 761 ) ( 762 ) ( 763 ) ( 764 ) ( 765 ) ( 766 ) ( 767 ) -------------------------------------------------------------------------------- Level: 3 Size: 105 MB Cache groups: ( 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ) ( 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 ) ( 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 ) ( 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ) ( 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 ) ( 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 ) ( 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 ) ( 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 ) ( 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 ) ( 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 ) ( 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 ) ( 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 ) ( 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 ) ( 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 ) ( 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 ) ( 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 ) -------------------------------------------------------------------------------- ******************************************************************************** NUMA Topology ******************************************************************************** NUMA domains: 16 -------------------------------------------------------------------------------- Domain: 0 Processors: ( 0 ) Distances: 10 16 16 18 40 40 40 40 40 40 40 40 40 40 40 40 Free memory: 321324 MB Total memory: 380128 MB -------------------------------------------------------------------------------- Domain: 1 Processors: ( 48 ) Distances: 16 10 18 16 40 40 40 40 40 40 40 40 40 40 40 40 Free memory: 346937 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 2 Processors: ( 96 ) Distances: 16 18 10 16 40 40 40 40 40 40 40 40 40 40 40 40 Free memory: 343218 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 3 Processors: ( 144 ) Distances: 18 16 16 10 40 40 40 40 40 40 40 40 40 40 40 40 Free memory: 346584 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 4 Processors: ( 192 ) Distances: 40 40 40 40 10 16 16 18 40 40 40 40 40 40 40 40 Free memory: 346308 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 5 Processors: ( 240 ) Distances: 40 40 40 40 16 10 18 16 40 40 40 40 40 40 40 40 Free memory: 352213 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 6 Processors: ( 288 ) Distances: 40 40 40 40 16 18 10 16 40 40 40 40 40 40 40 40 Free memory: 347833 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 7 Processors: ( 336 ) Distances: 40 40 40 40 18 16 16 10 40 40 40 40 40 40 40 40 Free memory: 349088 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 8 Processors: ( 384 ) Distances: 40 40 40 40 40 40 40 40 10 16 16 18 40 40 40 40 Free memory: 318458 MB Total memory: 381032 MB -------------------------------------------------------------------------------- Domain: 9 Processors: ( 432 ) Distances: 40 40 40 40 40 40 40 40 16 10 18 16 40 40 40 40 Free memory: 355784 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 10 Processors: ( 480 ) Distances: 40 40 40 40 40 40 40 40 16 18 10 16 40 40 40 40 Free memory: 363833 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 11 Processors: ( 528 ) Distances: 40 40 40 40 40 40 40 40 18 16 16 10 40 40 40 40 Free memory: 372374 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 12 Processors: ( 576 ) Distances: 40 40 40 40 40 40 40 40 40 40 40 40 10 16 16 18 Free memory: 353199 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 13 Processors: ( 624 ) Distances: 40 40 40 40 40 40 40 40 40 40 40 40 16 10 18 16 Free memory: 358226 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 14 Processors: ( 672 ) Distances: 40 40 40 40 40 40 40 40 40 40 40 40 16 18 10 16 Free memory: 375506 MB Total memory: 381074 MB -------------------------------------------------------------------------------- Domain: 15 Processors: ( 720 ) Distances: 40 40 40 40 40 40 40 40 40 40 40 40 18 16 16 10 Free memory: 366057 MB Total memory: 380002 MB --------------------------------------------------------------------------------
test à partir d'une session interactive¶
La nomenclature "likwid" définit des domaines ; A thread domain is a number of threads sharing a topological entity. This can be a socket or a shared cache or a NUMA domain. Note that if hyper-threading (i.e., simultaneous multi-threading) is enabled, the numbering within a domain is compact. This means that SMT threads are numbered consecutively within a core (in contrast to the default behavior of other tools, such as likwid-pin).
homer@jarvis ~ $ srun -p interactive -n 1 --cpus-per-task=48 --time=01:00:00 --pty bash -i homer@jarvis ~ $ likwid-bench -p Number of Domains 65 Domain 0: Tag N: 201 202 203 204 245 246 247 248 293 294 295 296 341 342 343 344 388 389 390 391 436 437 438 439 484 485 486 487 532 533 534 535 580 581 582 583 628 629 630 631 676 677 678 679 736 737 738 739 ...
Le tag N
correspond au domaine avec l'ensemble des coeurs définis par slurm
- test du benchmark
copy
homer@jarvis ~ $ likwid-bench -t copy -w N:1GB Warning: Sanitizing vector length to a multiple of the loop stride 4 and thread count 48 from 62500000 elements (500000000 bytes) to 62499840 elements (499998720 bytes) Allocate: Process running on hwthread 201 (Domain N) - Vector length 62499840/499998720 Offset 0 Alignment 512 Allocate: Process running on hwthread 201 (Domain N) - Vector length 62499840/499998720 Offset 0 Alignment 512 Initialization: First thread in domain initializes the whole stream -------------------------------------------------------------------------------- LIKWID MICRO BENCHMARK Test: copy -------------------------------------------------------------------------------- Using 1 work groups Using 48 threads -------------------------------------------------------------------------------- Running without Marker API. Activate Marker API with -m on commandline. -------------------------------------------------------------------------------- ... -------------------------------------------------------------------------------- Cycles: 5263467916 CPU Clock: 2099948735 Cycle Clock: 2099948735 Time: 2.506474e+00 sec Iterations: 98304 Iterations per thread: 2048 Inner loop executions: 325520 Size (Byte): 999997440 Size per thread: 20833280 Number of Flops: 0 MFlops/s: 0.00 Data volume (Byte): 2047994757120 MByte/s: 817081.83 Cycles per update: 0.041121 Cycles per cacheline: 0.328968 Loads per update: 1 Stores per update: 1 Load bytes per element: 8 Store bytes per elem.: 8 Load/store ratio: 1.00 Instructions: 351999098896 UOPs: 447998853120 --------------------------------------------------------------------------------
- test du benchmark
triad
homer@jarvis ~ $ likwid-bench -t triad -w N:1GB Warning: Sanitizing vector length to a multiple of the loop stride 4 and thread count 48 from 31250000 elements (250000000 bytes) to 31249920 elements (249999360 bytes) Allocate: Process running on hwthread 201 (Domain N) - Vector length 31249920/249999360 Offset 0 Alignment 512 Allocate: Process running on hwthread 201 (Domain N) - Vector length 31249920/249999360 Offset 0 Alignment 512 Allocate: Process running on hwthread 201 (Domain N) - Vector length 31249920/249999360 Offset 0 Alignment 512 Allocate: Process running on hwthread 201 (Domain N) - Vector length 31249920/249999360 Offset 0 Alignment 512 Initialization: First thread in domain initializes the whole stream -------------------------------------------------------------------------------- LIKWID MICRO BENCHMARK Test: triad -------------------------------------------------------------------------------- Using 1 work groups Using 48 threads -------------------------------------------------------------------------------- Running without Marker API. Activate Marker API with -m on commandline. -------------------------------------------------------------------------------- ... -------------------------------------------------------------------------------- Cycles: 5124306044 CPU Clock: 2099941270 Cycle Clock: 2099941270 Time: 2.440214e+00 sec Iterations: 98304 Iterations per thread: 2048 Inner loop executions: 162760 Size (Byte): 999997440 Size per thread: 20833280 Number of Flops: 127999672320 MFlops/s: 52454.28 Data volume (Byte): 2047994757120 MByte/s: 839268.51 Cycles per update: 0.080067 Cycles per cacheline: 0.640540 Loads per update: 3 Stores per update: 1 Load bytes per element: 24 Store bytes per elem.: 8 Load/store ratio: 3.00 Instructions: 303999221776 UOPs: 479998771200 --------------------------------------------------------------------------------
fixer les processus pour une application openmp¶
Pour les applications multi-threadées sur les plateformes multicœurs, il est essentiel d'épingler les threads à des cœurs dédiés.
likwid-pin
prend explicitement en charge pthread et les implémentations OpenMP d'Intel et GNU gcc.
likwid-pin
propose trois syntaxes différentes pour spécifier comment épingler les threads aux processeurs :
- Utilisation d'une liste de threads
- Spécification d'une liste de threads basée sur une expression
- Utilisation d'une politique de dispersion
En général, les processeurs sont numérotés dans le noyau Linux. Nous appelons cet ordre « numérotation physique ». LIKWID introduit des groupes de threads dans tous les outils pour permettre l'épinglage logique. Un groupe de threads est constitué de processeurs partageant une entité topologique sur un nœud ou une puce. Il peut s'agir du socket, d'un domaine ccNUMA ou d'un cache partagé. likwid-pin prend en charge quatre façons différentes de numéroter les cœurs lors de l'utilisation de la syntaxe de groupe de threads :
- numérotation physique : les processeurs sont numérotés selon la numérotation dans le système d'exploitation.
- numérotation logique dans le nœud : les processeurs sont numérotés logiquement sur l'ensemble du nœud (préfixe
N
). - numérotation logique dans le socket : les processeurs sont numérotés logiquement dans chaque socket (préfixe
S#
, par exemple S0). - numérotation logique dans le groupe de cache : les processeurs sont numérotés logiquement dans le groupe de cache de dernier niveau (préfixe
C#
, par exemple C1) - numérotation logique dans le domaine mémoire : les processeurs sont numérotés logiquement dans le domaine NUMA (préfixe
M#
, par exemple M2) numérotation logique dans le cpuset : les processeurs sont numérotés logiquement dans le cpuset Linux (préfixe
L
)exemple de script utilisant
likwid-pin
pour une applicationopenmp
, avec tous les coeurs (logiques) réservés parslurm
et appliquant une politique typescatter
#!/bin/bash
#
#SBATCH --job-name=OMP4-withlikwid
#SBATCH --output="OMP4-withlikwid-%j.log"
#
#SBATCH -n 1
#SBATCH --cpus-per-task=48
#SBATCH -p calcul
#SBATCH --time=10:00:00
module add compilers/gcc
module add profilers/likwid/5.3.0
# nombre de threads OpenMP : non nécessaire normalement
# export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
echo ">------ Do Run -------"
likwid-pin -C N:scatter -S ./yourOpenMPCode
echo ">------ Run done ----"