Skip to content

MacOSX, CUDA, OS call failed or operation not supported on this OS #2029

@vfdev-5

Description

@vfdev-5

Hi,

I compiled PyTorch (master of 2 days ago) from sources on MacOSX 10.11 using the following command

NO_DISTRIBUTED=1 MACOSX_DEPLOYMENT_TARGET=10.11 CC=clang CXX=clang++ python3 setup.py install

The build and installation is successfull, however this tutorial ends up with the error :

THCudaCheck FAIL file=/Users/USER/pytorch-master_source/torch/lib/THC/generic/THCStorage.cu line=66 error=63 : OS call failed or operation not supported on this OS
Traceback (most recent call last):
  File "tensor_tutorial.py", line 141, in <module>
    x = x.cuda()
  File "/usr/local/lib/python3.5/site-packages/torch/_utils.py", line 65, in _cuda
    return new_type(self.size()).copy_(self, async)
  File "/usr/local/lib/python3.5/site-packages/torch/cuda/__init__.py", line 269, in _lazy_new
    return super(_CudaBase, cls).__new__(cls, *args, **kwargs)
RuntimeError: cuda runtime error (63) : OS call failed or operation not supported on this OS at /Users/USER/pytorch-master_source/torch/lib/THC/generic/THCStorage.cu:66

GPU is NVidia GT 750M, 2GB. I have installed CUDA 8.0 with CuDNN 5.1 which works perfectly with Theano, Tensorflow. Clang info :

Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix

If anyone know why I would receive such error, hints appreciated.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: dependency bugProblem is not caused by us, but caused by an upstream library we useneeds reproductionEnsure you have actionable steps to reproduce the issue. Someone else needs to confirm the repro.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions