Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU support in setup file #1

Open
wants to merge 7 commits into
base: master
from
Open

Conversation

@kareem1925
Copy link

kareem1925 commented Jan 20, 2020

Problem

Regarding the usage of qulacs GPU backend, the setup file doesn't actually detect if cuda is on the system and installs the CPU version of qulacs. Hence, a small change was made in the setup file to detect the presence of Cuda and then install qulacs-gpu.

Solution

Right now, you can execute the following commandline:
pip install git+https://github.com/kareem1925/pennylane-qulacs@GPU_support
to install everything.

Note

Please update readme file before merging so that people can use the original command directly:
pip install git+https://github.com/soudy/pennylane-qulacs@master

Tests

I tested the new branch on both CPU and GPU machines and everything works perfectly smooth

kareem1925 added 7 commits Jan 20, 2020
adding a new setup file for gpu support
making setup.py platform agnostic
no need for it because of the new adjustment in setup.py
Including a temporary method for gpu installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.