|
39 | 39 | {
|
40 | 40 | "data": {
|
41 | 41 | "text/plain": [
|
42 |
| - "<Cluster(cluster_id='touchy-1623263478-xhlt', profile_dir='~/.ipython/profile_default')>" |
| 42 | + "<Cluster(cluster_id='touchy-1623757384-cpbt', profile='default')>" |
43 | 43 | ]
|
44 | 44 | },
|
45 | 45 | "execution_count": 1,
|
|
71 | 71 | {
|
72 | 72 | "data": {
|
73 | 73 | "text/plain": [
|
74 |
| - "<Cluster(cluster_id='touchy-1623263478-xhlt', profile_dir='~/.ipython/profile_default', controller=<running>)>" |
| 74 | + "<Cluster(cluster_id='touchy-1623757384-cpbt', profile='default', controller=<running>)>" |
75 | 75 | ]
|
76 | 76 | },
|
77 | 77 | "execution_count": 2,
|
|
100 | 100 | {
|
101 | 101 | "data": {
|
102 | 102 | "text/plain": [
|
103 |
| - "<Cluster(cluster_id='touchy-1623263478-xhlt', profile_dir='~/.ipython/profile_default', controller=<running>, engine_sets=['1623263481-w75s'])>" |
| 103 | + "<Cluster(cluster_id='touchy-1623757384-cpbt', profile='default', controller=<running>, engine_sets=['1623757384-b3pm'])>" |
104 | 104 | ]
|
105 | 105 | },
|
106 | 106 | "execution_count": 3,
|
|
138 | 138 | {
|
139 | 139 | "data": {
|
140 | 140 | "text/plain": [
|
141 |
| - "'1623263483-iafz'" |
| 141 | + "'1623757385-pe8h'" |
142 | 142 | ]
|
143 | 143 | },
|
144 | 144 | "execution_count": 4,
|
|
185 | 185 | }
|
186 | 186 | ],
|
187 | 187 | "source": [
|
188 |
| - "rc = cluster.connect_client()\n", |
| 188 | + "rc = await cluster.connect_client()\n", |
189 | 189 | "rc.wait_for_engines(6)\n",
|
190 | 190 | "rc.ids"
|
191 | 191 | ]
|
|
207 | 207 | {
|
208 | 208 | "data": {
|
209 | 209 | "text/plain": [
|
210 |
| - "{0: {'host': 'touchy', 'pid': 81944},\n", |
211 |
| - " 1: {'host': 'touchy', 'pid': 81945},\n", |
212 |
| - " 2: {'host': 'touchy', 'pid': 81946},\n", |
213 |
| - " 3: {'host': 'touchy', 'pid': 81947},\n", |
214 |
| - " 4: {'host': 'touchy', 'pid': 81952},\n", |
215 |
| - " 5: {'host': 'touchy', 'pid': 81953}}" |
| 210 | + "{0: {'host': 'touchy', 'pid': 24774},\n", |
| 211 | + " 1: {'host': 'touchy', 'pid': 24775},\n", |
| 212 | + " 2: {'host': 'touchy', 'pid': 24776},\n", |
| 213 | + " 3: {'host': 'touchy', 'pid': 24762},\n", |
| 214 | + " 4: {'host': 'touchy', 'pid': 24769},\n", |
| 215 | + " 5: {'host': 'touchy', 'pid': 24773}}" |
216 | 216 | ]
|
217 | 217 | },
|
218 | 218 | "execution_count": 6,
|
|
264 | 264 | "name": "stdout",
|
265 | 265 | "output_type": "stream",
|
266 | 266 | "text": [
|
267 |
| - "Sending signal 2 to engine(s) 1623263481-w75s\n", |
268 |
| - "Sending signal 2 to engine(s) 1623263483-iafz\n" |
| 267 | + "Sending signal 2 to engine(s) 1623757384-b3pm\n", |
| 268 | + "Sending signal 2 to engine(s) 1623757385-pe8h\n" |
269 | 269 | ]
|
270 | 270 | },
|
271 | 271 | {
|
|
320 | 320 | "name": "stdout",
|
321 | 321 | "output_type": "stream",
|
322 | 322 | "text": [
|
323 |
| - "Stopping engine(s): 1623263483-iafz\n" |
| 323 | + "Stopping engine(s): 1623757385-pe8h\n" |
324 | 324 | ]
|
325 | 325 | }
|
326 | 326 | ],
|
|
346 | 346 | "name": "stdout",
|
347 | 347 | "output_type": "stream",
|
348 | 348 | "text": [
|
349 |
| - "Stopping engine(s): 1623263481-w75s\n", |
| 349 | + "Stopping engine(s): 1623757384-b3pm\n", |
350 | 350 | "Stopping controller\n",
|
351 |
| - "Controller stopped: {'exit_code': 0, 'pid': 81906}\n" |
| 351 | + "Controller stopped: {'exit_code': 0, 'pid': 24758}\n" |
352 | 352 | ]
|
353 | 353 | }
|
354 | 354 | ],
|
|
386 | 386 | "output_type": "stream",
|
387 | 387 | "text": [
|
388 | 388 | "Starting 4 engines with <class 'ipyparallel.cluster.launcher.LocalEngineSetLauncher'>\n",
|
389 |
| - "Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-touchy-1623263508-mdel-client.json\n", |
390 |
| - "Stopping engine(s): 1623263508-5i4g\n", |
| 389 | + "Stopping engine(s): 1623757397-ng0s\n", |
391 | 390 | "Stopping controller\n"
|
392 | 391 | ]
|
393 | 392 | },
|
394 | 393 | {
|
395 | 394 | "data": {
|
396 | 395 | "text/plain": [
|
397 |
| - "{0: 82284, 1: 82282, 2: 82283, 3: 82285}" |
| 396 | + "{0: 24989, 1: 24991, 2: 24990, 3: 24992}" |
398 | 397 | ]
|
399 | 398 | },
|
400 | 399 | "execution_count": 11,
|
401 | 400 | "metadata": {},
|
402 | 401 | "output_type": "execute_result"
|
403 |
| - }, |
404 |
| - { |
405 |
| - "name": "stdout", |
406 |
| - "output_type": "stream", |
407 |
| - "text": [ |
408 |
| - "Controller stopped: {'exit_code': 0, 'pid': 82281}\n" |
409 |
| - ] |
410 | 402 | }
|
411 | 403 | ],
|
412 | 404 | "source": [
|
|
436 | 428 | "output_type": "stream",
|
437 | 429 | "text": [
|
438 | 430 | "Starting 2 engines with <class 'ipyparallel.cluster.launcher.LocalEngineSetLauncher'>\n",
|
439 |
| - "Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-touchy-1623263514-nqk6-client.json\n", |
440 |
| - "Stopping engine(s): 1623263514-b9f9\n", |
| 431 | + "Controller stopped: {'exit_code': 0, 'pid': 24988}\n", |
| 432 | + "Stopping engine(s): 1623757400-5fq1\n", |
441 | 433 | "Stopping controller\n"
|
442 | 434 | ]
|
443 | 435 | },
|
444 | 436 | {
|
445 | 437 | "data": {
|
446 | 438 | "text/plain": [
|
447 |
| - "{0: 82407, 1: 82408}" |
| 439 | + "{0: 25058, 1: 25059}" |
448 | 440 | ]
|
449 | 441 | },
|
450 | 442 | "execution_count": 12,
|
451 | 443 | "metadata": {},
|
452 | 444 | "output_type": "execute_result"
|
453 |
| - }, |
454 |
| - { |
455 |
| - "name": "stdout", |
456 |
| - "output_type": "stream", |
457 |
| - "text": [ |
458 |
| - "Controller stopped: {'exit_code': 0, 'pid': 82406}\n" |
459 |
| - ] |
460 | 445 | }
|
461 | 446 | ],
|
462 | 447 | "source": [
|
|
497 | 482 | "name": "stdout",
|
498 | 483 | "output_type": "stream",
|
499 | 484 | "text": [
|
| 485 | + "Controller stopped: {'exit_code': 0, 'pid': 25057}\n", |
500 | 486 | "Starting 4 engines with <class 'ipyparallel.cluster.launcher.MPIEngineSetLauncher'>\n"
|
501 | 487 | ]
|
502 | 488 | }
|
503 | 489 | ],
|
504 | 490 | "source": [
|
| 491 | + "import os\n", |
| 492 | + "os.environ[\"OMPI_MCA_rmaps_base_oversubscribe\"] = \"1\"\n", |
| 493 | + "\n", |
505 | 494 | "cluster = Cluster(n=4, engine_launcher_class='MPI')\n",
|
506 | 495 | "await cluster.start_cluster()\n",
|
507 |
| - "rc = cluster.connect_client()" |
| 496 | + "rc = await cluster.connect_client()" |
508 | 497 | ]
|
509 | 498 | },
|
510 | 499 | {
|
|
550 | 539 | "traceback": [
|
551 | 540 | "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
552 | 541 | "\u001b[0;31mTimeoutError\u001b[0m Traceback (most recent call last)",
|
553 |
| - "\u001b[0;32m/var/folders/qr/3vxfnp1x2t1fw55dr288mphc0000gn/T/ipykernel_81840/824703262.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0mar\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mrc\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mapply_async\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0muhoh\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 14\u001b[0;31m \u001b[0mar\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
| 542 | + "\u001b[0;32m/var/folders/qr/3vxfnp1x2t1fw55dr288mphc0000gn/T/ipykernel_24747/824703262.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0mar\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mrc\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mapply_async\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0muhoh\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 14\u001b[0;31m \u001b[0mar\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
554 | 543 | "\u001b[0;32m~/dev/ip/parallel/ipyparallel/client/asyncresult.py\u001b[0m in \u001b[0;36mget\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 227\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexception\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 228\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 229\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0merror\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTimeoutError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Result not ready.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 230\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 231\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_check_ready\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
555 | 544 | "\u001b[0;31mTimeoutError\u001b[0m: Result not ready."
|
556 | 545 | ]
|
|
585 | 574 | },
|
586 | 575 | {
|
587 | 576 | "cell_type": "code",
|
588 |
| - "execution_count": 16, |
| 577 | + "execution_count": null, |
589 | 578 | "id": "ebe3e6d1-10cf-49be-83b6-da8dbaf712b1",
|
590 | 579 | "metadata": {},
|
591 |
| - "outputs": [ |
592 |
| - { |
593 |
| - "name": "stdout", |
594 |
| - "output_type": "stream", |
595 |
| - "text": [ |
596 |
| - "Sending signal 2 to engine(s) 1623263525-cijg\n" |
597 |
| - ] |
598 |
| - }, |
599 |
| - { |
600 |
| - "ename": "TimeoutError", |
601 |
| - "evalue": "Result not ready.", |
602 |
| - "output_type": "error", |
603 |
| - "traceback": [ |
604 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
605 |
| - "\u001b[0;31mTimeoutError\u001b[0m Traceback (most recent call last)", |
606 |
| - "\u001b[0;32m/var/folders/qr/3vxfnp1x2t1fw55dr288mphc0000gn/T/ipykernel_81840/3902026823.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0msignal\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;32mawait\u001b[0m \u001b[0mcluster\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msignal_engines\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msignal\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mSIGINT\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mar\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
607 |
| - "\u001b[0;32m~/dev/ip/parallel/ipyparallel/client/asyncresult.py\u001b[0m in \u001b[0;36mget\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 227\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexception\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 228\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 229\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0merror\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTimeoutError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Result not ready.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 230\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 231\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_check_ready\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
608 |
| - "\u001b[0;31mTimeoutError\u001b[0m: Result not ready." |
609 |
| - ] |
610 |
| - } |
611 |
| - ], |
| 580 | + "outputs": [], |
612 | 581 | "source": [
|
613 | 582 | "import signal\n",
|
614 | 583 | "await cluster.signal_engines(signal.SIGINT)\n",
|
|
627 | 596 | },
|
628 | 597 | {
|
629 | 598 | "cell_type": "code",
|
630 |
| - "execution_count": 17, |
| 599 | + "execution_count": 16, |
631 | 600 | "id": "2ae1cb50-965b-400e-b39f-4567df667da2",
|
632 | 601 | "metadata": {},
|
633 | 602 | "outputs": [
|
634 | 603 | {
|
635 | 604 | "name": "stdout",
|
636 | 605 | "output_type": "stream",
|
637 | 606 | "text": [
|
638 |
| - "Stopping engine(s): 1623263525-cijg\n", |
639 |
| - "Starting 4 engines with <class 'ipyparallel.cluster.launcher.MPIEngineSetLauncher'>\n", |
640 |
| - "engine set stopped 1623263525-cijg: {'exit_code': -9, 'pid': 82790}\n" |
| 607 | + "Stopping engine(s): 1623757404-oexv\n", |
| 608 | + "Starting 4 engines with <class 'ipyparallel.cluster.launcher.MPIEngineSetLauncher'>\n" |
641 | 609 | ]
|
642 | 610 | }
|
643 | 611 | ],
|
|
647 | 615 | },
|
648 | 616 | {
|
649 | 617 | "cell_type": "code",
|
650 |
| - "execution_count": 19, |
| 618 | + "execution_count": 17, |
651 | 619 | "id": "c676323b-1bf7-4983-8139-5b085c2fdf91",
|
652 | 620 | "metadata": {},
|
653 | 621 | "outputs": [
|
654 | 622 | {
|
655 | 623 | "data": {
|
656 | 624 | "text/plain": [
|
657 |
| - "[4, 5, 6, 7]" |
| 625 | + "[0, 1, 2, 3]" |
658 | 626 | ]
|
659 | 627 | },
|
660 |
| - "execution_count": 19, |
| 628 | + "execution_count": 17, |
661 | 629 | "metadata": {},
|
662 | 630 | "output_type": "execute_result"
|
| 631 | + }, |
| 632 | + { |
| 633 | + "name": "stdout", |
| 634 | + "output_type": "stream", |
| 635 | + "text": [ |
| 636 | + "engine set stopped 1623757404-oexv: {'exit_code': -9, 'pid': 25078}\n" |
| 637 | + ] |
663 | 638 | }
|
664 | 639 | ],
|
665 | 640 | "source": [
|
|
678 | 653 | },
|
679 | 654 | {
|
680 | 655 | "cell_type": "code",
|
681 |
| - "execution_count": 20, |
| 656 | + "execution_count": 19, |
682 | 657 | "id": "7e261d39-0793-4207-813a-24caa4ec9a92",
|
683 | 658 | "metadata": {},
|
684 | 659 | "outputs": [
|
685 | 660 | {
|
686 | 661 | "data": {
|
687 | 662 | "text/plain": [
|
688 |
| - "{4: 0, 5: 3, 6: 1, 7: 2}" |
| 663 | + "{4: 0, 5: 2, 6: 3, 7: 1}" |
689 | 664 | ]
|
690 | 665 | },
|
691 |
| - "execution_count": 20, |
| 666 | + "execution_count": 19, |
692 | 667 | "metadata": {},
|
693 | 668 | "output_type": "execute_result"
|
694 | 669 | }
|
|
713 | 688 | },
|
714 | 689 | {
|
715 | 690 | "cell_type": "code",
|
716 |
| - "execution_count": 21, |
| 691 | + "execution_count": 20, |
717 | 692 | "id": "060108bb-229b-4829-bf32-0dc7d0db0345",
|
718 | 693 | "metadata": {},
|
719 | 694 | "outputs": [
|
720 | 695 | {
|
721 | 696 | "name": "stdout",
|
722 | 697 | "output_type": "stream",
|
723 | 698 | "text": [
|
724 |
| - "Stopping engine(s): 1623263525-cijg\n", |
| 699 | + "Stopping engine(s): 1623757404-oexv\n", |
725 | 700 | "Stopping controller\n",
|
726 |
| - "Controller stopped: {'exit_code': 0, 'pid': 82767}\n", |
727 |
| - "engine set stopped 1623263525-cijg: {'exit_code': 1, 'pid': 82998}\n" |
| 701 | + "Controller stopped: {'exit_code': 0, 'pid': 25076}\n", |
| 702 | + "engine set stopped 1623757404-oexv: {'exit_code': -9, 'pid': 25154}\n" |
728 | 703 | ]
|
729 | 704 | }
|
730 | 705 | ],
|
|
0 commit comments