Hi Dr.Fang,
We got two 1080ti for MCX, we tried to launch the benchmark as gpuid = '11' and matlab was killed with error attached in the end of this email. We tried to run with each single GPU, and both of them worked well even with the one that is using for display. We also tried to decrease the number of photons to 10^6 and set tstep = 5*10^-10ns, and got the same error only with dual GPU. Could you please help? Thank you very much.
--
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 post to this group, send email to mcx-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mcx-users.
For more options, visit https://groups.google.com/d/optout.
Hi Dr.Fang,
I am using the latest version. 2017.3. I tried with 1000 photons and still got error, this only happens when I use dual GPU.
Nightly build gave the same error and I downloaded 2017.7 from github it showed error as "Output argument "fluence" (and maybe others) not assigned during call to "mcxlab". " Do I need to make the mex file ? Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+unsubscribe@googlegroups.com.
To post to this group, send email to mcx-...@googlegroups.com.
Hi Dr.Fang,
I am not in the lab now. I will send you my mcxlab toolbox and the code by tomorrow morning. But this is just the benchmark code. I was wandering this is because the mex file doesn't comparable with my system (ubuntu 16.04). I didn't manage to make a new mex and I guess the reason is the make file code was not taking these CXXFLAGS and LDFLAGS correctly. With mcx running in terminal dual gpu worked.
make mex AR=g++-4.9
Because the default gcc version is 5.0 on my machine. If I don't specify AR I will get warning saying for making MEX it should be 4.9 and I got more errors. I can send you the screenshot tomorrow morning since I can't access to our cluster now. Sorry for this.
Hi Dr.Fang,
I downloaded the very latest nightly build version (20th July ) of mcxlab and src code this morning. Please see what I tried and got as following.
1. mcxlab worked well except when using gpuid = '11' in the benchmark code
2. I added AR = g++-4.9 as you suggested in the end of line 142 of makefile, seem it was still using 5.4.0 instead of 4.9. Here is line 142: mexbox fermimex: LINKOPT+= CXXFLAGS='$$CXXFLAGS -DSAVE_DETECTORS -DUSE_CACHEBOX -DMCX_CONTAINER $(OMP) $(MEXCCOPT) $(USERCCOPT)' LDFLAGS='-L$$TMW_ROOT$$MATLABROOT/sys/os/$$ARCH $$LDFLAGS $(OMP) $(USERLINKOPT)' -liomp5 AR=g++-4.9
3. 2017.7 from github gave me "Output argument "fluence" (and maybe others) not assigned during call to "mcxlab" because there is no mex file. Same error happened when make mex from src
ERROR MESSAGE:
mex mcx_core.o mcx_utils.o mcx_shapes.o tictoc.o mcextreme.o cjson/cJSON.o -output ../mcxlab/mcxlab -L/usr/local/cuda/lib -lm -lcudart CXXFLAGS='$CXXFLAGS -DSAVE_DETECTORS -DUSE_CACHEBOX -DMCX_CONTAINER -fopenmp ' LDFLAGS='-L$TMW_ROOT$MATLABROOT/sys/os/$ARCH $LDFLAGS -fopenmp ' -liomp5 AR=g++-4.9 mcxlab.cpp -outdir ../mcxlab -I/usr/local/cuda/include -DUSE_XORSHIFT128P_RAND
Building with 'g++'.
Warning: You are using gcc version '5.4.0'. The version of gcc is not supported. The version currently supported with MEX is '4.9.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
/NAS/home/zhe_cai/zhengchen/Softwares/mcx_master/mcx/mcx/src/mcxlab.cpp: In function ‘void mexFunction(int, mxArray**, int, const mxArray**)’:
/NAS/home/zhe_cai/zhengchen/Softwares/mcx_master/mcx/mcx/src/mcxlab.cpp:205:104: error: cannot convert ‘int*’ to ‘const size_t* {aka const long unsigned int*}’ for argument ‘2’ to ‘mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID, mxComplexity)’
Hi Dr.Fang,
Yes I was using matlab 2017a, but I also tired with 2016a before. Anyway, now it's fine both with 2017a and 2016a. Thanks a lot.