Changeset 1051 for proto/parabix2/src


Ignore:
Timestamp:
Mar 28, 2011, 5:10:10 PM (8 years ago)
Author:
lindanl
Message:

Add multithreads template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/src/Makefile

    r972 r1051  
    22OUTFILE=xmlwf
    33TEST= run_all.py
    4 MSRCFILE = xmlwf_multipass.cpp
    54
    65CC= g++ $(CFLAGS)
     
    2120    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    2221else
    23     AFLAGS=-march=nocona -m64 -mavx
     22    AFLAGS=-march=nocona -m64
    2423    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    2524endif
     
    2928
    3029all:    $(SRCFILE)
    31         $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS)
     30        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) 
    3231
    33 multi_pass:     $(SRCFILE)
    34         $(CC) -o $(OUTFILE) $(MSRCFILE) $(AFLAGS)
     32
     33threads:        $(SRCFILE)
     34        g++ -O1 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
    3535       
    3636code_clocker:   $(SRCFILE)
Note: See TracChangeset for help on using the changeset viewer.