Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file simple test for non threaded tests #20

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion io/tst_file_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ int tst_file_simple_init (struct tst_env * env)
memset (file_name, 0, sizeof (char)*100);
sprintf(file_name, "%s%ld", TST_FILE_NAME, (long)getpid());
}
if (0 == tst_thread_get_num())
#ifdef HAVE_MPI2_THREADS
if (tst_thread_get_num() == TST_THREAD_MASTER) {
#endif
MPI_CHECK (MPI_Bcast(file_name, 100, MPI_CHAR, ROOT, comm));
#ifdef HAVE_MPI2_THREADS
}
#endif
env->read_buffer = tst_type_allocvalues (env->type, env->values_num);
tst_file_alloc(env->type, env->values_num, comm_size, file_name, comm);

Expand Down
Loading