Comments (2)
Thanks it indeed works as expected in the nightlybuild. I might have made a mistake before.
from mcx.
@g-buist, unfortunately I am not able to reproduce this - can you try the latest nightly build and see if the issue still exist?
I tested your commands on my Linux machine and the replay runs fine, all 2980 photons in the baseline simulation were re-detected in the replay
fangq@taote:~/space/git/Project/github/mcx/src$ ../bin/mcx --bench cube60 --saveseed -s test -F jnii
###############################################################################
# Monte Carlo eXtreme (MCX) -- CUDA #
# Copyright (c) 2009-2022 Qianqian Fang <q.fang at neu.edu> #
# http://mcx.space/ #
# #
# Computational Optics & Translational Imaging (COTI) Lab- http://fanglab.org #
# Department of Bioengineering, Northeastern University, Boston, MA, USA #
###############################################################################
# The MCX Project is funded by the NIH/NIGMS under grant R01-GM114365 #
###############################################################################
$Rev::31c0fa$v2022.10$Date::2023-05-04 16:12:10 -04$ by $Author::Qianqian Fang$
###############################################################################
- variant name: [Fermi] compiled by nvcc [9.0] with CUDA [9000]
- compiled with: RNG [xorshift128+] with Seed Length [4]
GPU=1 (NVIDIA TITAN V) threadph=6 extra=16960 np=1000000 nthread=163840 maxgate=1 repetition=1
initializing streams ... init complete : 1 ms
requesting 2560 bytes of shared memory
launching MCX simulation for time window [0.00e+00ns 5.00e+00ns] ...
simulation run# 1 ...
kernel complete: 84 ms
retrieving fields ... detected 2980 photons, total: 2980 transfer complete: 97 ms
normalizing raw data ... source 1, normalization factor alpha=200.000000
data normalization complete : 102 ms
saving data to file ... compressing data [zlib] ...compression ratio: 92.5% after encoding: 125.0%
saving data complete : 136 ms
compressing data [zlib] ...compression ratio: 11.0% after encoding: 14.9%
compressing data [zlib] ...compression ratio: 51.8% after encoding: 70.0%
compressing data [zlib] ...compression ratio: 99.8% after encoding: 134.9%
simulated 1000000 photons (1000000) with 163840 threads (repeat x1)
MCX simulation speed: 22222.22 photon/ms
total simulated energy: 1000000.00 absorbed: 17.76674%
(loss due to initial specular reflection is excluded in the total)
fangq@taote:~/space/git/Project/github/mcx/src$ ../bin/mcx --bench cube60 --saveseed -s test --seed test_detp.jdat
###############################################################################
# Monte Carlo eXtreme (MCX) -- CUDA #
# Copyright (c) 2009-2022 Qianqian Fang <q.fang at neu.edu> #
# http://mcx.space/ #
# #
# Computational Optics & Translational Imaging (COTI) Lab- http://fanglab.org #
# Department of Bioengineering, Northeastern University, Boston, MA, USA #
###############################################################################
# The MCX Project is funded by the NIH/NIGMS under grant R01-GM114365 #
###############################################################################
$Rev::31c0fa$v2022.10$Date::2023-05-04 16:12:10 -04$ by $Author::Qianqian Fang$
###############################################################################
- variant name: [Fermi] compiled by nvcc [9.0] with CUDA [9000]
- compiled with: RNG [xorshift128+] with Seed Length [4]
GPU=1 (NVIDIA TITAN V) threadph=0 extra=2980 np=2980 nthread=163840 maxgate=1 repetition=1
initializing streams ... init complete : 1 ms
requesting 2560 bytes of shared memory
launching MCX simulation for time window [0.00e+00ns 5.00e+00ns] ...
simulation run# 1 ...
kernel complete: 8 ms
retrieving fields ... detected 2980 photons, total: 2980 transfer complete: 21 ms
normalizing raw data ... source 1, normalization factor alpha=67114.093750
data normalization complete : 26 ms
saving data to file ... saving data complete : 26 ms
simulated 2980 photons (2980) with 163840 threads (repeat x1)
MCX simulation speed: 596.00 photon/ms
total simulated energy: 2980.00 absorbed: 34.91230%
(loss due to initial specular reflection is excluded in the total)
from mcx.
Related Issues (20)
- Tutorial on how to import arbitrary 3d shapes. HOT 1
- Error in make HOT 1
- pmcx buffer overflow error if bc parameter has 12 characters HOT 1
- "misaligned address" error when using cfg.invcdf and cfg.angleinvcdf
- Failed to apply double-float-buffer approach in #41 to `dref` cause loss of accuracy
- Tissue propoerty for different wavelenght HOT 2
- `pmcx.mcxlab` fails to typecast `traj.id` output from float32 to uint32
- mcx2json unable to export simulations of continuously-varying media
- mcxlab: Where to find "sphdiffusionslab.m" required by "demo_validation_heterogeneous.m"? HOT 1
- Support per voxel mua/mus/g/n continuous medium type
- Different scattering coefficient of water in demo_skinvessel.m compared to mcxyz.c HOT 1
- get absorbed energy by object HOT 8
- svmc is broken after commit 7e1aec0
- pmcx dettpsf overwrites input detp structure HOT 1
- [CRITICAL] double-multiplication of initial weight in single-pattern-source fluence output HOT 3
- Gaussian divergence for slit source HOT 3
- Replay fails when simulating with multiple light sources HOT 6
- Post v2024.2 release actions
- Multi-source simulation fails to return the source ID for detected photons and trajectories
- Using base64 as compression method resulting in double base64 encoding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcx.