Skip to content

Commit

Permalink
Install header files needed by PDCpy (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun authored Jul 31, 2023
1 parent 0cc87e7 commit bc245e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ set(PDC_HEADERS
${PDC_SOURCE_DIR}/src/api/pdc_obj/include/pdc_obj.h
${PDC_SOURCE_DIR}/src/api/pdc_region/include/pdc_region.h
${PDC_SOURCE_DIR}/src/api/pdc_obj/include/pdc_prop.h
${PDC_SOURCE_DIR}/src/api/pdc_obj/include/pdc_cont_pkg.h
${PDC_SOURCE_DIR}/src/api/pdc_obj/include/pdc_obj_pkg.h
${PDC_SOURCE_DIR}/src/api/pdc_obj/include/pdc_prop_pkg.h
${PDC_SOURCE_DIR}/src/api/pdc_query/include/pdc_query.h
${PDC_SOURCE_DIR}/src/api/pdc_region/include/pdc_region.h
${PDC_SOURCE_DIR}/src/api/pdc_transform/include/pdc_transform.h
Expand Down Expand Up @@ -239,4 +242,4 @@ set(PDC_INCLUDES_INSTALL_TIME
${PDC_INSTALL_INCLUDE_DIR}
${PDC_EXT_INCLUDE_DEPENDENCIES}
PARENT_SCOPE
)
)
6 changes: 2 additions & 4 deletions src/api/pdc_obj/pdc_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,10 +1236,8 @@ PDCobj_get_info(pdcid_t obj_id)
/* obj_id = PDC_find_byname(PDC_OBJ, obj_name); */

tmp = PDC_obj_get_info(obj_id);

/* ret_value = PDC_CALLOC(struct pdc_obj_info); */
/* if (!ret_value) */
/* PGOTO_ERROR(NULL, "failed to allocate memory"); */
if (NULL == tmp)
PGOTO_ERROR(NULL, "failed to allocate memory");

ret_value = tmp->obj_info_pub;

Expand Down
2 changes: 2 additions & 0 deletions src/commons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ message(STATUS "PDC_COMMONS_INCLUDE_DIRS: ${PDC_COMMONS_INCLUDE_DIRS}")
install(
FILES
${CMAKE_BINARY_DIR}/pdc_config.h
${PDC_SOURCE_DIR}/src/commons/utils/include/pdc_id_pkg.h
${PDC_SOURCE_DIR}/src/commons/utils/include/pdc_malloc.h
DESTINATION
${PDC_INSTALL_INCLUDE_DIR}
COMPONENT
Expand Down
5 changes: 5 additions & 0 deletions src/commons/utils/include/pdc_id_pkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
/* Map an atom to an ID type number */
#define PDC_TYPE(a) ((PDC_type_t)(((pdcid_t)(a) >> ID_BITS) & TYPE_MASK))

struct _pdc_class {
char * name;
pdcid_t local_id;
};

struct _pdc_id_info {
pdcid_t id; /* ID for this info */
hg_atomic_int32_t count; /* ref. count for this atom */
Expand Down
5 changes: 0 additions & 5 deletions src/commons/utils/include/pdc_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ typedef enum { C_lang = 0, FORTRAN_lang, PYTHON_lang, JULIA_lang, N_LANGUAGES }
/***************************/
/* Library Private Structs */
/***************************/
struct _pdc_class {
char * name;
pdcid_t local_id;
};

#ifdef __cplusplus
#define ATTRIBUTE(a)
#else /* __cplusplus */
Expand Down

0 comments on commit bc245e1

Please sign in to comment.