<div dir="ltr">Got it. Thanks! I'll use the latest development version.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 7, 2015 at 11:13 AM, Eric Larson <span dir="ltr"><<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ahh, sorry -- you'll need to be on at least 0.9 if you want to manually disable CUDA support. I forgot that's where we added it. On 0.8 and earlier we always tried to import PyCUDA.<div><br></div><div>If you really need to use 0.8, you can uninstall scikits.cuda, or add a .py file higher up on your PYTHONPATH that it will try to import on the `scikits.cuda` line. I think I might have even made a patch to scikits-CUDA a year or so ago to fix that CUBLAS problem because I remember seeing it, so even upgrading to a newer version of `scikits.cuda` might be good enough to get you through.</div><div><br></div><div>HTH,</div><div>Eric</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 7, 2015 at 2:08 PM, Alan <span dir="ltr"><<a href="mailto:leggitta3@gmail.com" target="_blank">leggitta3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I thought it was using the development version, but it looks like it isn't (I must be having trouble with my PYTHONPATH). I still get the error when I set MNE_USE_CUDA=false.<br><br></div>Here's the full traceback<br><div><br><div>In [1]: import mne<br>/usr/local/lib/python2.7/dist-packages/scipy/spatial/__init__.py:91: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility<br> from .ckdtree import *<br>/usr/local/lib/python2.7/dist-packages/scipy/spatial/__init__.py:91: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility<br> from .ckdtree import *<br>/usr/local/lib/python2.7/dist-packages/scipy/spatial/__init__.py:92: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility<br> from .qhull import *<br>/usr/local/lib/python2.7/dist-packages/scipy/spatial/__init__.py:92: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility<br> from .qhull import *<br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/cuda.py:10: DeprecationWarning: The scikits.cuda namespace package is deprecated and will be removed in the future; please import the skcuda package instead.<br> from scikits.cuda import fft as cudafft<br>---------------------------------------------------------------------------<br>AttributeError Traceback (most recent call last)<br>/home/aleggitt/<ipython-input-1-39fc8b1a8697> in <module>()<br>----> 1 import mne<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/__init__.py in <module>()<br> 8 get_config, get_config_path, set_cache_dir,<br> 9 set_memmap_min_size)<br>---> 10 from .io.pick import (pick_types, pick_channels, pick_types_evoked,<br> 11 pick_channels_regexp, pick_channels_forward,<br> 12 pick_types_forward, pick_channels_cov,<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/io/__init__.py in <module>()<br> 10 <br> 11 from .proj import proj_equal, make_eeg_average_ref_proj<br>---> 12 from . import array<br> 13 from . import base<br> 14 from . import brainvision<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/io/array/__init__.py in <module>()<br> 3 # Author: Eric Larson <<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>><br><br> 4 <br>----> 5 from .array import RawArray<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/io/array/array.py in <module>()<br> 10 from ..constants import FIFF<br> 11 from ..meas_info import Info<br>---> 12 from ..base import _BaseRaw<br> 13 from ...utils import verbose, logger<br> 14 from ...externals.six import string_types<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/io/base.py in <module>()<br> 29 write_id, write_string)<br> 30 <br>---> 31 from ..filter import (low_pass_filter, high_pass_filter, band_pass_filter,<br> 32 notch_filter, band_stop_filter, resample)<br> 33 from ..parallel import parallel_func<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/filter.py in <module>()<br> 12 from .time_frequency.multitaper import dpss_windows, _mt_spectra<br> 13 from .parallel import parallel_func<br>---> 14 from .cuda import (setup_cuda_fft_multiply_repeated, fft_multiply_repeated,<br> 15 setup_cuda_fft_resample, fft_resample, _smart_pad)<br> 16 from .utils import logger, verbose, sum_squared<br><br>/usr/local/lib/python2.7/dist-packages/mne-0.9.git-py2.7.egg/mne/cuda.py in <module>()<br> 8 import pycuda.gpuarray as gpuarray<br> 9 from pycuda.driver import mem_get_info<br>---> 10 from scikits.cuda import fft as cudafft<br> 11 except (ImportError, OSError):<br> 12 # need OSError because scikits.cuda throws it if cufft not found<br><br><br>/usr/local/lib/python2.7/dist-packages/scikits/cuda/fft.py in <module>()<br> 17 CUFFT_COMPATIBILITY_FFTW_ALL<br> 18 <br>---> 19 import misc<br> 20 <br> 21 class Plan:<br><br>/usr/local/lib/python2.7/dist-packages/scikits/cuda/misc.py in <module>()<br> 15 <br> 16 import cuda<br>---> 17 import cublas<br> 18 <br> 19 try:<br><br>/usr/local/lib/python2.7/dist-packages/scikits/cuda/cublas.py in <module>()<br> 3887 <br> 3888 # CHPR2, ZHPR2<br><br>-> 3889 _libcublas.cublasChpr2.restype = int<br> 3890 _libcublas.cublasChpr2.argtypes = [ctypes.c_int,<br> 3891 ctypes.c_int,<br><br>/usr/lib/python2.7/ctypes/__init__.pyc in __getattr__(self, name)<br> 376 if name.startswith('__') and name.endswith('__'):<br> 377 raise AttributeError(name)<br>--> 378 func = self.__getitem__(name)<br> 379 setattr(self, name, func)<br> 380 return func<br><br>/usr/lib/python2.7/ctypes/__init__.pyc in __getitem__(self, name_or_ordinal)<br> 381 <br> 382 def __getitem__(self, name_or_ordinal):<br>--> 383 func = self._FuncPtr((name_or_ordinal, self))<br> 384 if not isinstance(name_or_ordinal, (int, long)):<br> 385 func.__name__ = name_or_ordinal<span><br><br>AttributeError: /usr/lib/x86_64-linux-gnu/libcublas.so: undefined symbol: cublasChpr2<br></span></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 6:49 PM, Eric Larson <span dir="ltr"><<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The latest `master` should only try to enable CUDA when you first try to use it instead of on import. I think that is also true even on the latest release (0.9). What version are you running?<div><br></div><div>In any case, you always set the env var `MNE_USE_CUDA=false`, or do the equivalent using `mne.set_config` to disable CUDA.<div><br></div><div>Eric</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Aug 6, 2015 at 7:20 PM, Alan <span dir="ltr"><<a href="mailto:leggitta3@gmail.com" target="_blank">leggitta3@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hey everyone,<br><br></div>I'm trying to import mne on a gpu enabled computed. I'm guess that cuda is not properly enabled because I get the following error when trying to import mne.<br><div><div><br>AttributeError: /usr/lib/x86_64-linux-gnu/libcublas.so: undefined symbol: cublasChpr2<br><br></div><div>Is there a way to disable cuda before I import mne?<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>-Alan<br></div></font></span></div></div>
<br></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>