Skip to content

Commit

Permalink
use of ECL_USE_ASYNC (default), replaces the thread loop, started som…
Browse files Browse the repository at this point in the history
…e nif exeriment (far from done)
  • Loading branch information
tonyrog committed Jul 8, 2010
1 parent e688ab3 commit 75bdfa3
Show file tree
Hide file tree
Showing 4 changed files with 776 additions and 221 deletions.
20 changes: 17 additions & 3 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,16 @@ endif

CL_DRV = $(LIBDIR)/$(WORDSIZE)/cl_drv.so

CL_OBJS = \
CL_NIF = $(LIBDIR)/$(WORDSIZE)/cl_nif.so

CL_DRV_OBJS = \
$(OBJDIR)/$(WORDSIZE)/cl_drv.o \
$(OBJDIR)/$(WORDSIZE)/cl_hash.o

CL_NIF_OBJS = \
$(OBJDIR)/$(WORDSIZE)/cl_nif.o \
$(OBJDIR)/$(WORDSIZE)/cl_hash.o

CL_ASM = \
$(OBJDIR)/$(WORDSIZE)/cl_drv.s \
$(OBJDIR)/$(WORDSIZE)/cl_hash.s
Expand All @@ -114,6 +120,9 @@ OCL_SIMD_OBJS = $(SIMD_OBJS:%=$(OBJDIR)/%)

all: all32 all64

nif32: config.32.h
$(MAKE) nif TYPE=release WORDSIZE=32

all32: config.32.h
$(MAKE) driver TYPE=release WORDSIZE=32
$(MAKE) driver TYPE=debug WORDSIZE=32
Expand Down Expand Up @@ -149,6 +158,8 @@ release:

driver: $(CL_DRV)

nif: $(CL_NIF)

cbuf_test: cbuf_test.o
$(CC) -o $@ cbuf_test.o

Expand All @@ -159,8 +170,11 @@ depend:
clean_internal:
-rm -f $(OBJDIR)/$(WORDSIZE)/*.o

$(CL_DRV): $(OCL_LIB) $(CL_OBJS) # $(CL_ASM)
$(LD_SHARED) -o $@ $(CL_OBJS) $(LDFLAGS)
$(CL_DRV): $(OCL_LIB) $(CL_DRV_OBJS) # $(CL_ASM)
$(LD_SHARED) -o $@ $(CL_DRV_OBJS) $(LDFLAGS)

$(CL_NIF): $(OCL_LIB) $(CL_NIF_OBJS) # $(CL_ASM)
$(LD_SHARED) -o $@ $(CL_NIF_OBJS) $(LDFLAGS)

$(OBJDIR)/$(WORDSIZE)/cl_drv.o: cbufv2.h cl_hash.h

Expand Down
Loading

0 comments on commit 75bdfa3

Please sign in to comment.