You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With current main, a manually converted instr needs -t to actually function with a subsequent mcrun, since mcrun now always transfers a --trace value (0/1/2) to the binary instrument:
(mcstas-3.x-dev/miniconda3) tmp $ mcstas mini.instr
-----------------------------------------------------------
Generating single GPU kernel or single CPU section layout:
-----------------------------------------------------------
Generating GPU/CPU -DFUNNEL layout:
-----------------------------------------------------------
CFLAGS=
(mcstas-3.x-dev/miniconda3) tmp $ mcrun mini.instr
INFO: No output directory specified (--dir)
INFO: Using directory: "mini_20250207_124409"
INFO: Using existing c-file: ./mini.c
INFO: Recompiling: ./mini.out
INFO: ===
Error: trace not enabled (mcenabletrace)
Please re-run the McStas compiler with the --trace option, or rerun the
C compiler with the MC_TRACE_ENABLED macro defined.
INFO: call to ./mini.out failed with Command './mini.out --trace=0 --ncount=1000000 --dir=mini_20250207_124409 --format=McCode --bufsiz=10000000' returned non-zero exit status 1.
Traceback (most recent call last):
vs.
mcstas mini.instr -t
-----------------------------------------------------------
Generating single GPU kernel or single CPU section layout:
-----------------------------------------------------------
Generating GPU/CPU -DFUNNEL layout:
-----------------------------------------------------------
CFLAGS=
(mcstas-3.x-dev/miniconda3) tmp $ mcrun mini.instr
INFO: No output directory specified (--dir)
INFO: Using directory: "mini_20250207_124521"
INFO: Using existing c-file: ./mini.c
INFO: Recompiling: ./mini.out
INFO: ===
Instrument parameters for mini (mini.instr)
Set value of instrument parameter dummy (double) [default='0']:
Since --trace is useful for almost everyone / every use, we should default to include it - and instead include a --notrace to disable it.
The text was updated successfully, but these errors were encountered:
With current main, a manually converted instr needs
-t
to actually function with a subsequent mcrun, since mcrun now always transfers a--trace
value (0/1/2) to the binary instrument:vs.
Since
--trace
is useful for almost everyone / every use, we should default to include it - and instead include a--notrace
to disable it.The text was updated successfully, but these errors were encountered: