Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Can't save anymore detector data under AppleM1. #102

Closed
andreafarina opened this issue Oct 18, 2024 · 0 comments
Closed

[bug] Can't save anymore detector data under AppleM1. #102

andreafarina opened this issue Oct 18, 2024 · 0 comments

Comments

@andreafarina
Copy link
Contributor

After the upgrade of photon-sharing under GPU I can't run anymore simulations with cfg.issaveexit = 1.
Here is the output:

  • variant name: [MMC-OpenCL] compiled with OpenCL version [1]
  • compiled with: [RNG] xorshift128+ RNG [Seed Length] 4
    initializing streams ... init complete : 0 ms
    Building kernel with option: -cl-mad-enable -DMCX_USE_NATIVE -DMCX_SIMPLIFY_BRANCH -DMCX_VECTOR_INDEX -DMCX_SRC_PENCIL -DUSE_ATOMIC -DMCX_SAVE_DETECTORS -DMCX_SAVE_SEED -DUSE_BLBADOUEL
    Kernel build log:
    program_source:489:19: warning: comparison of integers of different signs: '__private uint' (aka '__private unsigned int') and '__private int' [-Wsign-compare]
    for (i = 0; i < len; i++) {
    ~ ^ ~~~
    program_source:611:16: warning: comparison of integers of different signs: '__private int' and '__constant uint' (aka '__constant unsigned int') [-Wsign-compare]
    if (r->eid <= GPU_PARAM(gcfg, normbuf)) {
    ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
    program_source:648:105: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    if ((int)((r->photontimer + r->Lmove * (prop.n * R_C0) - gcfg->tstart)*GPU_PARAM(gcfg, Rtstep)) > GPU_PARAM(gcfg, maxgate) - 1) { /exit time window/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    program_source:681:22: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    tshift = MIN( ((int)(replaytime[r->photonid] * GPU_PARAM(gcfg, Rtstep))), GPU_PARAM(gcfg, maxgate) - 1 ) * GPU_PARAM(gcfg, framelen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    program_source:272:32: note: expanded from macro 'MIN'
    #define MIN(a,b) ((a)<(b)?(a):(b))
    ~ ^ ~
    program_source:683:22: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    tshift = MIN( ((int)((r->photontimer - gcfg->tstart) * GPU_PARAM(gcfg, Rtstep))), GPU_PARAM(gcfg, maxgate) - 1 ) * GPU_PARAM(gcfg, framelen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    program_source:272:32: note: expanded from macro 'MIN'
    #define MIN(a,b) ((a)<(b)?(a):(b))
    ~ ^ ~
    program_source:1477:15: error: casting '__local float *' to type '__private uint *' (aka '__private unsigned int *') changes address space of pointer
    ((uint)(ppath + GPU_PARAM(gcfg, reclen) - 1)) = r.posidx;
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    program_source:1645:71: warning: comparison of integers of different signs: '__global int' and 'unsigned int' [-Wsign-compare]
    if (GPU_PARAM(gcfg, isextdet) && type[oldeid - 1] == GPU_PARAM(gcfg, maxmedia) + 1) {
    ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MMCLAB ERROR (11): Error: Failed to build program executable! in unit mmc_cl_host.c:498
Error from thread (0): Error: Failed to build program executable!
done 169
C++ Error: MMCLAB Terminated due to exception!

Thanks a lot!
Regards

Andrea

@fangq fangq closed this as completed in 126e53d Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant