473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

pyprocessing/multiprocessing for x64?

I recently learned (from I response on this newsgroup to an earlier
query) of the processing module for working with subprocesses in a
similar manner to threading. For what I needed to do, it worked great
--- until I tried to run my code on an x64 box, for which that module
isn't available*. So, I'm just wondering if when processing is renamed
to multiprocessing and included in the standard lib for 2.6, will x64 be
supported?
~Scott

*yes, yes, I know. download the source and compile it myself.
Aug 5 '08 #1
5 2045
Benjamin Kaplan wrote:
I'm not an expert on this, but I think that anything written for x86 (32
bit) machines can run on x64 machines.
Become an export - say the opposite :)
Aug 6 '08 #2
Benjamin Kaplan wrote:
I don't have a 64-bit machine, so I can only go off of what I read. This is
from the AMD64 FAQ<http://www.amd.com/us-en/Processors/ProductInformation/0,,30_118_9331_13278,00.html#100144>
Welcome to the world of marketing. The FAQ just explains that AMD64
compatible processors can still run 32bit programs. It doesn't say that
you can recompile your code for 64bit w/o trouble.

It's possible to write software that compiles and works on all sorts of
platforms and CPU architectures like X86, AMD64, IA64, PPC etc. The
Python interpreter is a good example.

However one can easily write C code that runs on 32bit X86 CPUs but
crashes on 64bit systems. The same code may run on a 64bit Linux/BSD
system but crashes on a Win32 X64 because 64bit Windows defines a long
as a 32bit datatype, while a long on 64bit Unix systems has 64bits.

Christian

Aug 6 '08 #3
Benjamin Kaplan wrote:
I don't have a 64-bit machine, so I can only go off of what I read. This is
from the AMD64 FAQ<http://www.amd.com/us-en/Processors/ProductInformation/0,,30_118_9331_13278,00.html#100144>
Welcome to the world of marketing. The FAQ just explains that AMD64
compatible processors can still run 32bit programs. It doesn't say that
you can recompile your code for 64bit w/o trouble.

It's possible to write software that compiles and works on all sorts of
platforms and CPU architectures like X86, AMD64, IA64, PPC etc. The
Python interpreter is a good example.

However one can easily write C code that runs on 32bit X86 CPUs but
crashes on 64bit systems. The same code may run on a 64bit Linux/BSD
system but crashes on a Win32 X64 because 64bit Windows defines a long
as a 32bit datatype, while a long on 64bit Unix systems has 64bits.

Christian
Aug 6 '08 #4
Interesting, I see Christian's responses to Benjamin, but not Benjamin's
posts themselves.

Anyways, the question remains: will multiprocessing be supported for the
x64 platform when it's released in 2.6?

pigmartian wrote:
I recently learned (from I response on this newsgroup to an earlier
query) of the processing module for working with subprocesses in a
similar manner to threading. For what I needed to do, it worked great
--- until I tried to run my code on an x64 box, for which that module
isn't available*. So, I'm just wondering if when processing is renamed
to multiprocessing and included in the standard lib for 2.6, will x64 be
supported?
~Scott

*yes, yes, I know. download the source and compile it myself.
Aug 6 '08 #5
Benjamin Kaplan wrote:
The only problem I can see is that 32-bit programs can't access 64-bit
dlls, so the OP might have to install the 32-bit version of Python for
it to work.
Anyway, all of this is beside the point, because the multiprocessing
module works fine on amd64 systems.

Kris
Aug 7 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jinDoankz | last post by:
Hi there. Let's just get to the point. I have 10 of arrays and let's say it has 2000 words for each array as the elements. I use an algorithm (maybe you know the Levensthein Distance/Edit...
1
by: Aaron \Castironpi\ Brady | last post by:
Hi, I'm trying to step through a subprocess I launch with multiprocessing. Does anyone know what hack to add? The actual call comes in forking.Popen.__init__, Windows version, forking.py, line...
4
by: nhwarriors | last post by:
I am attempting to use the (new in 2.6) multiprocessing package to process 2 items in a large queue of items simultaneously. I'd like to be able to print to the screen the results of each item...
1
by: redbaron | last post by:
I stuck in new multiprocessing module (ex. processing). I dont' understand why queue.get_nowait() never returns data, but always raises Empty, even if it is guaranteed that queue is not empty. ...
3
by: redbaron | last post by:
I run into problem with queue from multiprocessing. Even if I queue.qsize() != 0 queue.get() still blocks and queue.get_nowait() raises Emtpy error. I'm unable to cut my big part to small test...
9
by: YouCanCallMeAl | last post by:
It seems that the multiprocessing module in 2.6 is broken for *BSD; I've seen issue 3770 regarding this. I'm curious if there are more details on this issue since the posts in 3770 were a bit...
1
by: davy zhang | last post by:
I mean every process attach like thread in wingide like thread or tasklet in wingide :) maybe I asked toooo much:D
0
by: Jeffrey Barish | last post by:
With the release of multiprocessing in Python 2.6, is there any reason to use Pyro or RPyC? -- Jeffrey Barish
1
by: Jeffrey Barish | last post by:
skip@pobox.com wrote: So I thought at first, but then I saw this statement in the documentation: It is possible to run a manager server on one machine and have clients use it from other...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.