Closed dheerajrathee closed 7 years ago
Hi @dheerajrathee, which example script did you run? This sounds like you were trying to use the GPU functions without first compiling the mex files. If you want to use the GPU functions, you need to run intall.m
first.
Hi Patricia,
Thanks for your reply. I tried to run 'example_script_CPUmethod' script. Kindly see the attached screenshot with the error (I use two screens).
Best, Dheeraj
Hi Dheeraj, could you try to calling nn_prepare directly to make sure you can execute the pre-compiled mex-files? Just go into the subfolder TRENTOOL3/tstool_functions/mex_win/mex64 (assuming your you are on a 64bit architecture, otherwise its the folder mex32) and check if you can execute nn_prepare (e.g., do nn_prepare(ones(100, 10))
).
Thanks, Patricia
I have exactly the same error as Dheeraj too. I tried your solution Patricia, the nn_prepare (ones(100,10)) was working fine but the example script has the same error still. I am on Ubuntu 14.04
Hi Soorya, I resolved the above issue by simple copy and pasting the mex file for nn_prepare, nn_search, and range_search from the folder location '\Trentool3\tstool_functions\mex_win\mex64' to the main folder i.e., '\Trentool3'. In tstool_functions folder you have options for mac, windows, and linux.
Best, Dheeraj
Thanks Dheeraj, I figured a way around it yesterday. I renamed the ones in the main folders and its working fine. Cheers, Soorya
Thanks Dheeraj, I figured a way around it yesterday. I renamed the ones in the main folders and its working fine. Cheers, Soorya
I'm having the same problem reported in this issue. How did you rename them? I'm on a Mac (Catalina) and Matlab 2019. when I go to the MEX folder and try to run the function, I get:
Invalid MEX-file '/Users/iuser/Dropbox/MATLAB/path/TRENTOOL3-master/nn_prepare.mexmaci64':
dlopen(/Users/user/Dropbox/MATLAB/path/TRENTOOL3-master/nn_prepare.mexmaci64, 6): Library not loaded: @loader_path/libmex.dylib
Referenced from: /Users/user/Dropbox/MATLAB/path/TRENTOOL3-master/nn_prepare.mexmaci64
Reason: image not found
I tried to run the example script but I got this error:
U:\Softwares\TRENTOOL3-master\tstool_functions\nn_prepare.m Error in TEragwitz (line 75)
may be some issue with mex file...