juanjonrg / nds

Parallel implementations of the Best Order Sort algorithm for Non-Dominated Sorting
Apache License 2.0
3 stars 1 forks source link

MATLAB #1

Closed michalkvasnicka closed 6 years ago

michalkvasnicka commented 6 years ago

Hi, will be possible to add any suitable way to directly call your seq_nds, mult_nds and cude_nds functions from MATLAB (via MEX files, or CUDA kernel)?

I am not experienced C or CUDA programmer, but I am really very interested to test and use your parallelized nds function in my multi-objective combinatorial optimization project.

juanjonrg commented 6 years ago

Hi, thank you for your interest in this project.

I think it is possible to make MEX entrypoints for these functions, please give me a couple of days so I can get a working prototype.

juanjonrg commented 6 years ago

Hi again,

I've added MEX entrypoints to all implementations and a small MATLAB script with examples on how to compile and use them.

I've tested them on MATLAB R2018a. The compilation of the MEX CUDA version requires the Parallel Computing Toolbox and (in my case) CUDA SDK 9.0. Please keep in mind that the performance may vary from the original C code due to the overhead introduced by MATLAB.

Good luck!

michalkvasnicka commented 6 years ago

Thanks a lot!!! I will test the mex files asap …