Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.optrpt
8 changes: 8 additions & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ endif

all: libqhg.a

#CFLAGS += -qopt-report=1 -I./
CFLAGS += -I./
SOURCES=\
qhg_lattice \
Expand All @@ -22,6 +23,9 @@ SOURCES=\
qhg_stop_watch \
qhg_gauge_field \
qhg_spinor_field \
qhg_fast_spinor_field \
qhg_fast_mesons \
qhg_fast_baryons \
qhg_correlator \
qhg_xchange_gauge \
qhg_xchange_spinor \
Expand Down Expand Up @@ -63,6 +67,10 @@ libqhg.a: ${addsuffix .o, $(SOURCES)}
$(C)$(CC) $(CFLAGS) -c $< -o $@
$(C)$(CC) -M $(CFLAGS) -c $< > $*.d

%.optrpt: %.c
$(E) CC-report $<
$(C)$(CC) $(CFLAGS) -qopt-report=3 -c $<

clean:
$(E) CLEAN in $(PWD)
$(C)$(RM) *.o *.d
Expand Down
3 changes: 3 additions & 0 deletions lib/qhg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#include <qhg_write_mesons_udsc.h>
#include <qhg_nucleons.h>
#include <qhg_write_nucleons.h>
#include <qhg_fast_spinor_field.h>
#include <qhg_fast_mesons.h>
#include <qhg_fast_baryons.h>
#include <qhg_spinor_field_io.h>
#include <qhg_spinor_field_bc.h>
#include <qhg_spinor_field_linalg.h>
Expand Down
3 changes: 1 addition & 2 deletions lib/qhg_alloc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <stdlib.h>
#include <stdio.h>

#define QHG_MEMALIGN 64
#include <qhg_defs.h>

/*
* Malloc, with minimal error handling
Expand Down
6 changes: 6 additions & 0 deletions lib/qhg_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
#define NC 3
#define NS 4
#define ND 4
#define QHG_MEMALIGN 64
#define QHG_FAST_TYPE float
typedef QHG_FAST_TYPE afloat __attribute__ ((aligned (QHG_MEMALIGN)));

#define NEPS 6
extern int QHG_EPS[NEPS][NC+1];

#endif /* _QHG_DEFS_H */
Loading