diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-12-11 04:35:41 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-12-11 04:35:41 (GMT) |
commit | 86ee1cc2ffda1869ff749fcd06e01ed02af020cb (patch) | |
tree | 6cb637e7ab77952cff3f8bf01129a4c9dcd69236 /src/H5.c | |
parent | 34007b3fb8fbb4bf27b22a349acd25f97b2f952c (diff) | |
download | hdf5-86ee1cc2ffda1869ff749fcd06e01ed02af020cb.zip hdf5-86ee1cc2ffda1869ff749fcd06e01ed02af020cb.tar.gz hdf5-86ee1cc2ffda1869ff749fcd06e01ed02af020cb.tar.bz2 |
[svn-r11785] Purpose:
Patch for red-storm.
Description:
A temporary patch for redstorm, must open a file in the same parallel
data filesystem before H5_init_library. Otherwise, it hangs with error:
(client.c:568:ptlrpc_check_status()) @@@ type == PTL_RPC_MSG_ERR, err == -114 req@0x57a9660 x1/t0 o38->mds_l2@MDS_PEER_UUID:12 lens 240/272 ref 1 fl Rpc:R/100000/0 rc 0/-114
Platforms tested:
Red-storm.
Diffstat (limited to 'src/H5.c')
-rw-r--r-- | src/H5.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -76,6 +76,21 @@ H5_init_library(void) herr_t ret_value=SUCCEED; FUNC_ENTER_NOAPI(H5_init_library, FAIL) +#if defined(H5_HAVE_PARALLEL) && defined(RED_STORM) +/* A temporary patch for redstorm, must open a file in the same parallel + * data filesystem before H5_init_library. Otherwise, it hangs with error: + * (client.c:568:ptlrpc_check_status()) @@@ type == PTL_RPC_MSG_ERR, err == -114 req@0x57a9660 x1/t0 o38->mds_l2@MDS_PEER_UUID:12 lens 240/272 ref 1 fl Rpc:R/100000/0 rc 0/-114 + */ +#define H5_redstorm_patch(scr_dir) \ +{ \ +char *fname=scr_dir "/hdf5/junk"; \ +/* printf("redstorm parallel patch on %s\n", scr_dir); */ \ +fclose(fopen(fname, "w+")); remove(fname); \ +} + +H5_redstorm_patch("/scratch1"); +H5_redstorm_patch("/scratch2"); +#endif /* * Make sure the package information is updated. */ |