X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 98394DC003D for ; Mon, 4 Aug 2014 05:19:40 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id p10so8963718pdj.22 for ; Sun, 03 Aug 2014 22:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=rP4rkrn8fZtrOiDqr/MRRghrvmMqzRB2jT/fSp/vbw0=; b=WLKYe+xOyK9+4GAOgul+hSZ2RMkzmakIZ7AuGJvmvizQ7wPHzqqnmUAu9rU0f3wark 7zSe2/H3BYRI7aH0TX1eA7D/SwPj4SNjeayWxdmamf+jA1alDA/G/93no7cWSH3Hp6ov 88HhrS0wvO+xqEKf9EZsMSYEu/YVB/YTGdxTF72Du5wyMdgxwQ6zpCYYxoWBjKiZuYY+ gOJrar/y8u5Wei3dIM7aPAANqmDoh1ms0k7KjPZjjzr6czdV0VU7B3kt4J4lYk76OvaI 1teL5v/qFvCiMN+xZIjw0BoFbWYCPYqIiRcHipnEVgaN+BqtN0gPjVz8gYDq3rB+LeQw YBbg== X-Received: by 10.70.140.102 with SMTP id rf6mr21793250pdb.4.1407129578804; Sun, 03 Aug 2014 22:19:38 -0700 (PDT) Received: from newbook ([50.0.227.98]) by mx.google.com with ESMTPSA id n8sm24779016pdm.22.2014.08.03.22.19.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Aug 2014 22:19:37 -0700 (PDT) Date: Sun, 3 Aug 2014 22:19:33 -0700 From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] Re: could python be built with Tcl support? Message-ID: <20140804051931.GA26972@newbook> References: <20140803002548.GA2919@newbook> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140803002548.GA2919@newbook> User-Agent: Mutt/1.5.23 (2014-03-12) On Sat, Aug 02, 2014 at 05:25:50PM -0700, Isaac Dunham wrote: > Hello, > I've got a little project I started some time back, that uses Python 2.x, > numpy, scipy.interpolate, matplotlib, and the Tk modules (Tkinter and > tkFileDialog). > I was thinking about working on it some, so...would it be possible to build > python with tcl-dev? I've packaged matplotlib, but it may need to be built againt a suitable python to work for me (ie: I'll send it when Tkinter is built). I haven't built scipy yet, but I've built the prerequisite that isn't packaged yet: a BLAS/LAPACK library. For this, I built OpenBLAS with the following flags: USE_OPENMP=1 NO_LAPACK=0 NUM_THREADS=2 MAJOR_VERSION=3 NO_AFFINITY=1 TARGET=ATOM Justification: USE_OPENMP=1: I'm not sure this is sensible for me. NO_LAPACK=0: Needed to get LAPACK NUM_THREADS=2: I have a hyperthreading Atom N270. The recommended value is actually 1 thread per hardware core/FPU (hyperthreaded cores or Bulldozer cores divided by 2). NO_AFFINITY=1: Needed for some software to work right; this may be needed to build with some versions of musl as well. TARGET=ATOM: This is what I have. As NUM_THREADS increases, so does the size of internal structures. For packaging, I suppose it would be sensible to use something like this: USE_OPENMP=1 NO_LAPACK=0 NUM_THREADS=16 NO_AFFINITY=1 TARGET=??? NUM_THREADS=16 is half the 32 cores that our kernel supports, because most systems that have that many cores are Bulldozer or Intel (hyperthreading), and setting it high will bloat the library. I'm not sure what to say for TARGET; sensible values might be P2, SSE_GENERIC, or possibly using DYNAMIC_CORE instead. This package required a trivial patch, which I've sent them: it used get_nprocs(), which is the same as sysconf(_SC_NPROCESSORS_ONLN). Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---