Skip to content

Commit c5b12c1

Browse files
committed
features: unify does not support file locking
1 parent e47e525 commit c5b12c1

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

src/mpi/romio/adio/ad_unify/Makefile.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ romio_other_sources += \
1717
adio/ad_unify/ad_unify_flush.c \
1818
adio/ad_unify/ad_unify_delete.c \
1919
adio/ad_unify/ad_unify_fcntl.c \
20-
adio/ad_unify/ad_unify_resize.c
20+
adio/ad_unify/ad_unify_resize.c \
21+
adio/ad_unify/ad_unify_feature.c
2122

2223
endif BUILD_AD_UNIFY

src/mpi/romio/adio/ad_unify/ad_unify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct ADIOI_Fns_struct ADIO_UNIFY_operations = {
3737
ADIOI_UNIFY_Flush, /* Flush */
3838
ADIOI_UNIFY_Resize, /* Resize */
3939
ADIOI_UNIFY_Delete, /* Delete */
40-
ADIOI_GEN_Feature,
40+
ADIOI_UNIFY_Feature,
4141
"UNIFY: the burst-buffer file system",
4242
ADIOI_GEN_IreadStridedColl, /* IreadStridedColl */
4343
ADIOI_GEN_IwriteStridedColl, /* IwriteStridedColl */

src/mpi/romio/adio/ad_unify/ad_unify.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void ADIOI_UNIFY_Flush(ADIO_File fd, int *error_code);
3232
void ADIOI_UNIFY_Delete(const char *filename, int *error_code);
3333
void ADIOI_UNIFY_Resize(ADIO_File fd, ADIO_Offset size, int *error_code);
3434
void ADIOI_GEN_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
35-
int ADIOI_GEN_Feature(ADIO_File fd, int flag);
35+
int ADIOI_UNIFY_Feature(ADIO_File fd, int flag);
3636

3737
void ADIOI_GEN_IReadContig(ADIO_File fd, void *buf, int count,
3838
MPI_Datatype datatype, int file_ptr_type,
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (C) by Argonne National Laboratory
3+
* See COPYRIGHT in top-level directory
4+
*/
5+
6+
#include "adio.h"
7+
#include "ad_unify.h"
8+
9+
int ADIOI_UNIFY_Feature(ADIO_File fd, int flag)
10+
{
11+
switch (flag) {
12+
case ADIO_SCALABLE_RESIZE:
13+
case ADIO_TWO_PHASE:
14+
return 1;
15+
case ADIO_LOCKS:
16+
case ADIO_SHARED_FP:
17+
case ADIO_ATOMIC_MODE:
18+
case ADIO_DATA_SIEVING_WRITES:
19+
case ADIO_SCALABLE_OPEN:
20+
case ADIO_SEQUENTIAL:
21+
default:
22+
return 0;
23+
}
24+
}

0 commit comments

Comments
 (0)