Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am trying to run a pycuda program across two gpus. I have read a great post by Talonmies explaining how you do it with the threading library, the post also mentioned this is possible with mpi4py.
When I run mpi4py with pycuda, program gives the error:
self.ctx = driver.Device(gpuid).max_context
pycuda._driver.logicError: cuDeviceGet failed: not initialized
Perhaps this is due to my attempt to initalize two of the gpu devices simutanously. Does anyone have a very short example of how we can get 2 gpus working with mpi4py?
For anyone who chances upon this question, here is a working mpi4py+pycuda example.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 hours ago.
Improve this question
I have designed three pipeline using code-CDK on AWS and i can deploy and run these pipeline individually but my requirement is that i want to run pipeline p1 first after this pipeline gets deploy and set the infrastructure like creating application and environment on beanstalk then next pipeline p2 get executed and then third.
totally new on AWS so no idea how to do that
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I want to write a program that will run a few lines on any piece of data or string upon copying to clipboard, is there a way to do this? I cant find much information about it.
I found https://pyperclip.readthedocs.io/en/latest/index.html
It has the pyperclip.waitForPaste() function, which should do exactly what you want. I had issues trying it with Linux Fedora, but it should be no problem on most Systems.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I've made a program to create meal plans that fulfill the recommended nutritional intake. I've gotten it to run, but it's giving results that violate the constraints, and I'm not sure why. How would I ensure the output stays within the necessary constraints? Any help would be appreciated.
Code and Spreadsheets: https://drive.google.com/drive/folders/1kMAmUPQBP_mmKnAkQxnUft-EzufRuPRE
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am trying to understand python time (mainly so I can get the program to wait). When I run these 3 lines:
while True:
time.sleep(1)
print("BREAK")
I get the error:
NameError: name 'time' is not defined
What is the problem?
simply type import time before your code, this will fix the problem.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Can I know this information across python?, for example, the name of the card graphic, processor, audio, mother board ....
There isn't anything in Python itself. You can detect what OS you're on via the platform module. Otherwise
See also:
How can I return system information in Python?
If you're on Windows, you can probably use PyWin32 to get some of this information. See the following recipe to get an idea of some of the stuff you can get:
http://code.activestate.com/recipes/511491-getting-system-information-under-windows/
I also wrote a little about this regarding getting Windows system information here:
http://www.blog.pythonlibrary.org/2010/01/27/getting-windows-system-information-with-python/
You might be able to use HAL:
http://www.daniweb.com/software-development/python/threads/300786/how-to-get-graphics-card-details-in-python
I have also found the psutil project very helpful. I also came across PyCPU, although I'm unsure what its status is.
For Linux (and probably Mac), you'll probably have to use system commands called via Python's subprocess module and parse the result(s).