My interpreter be unable to find the pyOpenCL function "create_some_context".

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jory R Ferrell
    New Member
    • Jul 2011
    • 62

    My interpreter be unable to find the pyOpenCL function "create_some_context".

    Uhm...."Why might my interpreter be unable to find the pyOpenCL function 'create_some_co ntext'." Is what I meant to write. Anyways...

    I both manually installed (simply pasted the files into the python directory) and used the 64-bit Windows binary install by Christoph Gohlke:



    The interpreter also seems to throw errors for all other example/tutorial code I have tried. The same problem-child module seems to be "_cl". Is it most likely something I am doing wrong? I used the default install path during install, and it still did not work. I have tried to manually download the _cl module but cant seem to find it.

    Code:
    import pyopencl
    ctx = cl.create_some_context()
    #This example returns the following: ImportError: No module named _cl
  • Jory R Ferrell
    New Member
    • Jul 2011
    • 62

    #2
    Hmm...just found the following: pyopencl\__init __.py:10: UserWarning: It looks like you are importing PyOpenCL from its source directory. This likely won't work.
    warn("It looks like you are importing PyOpenCL from "

    Comment

    Working...