Created
June 15, 2019 17:20
-
-
Save jmbr/2147ef49d74ceda57cb8713c4654abe7 to your computer and use it in GitHub Desktop.
Create an MPI-enabled SBCL executable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sbcl --eval "(ql:quickload '(:swank :cl-mpi))" \ | |
--eval "(defun toplevel () \ | |
(push #'mpi:mpi-finalize *exit-hooks*) \ | |
(mpi:mpi-init) \ | |
(let ((port (+ swank::default-server-port (mpi:mpi-comm-rank)))) \ | |
(swank:create-server :port port :dont-close t)) \ | |
(sb-impl::toplevel-init))" \ | |
--eval "(save-lisp-and-die \"mpisbcl\" :executable t :toplevel #'toplevel)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment