Skip to content

Enable CUDA processing in PySyft#2735

Merged
iamtrask merged 6 commits intodevfrom
cuda
Nov 17, 2019
Merged

Enable CUDA processing in PySyft#2735
iamtrask merged 6 commits intodevfrom
cuda

Conversation

@midokura-silvia
Copy link
Contributor

@midokura-silvia midokura-silvia commented Nov 15, 2019

continued from #2690

Note that Travis is not testing the cuda part as cuda is (currently) not available.

Copy link
Contributor

@LaRiffle LaRiffle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if we could add cuda on travis?
I feel uncomfortable that the cuda test are not run in our CI:

test/torch/hook/test_hook.py::test_to SKIPPED                            [ 42%]
test/torch/hook/test_hook.py::test_cuda SKIPPED                          [ 42%]
test/torch/hook/test_hook.py::test_data SKIPPED                          [ 43%]
test/torch/hook/test_hook.py::test_param_data SKIPPED  

@iamtrask
Copy link
Member

This is indeed possible - but I wouldn't want to require this to run PySyft's tests by default. https://stackoverflow.com/questions/3087361/gpu-emulator-for-cuda-programming-without-the-hardware

@iamtrask iamtrask merged commit 08e61bb into dev Nov 17, 2019
@iamtrask iamtrask deleted the cuda branch November 17, 2019 09:22
@andrelmfarias
Copy link
Contributor

I know from a PyTorch contributor it is possible to test in GPU with CircleCI, but we would need a special plan for it.

midokura-silvia added a commit to midokura-silvia/PySyft that referenced this pull request Dec 4, 2019
* exclude tensor.data from hook to enable cuda processing

* test cuda usage in pysyft

* Directly call native_data (different from native_param_data)

* Update of black version

* Skip test if cuda is not available

* Exclude functions marked pytest.mark.skipif from coverage
cereallarceny pushed a commit that referenced this pull request Dec 4, 2019
* exclude tensor.data from hook to enable cuda processing

* test cuda usage in pysyft

* Directly call native_data (different from native_param_data)

* Update of black version

* Skip test if cuda is not available

* Exclude functions marked pytest.mark.skipif from coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants