Sunday, 2 November 2014


Hi Freddie,

I added a print status statement just above the conditional statement
within the _errcheck function of the clblas.py module.  I invoked PyFR as
before; however, I'm not seeing that a status is being printed out that
would correspond to anything within the clBLAS header file as you
describe.  It appears that PyFR is having an issue loading clBLAS
altogether.  The latest stack trace follows below:

pyfr-sim -n 100 -b opencl -p run couette_flow_2d.pyfrm couette_flow_2d.ini


Traceback (most recent call last):

  File "/Users/zdavis/Applications/PyFR/pyfr/scripts/pyfr-sim", line 112,
in <module>

    main()

  File "/usr/local/lib/python2.7/site-packages/mpmath/ctx_mp.py", line
1301, in g

    return f(*args, **kwargs)

  File "/Users/zdavis/Applications/PyFR/pyfr/scripts/pyfr-sim", line 82, in
main

    backend = get_backend(args.backend, cfg)

  File "/Users/zdavis/Applications/PyFR/pyfr/backends/__init__.py", line
11, in get_backend

    return subclass_where(BaseBackend, name=name.lower())(cfg)

  File "/Users/zdavis/Applications/PyFR/pyfr/backends/opencl/base.py", line
75, in __init__

    self._providers = [k(self) for k in kprovs]

  File "/Users/zdavis/Applications/PyFR/pyfr/backends/opencl/clblas.py",
line 66, in __init__

    self._wrappers = ClBLASWrappers()

  File "/Users/zdavis/Applications/PyFR/pyfr/backends/opencl/clblas.py",
line 14, in __init__

    lib = load_library('clBLAS')

  File "/Users/zdavis/Applications/PyFR/pyfr/ctypesutil.py", line 23, in
load_library

    raise OSError('Unable to load {0}'.format(name))

OSError: Unable to load clBLAS

Exception AttributeError: "'OpenCLClBLASKernels' object has no attribute
'_wrappers'" in <bound method OpenCLClBLASKernels.__del__ of
<pyfr.backends.opencl.clblas.OpenCLClBLASKernels object at 0x10721d590>>
ignored



I have the clBLAS library and header files installed at /usr/local/lib64
and /usr/local/include, respectively.  I have this library path added to my
DYLD_LIBRARY_PATH.  It appears that pyopencl v2014.1 installed via pip
correctly.  Is there perhaps another environment variable that I need to
set in order for PyFR to recognize the OpenCL and clBLAS library
installations?

Best Regards,



Zach

On Sun, Nov 2, 2014 at 11:55 AM, Freddie Witherden <[email protected]>
wrote:

> Hi Zach,
>
> On 02/11/14 19:47, Zach Davis wrote:
> > I'm back with another question.  I was attempting to compare and
> > contrast the advantages and/or disadvantages with the various backends
> > available.  However, I seem to be encountering a runtime error with
> > clBLAS which I was hoping someone might be able to interpret and assist
> > with.  I'm running PyFR v0.2.3.  I've included the invocation and
> > corresponding stack trace for your review.  Any input you might be able
> > to provide as to the root cause would be greatly appreciated.
>
> I've not yet got around to enumerating the various clBLAS status codes.
>  For the moment can you add "print status" before L59 of
> pyfr/backends/opencl/clblas.py:
>
>
> <
> https://github.com/vincentlab/PyFR/blob/develop/pyfr/backends/opencl/clblas.py#L59
> >
>
> which will output the (non-zero) return status.  Then compare this value
> to those in the clblasStatus enumeration in clBLAS.h:
>
>   <https://github.com/clMathLibraries/clBLAS/blob/master/src/clBLAS.h#L123
> >
>
> and we'll know what's wrong.
>
> Regards, Freddie.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyFR Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> Visit this group at http://groups.google.com/group/pyfrmailinglist.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.

Reply via email to