enjalot / adventures_in_opencl Goto Github PK
View Code? Open in Web Editor NEWA tutorial series for learning OpenCL
Home Page: http://enja.org
License: MIT License
A tutorial series for learning OpenCL
Home Page: http://enja.org
License: MIT License
part1/cll.h comment on line ~24 calls the destructor a constructor.
The website was down and I found these links:
part1.5/main.cpp:29: error: 'exit' was not declared
header with declaration needed
or better
replace "exit(0)" with "return 0"
platform Linux 2.6.31-gentoo-r10 #11 SMP, i686-pc-linux-gnu-4.3.4
I'm trying to execute the second Python example code (adventures_in_opencl / python / part2 / main.py
), but I got an error:
Traceback (most recent call last):
File "main.py", line 135, in <module>
p2 = window()
File "main.py", line 58, in __init__
self.cle = part2.Part2(num, dt)
File "/home/anka-rybalko/Downloads/adventures_in_opencl/python/part2/part2.py", line 15, in __init__
self.clinit()
File "/home/anka-rybalko/Downloads/adventures_in_opencl/python/part2/part2.py", line 89, in clinit
+ get_gl_sharing_context_properties(), devices=None)
File "/usr/lib64/python2.7/site-packages/pyopencl-2014.1-py2.7-linux-x86_64.egg/pyopencl/tools.py", line 422, in get_gl_sharing_context_properties
from OpenGL import platform as gl_platform, GLX, WGL
File "/usr/lib/python2.7/site-packages/OpenGL/WGL/__init__.py", line 1, in <module>
from OpenGL.raw.WGL.VERSION.WGL_1_0 import *
File "/usr/lib/python2.7/site-packages/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 48, in <module>
@_p.types(_cs.c_int,_cs.HDC,ctypes.POINTER(_cs.PIXELFORMATDESCRIPTOR))
File "/usr/lib/python2.7/site-packages/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 13, in _f
return _p.createFunction( function,_p.PLATFORM.WGL,'WGL_VERSION_WGL_1_0',error_checker=_errors._error_checker)
AttributeError: 'GLXPlatform' object has no attribute 'WGL'
Is it a problem of my PC or of the code? Could you tell how it can be fixed?
Thanks in advance!
P.S. I use OpenSUSE OS
P.P.S. Thank you for your tutorial, it's really helpful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.