Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  SMP in emacs?

Guest
Posted: Tue Nov 02, 2010 12:28 pm Reply with quote
Guest
Hi all,

I'm trying to develop an wx application which requires SMP. But by default the emacs tools are leaving me in non-smp mode. How do I switch my default shell in emacs to an smp enabled one? NB: erl -smp works fine on the command prompt.

In ubuntu with latest version (tools-2.6.6.1)

thanks,
Aaron
________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Nov 02, 2010 4:40 pm Reply with quote
Guest
Hi Aaron,

in /lib/tools-2.6.6.1/emacs/erlang.el

I switched the variable erlang-machine-opts to '("-smp") from '()

Now I can compile wx and run wx programs in emacs

Thanks:-),
Aaron

On 2010-11-02, at 9:26 AM, Aaron Broad wrote:

> Hi all,
>
> I'm trying to develop an wx application which requires SMP. But by default the emacs tools are leaving me in non-smp mode. How do I switch my default shell in emacs to an smp enabled one? NB: erl -smp works fine on the command prompt.
>
> In ubuntu with latest version (tools-2.6.6.1)
>
> thanks,
> Aaron
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org
>


________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Nov 02, 2010 4:52 pm Reply with quote
Guest
C-u M-x erlang-shell
erl -smp +S12

> erlang:system_info(schedulers).
12

/Dan
PS: If you read/modified the code you could have seen that Smile

On Tue, Nov 2, 2010 at 5:38 PM, Aaron Broad <aaron.broad@unb.ca> wrote:
> Hi Aaron,
>
> in /lib/tools-2.6.6.1/emacs/erlang.el
>
> I switched the variable erlang-machine-opts to '("-smp") from '()
>
> Now I can compile wx and run wx programs in emacs
>
> Thanks:-),
> Aaron
>
> On 2010-11-02, at 9:26 AM, Aaron Broad wrote:
>
>> Hi all,
>>
>> I'm trying to develop an wx application which requires SMP.
Guest
Posted: Wed Nov 03, 2010 1:02 pm Reply with quote
Guest
Hi Dan & all,

Off topic question. Could someone please explain me what's
the benefits of this "+S" option (and the "+A" option by the way).
How to choose their values?

--
Regards
Zabrane


2010/11/2 Dan Gudmundsson <dgud@erlang.org>:
> C-u M-x erlang-shell
> erl -smp +S12
>
>> erlang:system_info(schedulers).
> 12

________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org

Post received from mailinglist
phicarre
Posted: Tue Nov 30, 2010 10:30 am Reply with quote
User Joined: 23 Mar 2009 Posts: 14
Like this ?

(defvar inferior-erlang-machine-options '("-smp")
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum