| 1 | CIVL=civl
|
|---|
| 2 | VERIFY=${CIVL} verify
|
|---|
| 3 | COMPARE=${CIVL} compare
|
|---|
| 4 | REPLAY=${CIVL} replay
|
|---|
| 5 | MYDIR=.
|
|---|
| 6 | DENSE_REVERSE_DEFINE = -DADIC_DENSE_REVERSE
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | #all: compare
|
|---|
| 10 | all: civl adic_out
|
|---|
| 11 |
|
|---|
| 12 | #compare: compare1 compare2
|
|---|
| 13 |
|
|---|
| 14 | #civl: hand_CIVL adic_CIVL compare_CIVL compareG_CIVL compareGV_CIVL
|
|---|
| 15 | civl: adic_CIVL
|
|---|
| 16 |
|
|---|
| 17 | hand_CIVL: driver.c hand_driver.c
|
|---|
| 18 | ${VERIFY} driver.c hand_driver.c
|
|---|
| 19 |
|
|---|
| 20 | adic_CIVL: driver.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c
|
|---|
| 21 | ${VERIFY} ${DENSE_REVERSE_DEFINE} -userIncludePath=${MYDIR}:${MYDIR}/runtime_dense_reverse/ driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c adic_driver.c head.cn.xb.pp.c
|
|---|
| 22 |
|
|---|
| 23 | tap_CIVL: driver.c tap_driver.c o_fcn_bv.c
|
|---|
| 24 | ${VERIFY} driver.c tap_driver.c o_fcn_bv.c
|
|---|
| 25 |
|
|---|
| 26 | tap_CIVL_hessian: o_fcn_bv_dv.c tap_hessian_driver.c hessian_driver.c
|
|---|
| 27 | ${VERIFY} $<
|
|---|
| 28 |
|
|---|
| 29 | o_fcn_bv_dv.c: o_fcn_bv.c
|
|---|
| 30 | ${DIFF} -dv $<
|
|---|
| 31 |
|
|---|
| 32 | #compare1: driver.c hand_driver.c adic_driver.c
|
|---|
| 33 | # ${COMPARE} -min -enablePrintf=false -impl driver.c hand_driver.c -spec ${DENSE_REVERSE_DEFINE} -userIncludePath=${MYDIR}:${MYDIR}/runtime_dense_reverse/ driver.c adic_driver.c runtime_dense_reverse/ad_grad.c head.cn.xb.pp.c
|
|---|
| 34 | # ${REPLAY} -enablePrintf=false -showTransitions -impl driver.c hand_driver.c -spec driver.c adic_driver.c runtime_dense_reverse/ad_grad.c head.cn.xb.pp.c
|
|---|
| 35 |
|
|---|
| 36 | #compare2: driver.c hand_driver.c adic_driver.c
|
|---|
| 37 | # ${COMPARE} -impl -D_gAssumption driver.c hand_driver.c -spec ${DENSE_REVERSE_DEFINE} -userIncludePath=${MYDIR}:${MYDIR}/runtime_dense_reverse/ driver.c adic_driver.c runtime_dense_reverse/ad_grad.c head.cn.xb.pp.c
|
|---|
| 38 |
|
|---|
| 39 | #compareGV_CIVL: driver.c hand_driver.c adic_driver.c
|
|---|
| 40 | # ${COMPARE} -spec -D_gAssumption driver.c hand_driver.c -impl ${DENSE_REVERSE_DEFINE} -userIncludePath=${MYDIR}:${MYDIR}/runtime_dense_reverse/ driver.c adic_driver.c runtime_dense_reverse/ad_grad.c head.cn.xb.pp.c
|
|---|
| 41 |
|
|---|
| 42 | compare3: driver.c tap_driver.c
|
|---|
| 43 | ${COMPARE} -spec -D_gAssumption driver.c -impl driver.c tap_driver.c head_d.c
|
|---|
| 44 |
|
|---|
| 45 | tap_out: driver.c tap_driver.c o_fcn_bv.c
|
|---|
| 46 | gcc driver.c tap_driver.c o_fcn_bv.c -lm -o tap_out
|
|---|
| 47 |
|
|---|
| 48 | tap_out_sw: driver_sw.c tap_driver.c o_fcn_bv.c
|
|---|
| 49 | gcc driver_sw.c tap_driver.c o_fcn_bv.c -lm -o rtap_out
|
|---|
| 50 |
|
|---|
| 51 | compare4: driver.c tap_driver.c adic_driver.c o_fcn_bv.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c
|
|---|
| 52 | ${COMPARE} -spec -D_gAssumption driver.c tap_driver.c o_fcn_bv.c -impl ${DENSE_REVERSE_DEFINE} -userIncludePath=${MYDIR}:${MYDIR}/runtime_dense_reverse/ driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c adic_driver.c head.cn.xb.pp.c
|
|---|
| 53 |
|
|---|
| 54 | adic_out: driver.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c
|
|---|
| 55 | gcc -g ${DENSE_REVERSE_DEFINE} -Iruntime_dense_reverse driver.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c -lm -o adic_out
|
|---|
| 56 |
|
|---|
| 57 | adic_out_sw: driver_sw.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c
|
|---|
| 58 | gcc -g ${DENSE_REVERSE_DEFINE} -Iruntime_dense_reverse driver_sw.c adic_driver.c runtime_dense_reverse/ad_grad.c runtime_dense_reverse/ad_tape.c runtime_dense_reverse/ad_rev.c head.cn.xb.pp.c -lm -o radic_out
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | clean:
|
|---|
| 62 | rm -f -r CIVLREP adic_out
|
|---|
| 63 | rm -Rf -f *~ hand_out tap_out *.o *.lo *.libs *.la
|
|---|