Skip to content

Commit

Permalink
Adding v0.1.2 release to address MPI_Init_thread initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Sep 28, 2015
1 parent 4a0b0c3 commit 25258df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/split.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,23 @@ int MPI_Init(int *argc, char ***argv) {
return return_value;
}

int MPI_Init_thread(int *argc, char ***argv, int required, int *provided) {
// Allow MPI_Init_thread to be called directly
int return_value;
if (getenv("W_UNWRAP_INIT")) {
DEBUG_PRINT("Unwrapped!\n");
int (*real_MPI_Init_thread)(int*, char***, int, int*) = dlsym(RTLD_NEXT, "MPI_Init_thread");
return_value = (*real_MPI_Init_thread)(argc, argv, required, provided);
}
else {
DEBUG_PRINT("Wrapped!\n");
return_value = PMPI_Init_thread(argc, argv, required, provided);
}

SplitInit();
return return_value;
}

int MPI_Finalize() {
const int err = PMPI_Comm_free(&MPI_COMM_SPLIT);
if(err != MPI_SUCCESS)
Expand Down
2 changes: 1 addition & 1 deletion wraprun_formula.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class WraprunFormula < Formula
homepage "https://github.com/olcf/wraprun"
url "https://github.com/olcf/wraprun/archive/v0.1.1.tar.gz"
url "https://github.com/olcf/wraprun/archive/v0.1.2.tar.gz"
additional_software_roots [ config_value("lustre-software-root")[hostname] ]

concern for_version("dev") do
Expand Down

0 comments on commit 25258df

Please sign in to comment.