From: Andi Kleen <andi@firstfloor.org>
To: Almaz Mirgasimov <mirgasimov.almaz@gmail.com>
Cc: linux-numa@vger.kernel.org
Subject: Re: libnuma: Problem with static library
Date: Wed, 14 Dec 2011 12:37:45 -0800 [thread overview]
Message-ID: <m2iplinb3a.fsf@firstfloor.org> (raw)
In-Reply-To: <CAL-T5KnJkA1uCowPEaR+TMAVfiYJW1GH5BxXyu1LuV5PdAoe8A@mail.gmail.com> (Almaz Mirgasimov's message of "Fri, 11 Nov 2011 13:35:42 +0300")
Almaz Mirgasimov <mirgasimov.almaz@gmail.com> writes:
> I have some problem when running my program statically linked with libnuma.
> When I try to run it I get following error message
>
> request to allocate mask for invalid number; abort
>
> I think the reason for such behavior is not initialized 'cpumask_sz',
> because 'numa_init' was not called automatically.
>
> To solve this problem I slightly patched numactl sources and called
> 'numa_init' in my program manually.
> But is there any better way?
That's a long standing regression from the 2.x changes.
Should be fixed with
http://permalink.gmane.org/gmane.linux.kernel.numa/688
-Andi
--
ak@linux.intel.com -- Speaking for myself only
prev parent reply other threads:[~2011-12-14 20:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 10:35 libnuma: Problem with static library Almaz Mirgasimov
2011-12-14 20:37 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2iplinb3a.fsf@firstfloor.org \
--to=andi@firstfloor.org \
--cc=linux-numa@vger.kernel.org \
--cc=mirgasimov.almaz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.