Commit b8a5cad6 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

kp

parent ec7e212c
......@@ -1281,7 +1281,7 @@ void *H5Dwrite_pthread_func_vol(void *arg) {
done = (wmm->io.num_request==0);
pthread_mutex_unlock(&wmm->io.request_lock);
}
if (wmm->mpi.rank==0) printf("Jump out of the loop\n");
return NULL;
}
......
CC=mpicc -DTHETA
CC=mpicc
#Your HDF5 install path
HDF5_DIR=$(HDF5_ROOT)
......@@ -7,8 +7,8 @@ LIBS=-L$(HDF5_DIR)/lib -lhdf5 -lz
#DEBUG=-DENABLE_EXT_PASSTHRU_LOGGING
CFLAGS=$(INCLUDES) $(LIBS)
TARGET=libh5passthrough_vol.dylib
CXX=mpicxx -DTHETA
TARGET=libh5passthrough_vol.so
CXX=mpicxx
all: makeso test_write_cache
%.o : %.cpp
......
......@@ -141,11 +141,12 @@ int main(int argc, char **argv) {
tt.stop_clock("Init_array");
offset[0]= i*gdims[0] + rank*ldims[0];
// select hyperslab
hid_t filespace = H5Screate_simple(2, ggdims, NULL);
H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL, ldims, count);
tt.start_clock("H5Dwrite");
hid_t status = H5Dwrite(dset_id, H5T_NATIVE_INT, memspace, filespace, dxf_id, data); // write memory to file
// H5Fflush(file_id, H5F_SCOPE_LOCAL);
H5Sclose(filespace);
tt.stop_clock("H5Dwrite");
tt.start_clock("compute");
msleep(int(sleep*1000));
......@@ -158,7 +159,7 @@ int main(int argc, char **argv) {
H5Pclose(plist_id);
H5Sclose(filespace);
H5Sclose(memspace);
tt.stop_clock("H5close");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment