Changeset 972


Ignore:
Timestamp:
Mar 22, 2011, 8:29:03 PM (8 years ago)
Author:
cameron
Message:

AVX version with separate files/template.

Location:
proto/parabix2
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/Makefile

    r909 r972  
    1717        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t $(PABLO_TEMPLATE) -o $(OUTFILE)
    1818
     19avx:    $(PABLO_SRCFILE)
     20        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t pablo_template_avx.cpp -o $(OUTFILE)
     21
    1922pablo_help:
    2023        python  $(PABLO_COMPILER) -h
  • proto/parabix2/pablo_template.cpp

    r955 r972  
    77
    88#define BLOCK_SIZE (sizeof(SIMD_type) * 8)
    9 #define SEGMENT_BLOCKS 26
     9#define SEGMENT_BLOCKS 12
    1010#define BUFFER_SIZE (BLOCK_SIZE * SEGMENT_BLOCKS)
    1111#define OVERLAP_BUFSIZE (sizeof(SIMD_type))
  • proto/parabix2/src/Makefile

    r917 r972  
    2121    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    2222else
    23     AFLAGS=-march=nocona -m64
     23    AFLAGS=-march=nocona -m64 -mavx
    2424    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    2525endif
    2626
     27avx:    $(SRCFILE)
     28        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
    2729
    2830all:    $(SRCFILE)
Note: See TracChangeset for help on using the changeset viewer.