Skip to content

Commit fe26bfb

Browse files
authored
Merge pull request #51 from ronawho/add-local-chapel-mods
Fix a few issues uncovered during full Chapel testing of qthreads 1.12
2 parents 04dee4e + 1699c31 commit fe26bfb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ libqthread_la_SOURCES = \
3535
touch.c \
3636
teams.c
3737

38-
EXTRA_DIST = alloc/
38+
EXTRA_DIST =
3939

4040
if COMPILE_LF_HASH
4141
libqthread_la_SOURCES += lf_hashmap.c
@@ -106,6 +106,8 @@ EXTRA_DIST += \
106106
barrier/array.c \
107107
barrier/log.c \
108108
barrier/sinc.c \
109+
alloc/base.c \
110+
alloc/chapel.c \
109111
affinity/common.c \
110112
affinity/hwloc.c \
111113
affinity/binders.c \

src/alloc/chapel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ static QINLINE int getpagesize()
1313
}
1414
#endif
1515

16+
#include <qthread/qthread-int.h> /* for uint_fast16_t */
17+
1618
#include "chpl-mem-impl.h"
1719

1820
void *qt_malloc(size_t size){

src/qthread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,15 +1881,15 @@ unsigned API_FUNC qthread_size_tasklocal(void)
18811881
return f->rdata->tasklocal_size ? f->rdata->tasklocal_size : qlib->qthread_tasklocal_size;
18821882
} /*}}}*/
18831883

1884-
void* API_FUNC qthread_tos(void)
1884+
API_FUNC void* qthread_tos(void)
18851885
{
18861886
const qthread_t *f = qthread_internal_self();
18871887

18881888
return f->rdata->stack;
18891889
}
18901890

18911891

1892-
void* API_FUNC qthread_bos(void)
1892+
API_FUNC void* qthread_bos(void)
18931893
{
18941894
const qthread_t *f = qthread_internal_self();
18951895

0 commit comments

Comments
 (0)