-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
As a follow-up to the completion of #113 tested a little with
McXtrace 3.5.23 and mccode-antlr 0.10.0:
mxrun --cogen=mcxtrace-antlr ESRF_BM29.instr
INFO: No output directory specified (--dir)
INFO: Using directory: "ESRF_BM29_20250213_074816"
INFO: Regenerating c-file: ESRF_BM29.c
2025-02-13 07:48:17.354 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib
2025-02-13 07:48:17.354 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib
No initialization present?
-----------------------------------------------------------
Generating single GPU kernel or single CPU section layout:
-----------------------------------------------------------
Generating GPU/CPU -DFUNNEL layout:
-> GPU kernel from component Origin
-> GPU kernel from component Source
-> GPU kernel from component FirstPinhole
-> GPU kernel from component SecondPinhole
-> GPU kernel from component Sample
-> GPU kernel from component Beamstop
-> GPU kernel from component QMonitor
-----------------------------------------------------------
INFO: Recompiling: ./ESRF_BM29.out
./ESRF_BM29.c:10096:7: error: call to undeclared function 'RESTORE_XRAY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
10096 | RESTORE_XRAY(INDEX_CURRENT_COMP, x, y, z, kx, ky, kz, phi, t, Ex, Ey, Ez, p);
| ^
./ESRF_BM29.c:10221:7: error: call to undeclared function 'RESTORE_XRAY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
10221 | RESTORE_XRAY(INDEX_CURRENT_COMP, x, y, z, kx, ky, kz, phi, t, Ex, Ey, Ez, p);
| ^
2 errors generated.
Error occurs since the current mcxtrace-antlr uses RESTORE_NEUTRON.
Tiny PR incoming that renders McXtrace code-generation functional, so far only tested on this ESRF instr. :-)
Metadata
Metadata
Assignees
Labels
No labels