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

How to modify and compile LamgSetup.m? #3

Open
NIRVANALAN opened this issue Mar 20, 2020 · 8 comments
Open

How to modify and compile LamgSetup.m? #3

NIRVANALAN opened this issue Mar 20, 2020 · 8 comments

Comments

@NIRVANALAN
Copy link

Hi, thanks for your great work;
I have been reading your code. As for the code file in mat_coarsen, I wonder if I can modify and cmopile the binary file?
Could you provide the instructions for this,
thanks ;)

@Chenhui1016
Copy link
Collaborator

Hi, you can modify "LamgSetup.m" and then execute "mcc -m LamgSetup.m" in the Matlab command-line mode. For more details, you can check here: https://www.mathworks.com/help/compiler/mcc.html

@NIRVANALAN
Copy link
Author

NIRVANALAN commented Mar 20, 2020 via email

@NIRVANALAN
Copy link
Author

Hi, is the lamg solver integrated in matlab?
lamg = Solvers.newSolver('lamg'....)

@Chenhui1016
Copy link
Collaborator

Chenhui1016 commented Mar 21, 2020 via email

@NIRVANALAN
Copy link
Author

Hi, thanks for your help;
I have tried mcc -c LamgSetup.m -l which generates c code, while the binary file is still missing..
Actually I want to have access to the spectral affinity matrix and save them, is there anyway I can do that? There are so many files in lamg/..

@NIRVANALAN
Copy link
Author

another question, I tried to run LampSetup.m in matlab and here comes the error
函数或变量 'writeMtx' 无法识别。
Does that mean I cannot execute LamgSetup.m in matlab and have to compile it first?

@Chenhui1016
Copy link
Collaborator

Running "mcc -m LamgSetup.m" should give you binary file. You can check affinity matrix here: lamg/main/+amg/+coarse/CoarseSetAffinityMatrix.m

Have you run "make.m" before running "LamgSetup.m"?

@NIRVANALAN
Copy link
Author

NIRVANALAN commented Mar 24, 2020

Thanks for your help,
I can generate the LampSetup.exe in Windows now, but seems I need to compile it on linux to get the same binary file as you provide..
Meanwhile, how can I save the affinitymatrix of different level? Call WriteMtx too?
Thanks again

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