Hi,First of all thanks for this awesome OpenSource project.I am new to MCX and noticed a few things.Regarding MCX Studio (version: v2021.2)(On Win10 if this matters):
- When opening the digimouse.json file from the examles in MCXStudio, I get the error message "string exceeds end of line"
- I created json files from the colin27 example (by copying from mcxCloud or from "mcx --bench colin27 --dumpjson > file"). When opening these jsons with MCXStudio I get the error message "Invalid type cast"
hi Josef,
thanks for reporting these issues.
mcxstudio currently only supports shape-construct based domain
rendering. unfortunately we haven't added the support of JData
(http://openjdata.org) based volumetric input in this GUI tool. we
will add that in the future.
mcxcloud supports both, although its rendering of shapes is not
as complete as mcxstudio.
There are no errors if I use "mcx -f file.json" in these two cases .Regarding MCX Cloud:
- If I load a json which has no Param1 defined and switch to the preview tab. I get a message with " TypeError: obj.Param1 is undefined" (even though the type is "pencil", where no param is needed, right?)
this should be now fixed with this commit
https://github.com/fangq/mcx/commit/2633bfbe4d98d14b553a24c5bb5908b70d386b58
I also updated the web page, try it again
I know MCX Cloud is in the beta, but maybe you are not aware of this particular thing.
Regarding MCXLab:
For a custom volume simulationo I configured the detpos like this:
cfg.detpos=[32 22 1 1;32 42 1 1;22 32 1 1;42 32 1 1];
then used:
mcx2json(cfg,'cfg_from_matlab');
but got:
"Detector":[
[
{
"Pos":[32,22,1],
"R":1
},
{
"Pos":[32,42,1],
"R":1
},
{
"Pos":[22,32,1],
"R":1
},
{
"Pos":[42,32,1],
"R":1
}
]
]
which is one " [ ] " too many, right?
this should be fixed by the below patch
https://github.com/fangq/mcx/commit/65359f773683ca68c6963fe2e360d2f09b65ef9e
in jsonlab 2.0 (where savejson is provided), it reinforces the difference between a row and column vector by forcing a "[]" for each row in a column vector. changing the column vector to a row-vector, combined with the default singletarray=0 setting, eliminates the extra [] row labeling.
feel free to send me any other issues you found - you can also report these by creating an Issue on github (https://github.com/fangq/mcx/issues), so I can tag the patch properly.
Qianqian
If I should provide any file, just say it. (But I don't see how I can attach json-files in this "create Conversation" form)
I hope this is the correct place for my findings.Have a nice day.- Josef Probst
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/2f8c6cf0-9987-4350-ae47-8f07137f7de0n%40googlegroups.com.
After more investigation:When I use mmc2json and call
./mmc -f mycfg.json -c 0then it works fine.So the issue is related to my OpenCL setup. But for now CPU-Simulation is sufficient.
do you use windows or Linux? for Windows, you need to disable the graphics driver watchdog time limit (followed by a reboot), see
http://mcx.space/wiki/index.cgi?Doc/FAQ#I_am_getting_a_kernel_launch_timed_out_error_what_is_that
http://mcx.space/wiki/index.cgi?Workshop/MCX19Preparation#MCX_software_download_and_preparation
http://mcx.space/tutorials/mcxstudio/8_How_to_solve_the_unspecified_launch_error_on_Windows.html
for Linux (at least for kernel 4.7), if you use Intel's integrated GPU with opencl, you will have to run
echo -n 0 > /sys/module/i915/parameters/enable_hangcheck
see
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/faabf0d6-23df-48a5-a9a8-290efa706a91n%40googlegroups.com.
Thanks for the support!
I am working with different combinations.
With Win10+Matlab I did not have any recent problems (already saw the Windows fix you mentioned).
But I am supporting researchers who do not have access to Matlab and therefore I am trying to run simulations in Ubuntu 1804 and Octave.
So the following is related to Ubuntu 1804 with Octave:
I am working on a laptop with a i7-6700HQ and a Nvidia GTX 970M.
I thought that since mmc -L lists my Nvidia GPU, the OpenCL drivers are installed correctly and thus the simulation should work just like with mcxlab i.e. the screen freezes during simulation but the simualtion is done during this.
I followed your instructions for my otherwise unused IntelGPU. (Nvidia Prime is set to performance mode)
Installed OpenCL drivers:
https://github.com/intel/compute-runtime/blob/master/opencl/doc/DISTRIBUTIONS.md
disabled the hangcheck as you mentioned and now the simulation with mmclab is working and uses my IntelGPU. (This already helps a lot! Thank you)
But is there a way to use my nvidiaGpu (on a linux-laptop where this nvidia gpu is also used for the "normal desktop-output") with mmc?
MMC does work on a server with a dedicated nvidia-gpu.
Did you see my post above about mmc_sse?
https://groups.google.com/g/mcx-users/c/SCG67727xv0/m/Gwyrsvb7AgAJ
Thanks for the support!
I am working with different combinations.
With Win10+Matlab I did not have any recent problems (already saw the Windows fix you mentioned).
But I am supporting researchers who do not have access to Matlab and therefore I am trying to run simulations in Ubuntu 1804 and Octave.
So the following is related to Ubuntu 1804 with Octave:
I am working on a laptop with a i7-6700HQ and a Nvidia GTX 970M.
I thought that since mmc -L lists my Nvidia GPU,
on Linux, I usually had less issues with nvidia gpus - for Ubuntu, usually I first google "ppa nvidia driver" , run the command to run the ppa,
apt-get update, and apt-get install nvidia-driver-..., and a reboot usually make everything work fine. if driver for some reason does not work, I do a
sudo apt-get remove --purge nvidia\* and reinstall the driver usually solve the problem. when it is working, I check two things 1)
nvidia-smi, does it prints the gpu info? 2) run glmark2, make sure the driver/OpenGL is working properly. for OpenCL, I also type
clinfo and see if it recognizes the gpu.
many years ago, I used to get the watchdog timeout error on Linux if it is connected to a display, but for the past 4 years, I have been using this hack on my work desktop - i.e. using Intel i-GPU for display and keep nvidia dedicated for CUDA:
however, I switched my graphics to nvidia GPU this year, I noticed that there wasn't a time limit on my Ubuntu 16.04/18.04.
if it still does not work, try these
https://stackoverflow.com/questions/6906579/cuda-visual-profiler-interactive-x-config-option
https://stackoverflow.com/questions/15833261/how-to-disable-or-change-the-timeout-limit-for-the-gpu-under-linux
the OpenCL drivers are installed correctly and thus the simulation should work just like with mcxlab i.e. the screen freezes during simulation but the simualtion is done during this.
at least from my experience on Windows, screen freeze is expected during computing. if it does not return, maybe the issue is not because something is wrong, but because the computing is too long. reduce photon number and see if it returns
I followed your instructions for my otherwise unused IntelGPU. (Nvidia Prime is set to performance mode)
Installed OpenCL drivers:
https://github.com/intel/compute-runtime/blob/master/opencl/doc/DISTRIBUTIONS.md
disabled the hangcheck as you mentioned and now the simulation with mmclab is working and uses my IntelGPU. (This already helps a lot! Thank you)
But is there a way to use my nvidiaGpu (on a linux-laptop where this nvidia gpu is also used for the "normal desktop-output") with mmc?
unfortunately I can't reproduce this, everything works fine on my Ubuntu 18.04+nvidia gpu+octave, see screenshot. gpu#0 is also used for display (see xorg in nvidia-smi output)
Qianqian
MMC does work on a server with a dedicated nvidia-gpu.
Did you see my post above about mmc_sse?
https://groups.google.com/g/mcx-users/c/SCG67727xv0/m/Gwyrsvb7AgAJ
again, I can't reproduce this. cpu/sse version works fine on my octave 4.2.2.
Qianqian
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/e6c88c42-e73f-4148-bc7c-85f9f16f1e6dn%40googlegroups.com.