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

Issue when running Inveon_PET_main.m #47

Open
inemar2 opened this issue Jan 23, 2024 · 10 comments
Open

Issue when running Inveon_PET_main.m #47

inemar2 opened this issue Jan 23, 2024 · 10 comments

Comments

@inemar2
Copy link

inemar2 commented Jan 23, 2024

Dear sir,
Hello. In Inveon_PET_main.m ,when I run the code in MATLAB, an error occurs:

Inveon_PET_main
Unrecognized function or variable 'OMEGA_error_check'.

Error in Inveon_PET_main (line 1739)
options = OMEGA_error_check(options);

How do I solve this problem?
Thanks.

@villekf
Copy link
Owner

villekf commented Jan 23, 2024

Did you add the source-folder into Matlab/Octave path?

@inemar2
Copy link
Author

inemar2 commented Jan 23, 2024

Yes, I think so. I added to the folder of MATLAB. I share a screenshot.
screenshot

@villekf
Copy link
Owner

villekf commented Jan 23, 2024

The source-folder is grayed out, this means that it is not on path and thus Matlab can't find any of the functions. The folder needs to be "black" like OMEGA-master to be included. Simply right-click the source-folder and select the "Add to Path" (either of the options are valid for the current version). Note that you need to do this every time to open Matlab. If you want a permanent solution, add the folder to "Home --> Set Path".

@inemar2
Copy link
Author

inemar2 commented Jan 23, 2024

Thank you! Do you have a virtual machine or a docker with this software where I can perform tests ?

@villekf
Copy link
Owner

villekf commented Jan 23, 2024

Unfortunately no. My resources are quite thin as it is. A docker implementation would definitely be useful, but not sure how easy it would be to implement it for this case. Maybe in the future, but I don't recommend holding your breath for it.

@inemar2
Copy link
Author

inemar2 commented Jan 23, 2024

Ok, thank you for the rapid response!

@inemar2
Copy link
Author

inemar2 commented Jan 23, 2024

It works in latest versions of MATLAB?

@villekf
Copy link
Owner

villekf commented Jan 24, 2024

Yes, it should. I don't think any of the functions I've used have been removed. I did a few tests on 2023b recently with the master-branch version too.

@inemar2
Copy link
Author

inemar2 commented Jan 24, 2024

Ok, thank you! I have one more question.

This error appears when I try to run inveon_PET_main :
>> Inveon_PET_main
Error using OMEGA_error_check (line 301)
OpenCL reconstruction selected, but OpenCL MEX-files were not installed. Run install_mex to build OpenCL
MEX-files.
Error in Inveon_PET_main (line 1739)
options = OMEGA_error_check(options);

But before this I run the file install_mex and no errors appear, it only said some warnings:
>> install_mex
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.

In install_mex (line 358)
MEX completed successfully.
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 363)
MEX completed successfully.
Implementations 1 & 4 built with OpenMP (parallel) support
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 388)
MEX completed successfully.
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 404)
MEX completed successfully.
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 422)
MEX completed successfully.
LMF support enabled
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 435)
MEX completed successfully.
Inveon support enabled
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 484)
/tmp/mex_5120276665605_1860: 2: root-config: not found
Warning: Unable to build ROOT support! If you do not need ROOT support ignore this warning. Otherwise make
sure that ROOT was compiled with the same compiler you are using to compile this mex-file and that
root-config is working properly, i.e. you have sourced the ROOT binaries with thisroot.*. You can manually
input the ROOT installation folder with install_mex(0, [], [], [], 'C:/path/to/ROOT'). Compiler error is
shown with install_mex(1)
In install_mex (line 501)
Attempting to build CUDA code.
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 625)
Warning: CUDA support not enabled
In install_mex (line 633)
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 656)
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 663)
Warning: Unable to build OpenCL files for implementation 2! If you do not need implementation 2 (matrix
free OpenCL with ArrayFire) ignore this warning. Compiler error is shown with install_mex(1). If OpenCL SDK
and/or ArrayFire has been installed in a non-standard path, they can be added manually by using
install_mex(0, '/PATH/TO/OPENCL/INCLUDE', '/PATH/TO/OPENCL/LIB/X64', '/PATH/TO/ARRAYFIRE')
In install_mex (line 681)
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 687)
MEX completed successfully.
Building with 'g++'.
Warning: gcc version '11' not supported. See https://www.mathworks.com/support/compilers/current_release.
In install_mex (line 691)
MEX completed successfully.
Implementation 3 built

Could you help me ?

@villekf
Copy link
Owner

villekf commented Jan 24, 2024

In order to use implementation 2, you need to install ArrayFire. See the wiki: https://github.com/villekf/OMEGA/wiki/Installation-help#arrayfire

install_mex shows errors only when used as install_mex(1). Otherwise only warnings are displayed.

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

2 participants