[Symphony] Symphony Digest, Vol 38, Issue 5

carlosm.upm at gmail.com carlosm.upm at gmail.com
Wed Aug 27 03:38:19 EDT 2008


Thank you for your comment Mr. Ralphs, it works now with:

   symphony -p 2 -F sample.mps

Despite this I still could not get to my objective: to call SYMPHONY
from Matlab via a mex file -tailored for my problem needs- and get it
to run in parallel using shared memory.

My mex file is just a C wrapper to the SYMPHONY API that basically
deals with the way Matlab allocates matrices and passes the function
parameters: I am pretty sure that the API of SYMPHONY is agnostic
regarding parallelization.

The fact is that linking the object files from my code to the same
libraries that make the example aforementioned work in parallel
shared memory, using the same compilation flags -just in case-,
setting OMP_NUM_THREADS and explicitelly enabling every
Matlab multithreading capabilities did not help: my problem takes
around a minute to solve and it is using only one core of my dual
core centrino laptop.


1) Has anyone tried embedding SYMPHONY in such a fashion?
2) Would anyone be interested in the Matlab link to SYMPHONY that I developed?


Best regards,

 Carlos

On 23/08/2008, symphony-request at list.coin-or.org
<symphony-request at list.coin-or.org> wrote:
> Send Symphony mailing list submissions to
> 	symphony at list.coin-or.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.coin-or.org/mailman/listinfo/symphony
> or, via email, send a message with subject or body 'help' to
> 	symphony-request at list.coin-or.org
>
> You can reach the person managing the list at
> 	symphony-owner at list.coin-or.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Symphony digest..."
>
>
> Today's Topics:
>
>    1. Re: [ building SYMPHONY 5.18: shared memory build <>
>       sequential? ] (Ted Ralphs)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 22 Aug 2008 17:47:11 -0400
> From: Ted Ralphs <ted at lehigh.edu>
> Subject: Re: [Symphony] [ building SYMPHONY 5.18: shared memory build
> 	<>	sequential? ]
> To: Carlos Mart?nez <carlosm.upm at gmail.com>
> Cc: symphony at list.coin-or.org
> Message-ID: <48AF33DF.1070309 at lehigh.edu>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Carlos,
>
> I just tried building with
>
> ../configure --enable-openmp --with-application
>
> with gcc 4.2.3 and it worked fine. I think the reason you are having
> trouble is because of the addition of --with-lp=yes, which should not be
> needed and may in fact mess things up. Can you try without that option
> and see if it works?
>
> Cheers,
>
> Ted
>
> Carlos Mart?nez wrote:
>> Hello,
>>
>> I am trying to build SYMPHONY with OpenMP support for using it
>> in a shared memory 16-cores server but it seems like I am running
>> into problems at some point.
>>
>>
>> I compiled SYMPHONY using gcc 4.2.3 and I am using your nice and very
>> clear C API. This is the configure command I used after reading the
>> user guide, SYMPHONY/Applications/USER/INSTALL and some other READMEs.
>>
>> configure --prefix=/opt/SYMPHONY --enable-openmp --enable-static
>> --with-application --enable-debug --with-lp=yes
>>
>> Running
>>
>>        symphony -p 2 -F sample.mat
>>
>> will output the following warning:
>>
>>       "Trying to use multiple processors with sequential build..."
>>
>>
>> For the problem I am solving my laptop will just use one of its two cores
>> as well, so I think there is something amiss somewhere. I am sorry I am
>> totally new to SYMPHONY and thus I am a bit lost still.
>>
>> Particularly I found in 5.5 that there are three configurations:
>>
>> - Sequential
>> - Parallel distributed
>> - Parallel shared
>>
>> but I could only find information on how to build my applications
>> with the first two configurations. From the user guild I thought that
>> using "--with-openmp" would suffice.
>>
>> Any help will be much appreciated,
>>
>>   Carlos
>>
>>
>> Carlos Martinez Belinchon
>> carlos.martinez at ieee.org
>> _______________________________________________
>> Symphony mailing list
>> Symphony at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/symphony
>
>
> --
> Dr. Ted Ralphs
> Associate Professor
> Industrial and Systems Engineering
> Lehigh University
> (610)758-4784
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>
>
> ------------------------------
>
> _______________________________________________
> Symphony mailing list
> Symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/symphony
>
>
> End of Symphony Digest, Vol 38, Issue 5
> ***************************************
>


-- 
Carlos Martinez Belinchon
carlos.martinez at ieee.org



More information about the Symphony mailing list