make CC=clang++ O=3 -j8 test-modelsmake[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
Do you have the same behavior for CC=g++? I'm not seeing the problem
with g++ for both windows and mac.
Daniel
It's interesting that it would do that after hitting the first ignored error. I'll take a closer look.
There may be a way to rewrite the rule differently that would be more make friendly.
Ben, I just updated the Makefiles. The copy is now conditional on the file existing. Please let me know if you still see those errors.
It's interesting that it would do that after hitting the first ignored error. I'll take a closer look.
There may be a way to rewrite the rule differently that would be more make friendly.
On May 25, 2012 2:26 PM, "Ben Goodrich" <goodri...@gmail.com> wrote:
Ben, I just updated the Makefiles. The copy is now conditional on the file existing. Please let me know if you still see those errors.
On May 25, 2012 2:40 PM, "Daniel Lee" wrote:
It's interesting that it would do that after hitting the first ignored error. I'll take a closer look.
There may be a way to rewrite the rule differently that would be more make friendly.
Sorry about that. Both issues should be fixed now.
By the way, do you have a linux box that's up and running most of the
time? Maybe it's time to think about working on parametrized builds
across different platforms.
Any ideas on how to run the models in parallel?
diff --git a/make/tests b/make/tests
index d42df92..5a63cca 100644
--- a/make/tests
+++ b/make/tests
@@ -22,7 +22,7 @@ test-models: $(addsuffix $(EXE),$(MODEL_TESTS))
@set -e;\
$(foreach test,$(MODEL_TESTS), \
echo '------------------------------------------------------------';\
- $(addsuffix $(EXE),$(test)) --gtest_output="xml:$(test).xml";)
+ $(addsuffix $(EXE),$(test)) --gtest_output="xml:$(test).xml" & )
ifneq ($(MISSING_MODEL_TESTS),)
@echo
@echo '-------------------- Missing $(words $(MISSING_MODEL_TESTS)) tests --------------------'
Thanks for finding a solution. Unfortunately, I don't think running
the models in parallel is what we want.
If we did want to run them in parallel, I think the correct thing to
do is for test-models to depend on a bunch of phony targets. There
should be one phony target per test. Each phony target would depend on
the test it is responsible for running. The phony target's action
should be to run the test.
Unfortunately, that would still cause the output to get mangled, but
it would do what you want. Want to give it a try? Maybe give it a
different target -- like test-models-parallel?