Skip to content

Commit

Permalink
updated use for C_values and C_do_apply for compatibility with Chicke…
Browse files Browse the repository at this point in the history
…n argvector (4.10.1+)
  • Loading branch information
iraikov committed Aug 29, 2015
1 parent fe1a64a commit a0b5a51
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion collcomm.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Chicken MPI interface. Based on the Caml/MPI interface by Xavier
;; Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion comm.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Chicken MPI interface. Based on the Caml/MPI interface by Xavier
;; Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion group.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Chicken MPI interface. Based on the Caml/MPI interface by Xavier
;; Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down
7 changes: 6 additions & 1 deletion init.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
;; Chicken MPI interface. Based on the Caml/MPI interface by Xavier
;; Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -44,8 +44,13 @@ static void chicken_ThrowException(C_word value)
if (C_immediatep(abort))
Chicken_Panic(C_text("`##sys#abort' is not defined"));

#if defined(C_BINARY_VERSION) && (C_BINARY_VERSION >= 8)
C_word rval[3] = { abort, C_SCHEME_UNDEFINED, value };
C_do_apply(3, rval);
#else
C_save(value);
C_do_apply(1, abort, C_SCHEME_UNDEFINED);
#endif
}

void chicken_MPI_exception (int code, int msglen, const char *msg)
Expand Down
1 change: 1 addition & 0 deletions mpi.release-info
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
(uri targz "https://github.com/iraikov/chicken-mpi/tarball/{egg-release}")
(uri files-list "http://code.call-cc.org/files-list?egg={egg-name};release={egg-release}" old-uri)

(release "1.16")
(release "1.15" old-uri)

2 changes: 1 addition & 1 deletion mpi.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
;; Leroy.
;;
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology.
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion mpi.setup
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
`(,(dynld-name "mpi") ,(dynld-name "mpi.import") )

; Assoc list with properties for your extension:
`((version 1.15)
`((version 1.16)
))

9 changes: 7 additions & 2 deletions msgs.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Chicken MPI interface. Based on the Caml/MPI interface by Xavier
;; Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -301,7 +301,12 @@ C_word MPI_send_bytevector (C_word data, C_word dest, C_word tag, C_word comm)
ptr = C_alloc (C_SIZEOF_FLONUM);
status_tag = C_int_to_num (&ptr, status.MPI_TAG);

C_values(5, C_SCHEME_UNDEFINED, C_k, status_count, status_source, status_tag);
#if defined(C_BINARY_VERSION) && (C_BINARY_VERSION >= 8)
C_word rval[5] = { C_SCHEME_UNDEFINED, C_k, status_count, status_source, status_tag };
C_values(5, rval);
#else
C_values(5, C_SCHEME_UNDEFINED, C_k, status_count, status_source, status_tag );
#endif
EOF
))

Expand Down
2 changes: 1 addition & 1 deletion tests/mandel.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
;;
;; Based on the Caml/MPI interface by Xavier Leroy.
;;
;; Copyright 2007 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007 Ivan Raikov
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion tests/mpitest.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
;;
;; Based on the Caml/MPI interface by Xavier Leroy.
;;
;; Copyright 2007-2012 Ivan Raikov and the Okinawa Institute of Science and Technology
;; Copyright 2007-2015 Ivan Raikov.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
Expand Down

0 comments on commit a0b5a51

Please sign in to comment.