[PyCUDA] OpenGL and new functions
Tomasz Rybak
bogomips at post.pl
Sat Nov 13 12:55:09 PST 2010
Dnia 2010-11-01, pon o godzinie 22:17 +0100, Tomasz Rybak pisze:
[cut]
> >
> > >
> > > Function pycuda.tools.make_default_context contains
> > > repeated code checking for presence of CUDA device:
> > >
> > > def make_default_context():
> > > ndevices = cuda.Device.count()
> > > if ndevices == 0:
> > > errmsg = "No CUDA enabled device found. Please check your
> > > installation."
> > > raise RuntimeError, errmsg
> > >
> > > ndevices = cuda.Device.count()
> > > if ndevices == 0:
> > > raise RuntimeError("No CUDA enabled device found. "
> > > "Please check your installation.")
> > >
> > > Why? Is that omission, or does this double checking serve
> > > some purpose?
> >
> > Whoops. Fixed.
> >
>
I still cannot see this fix in public git repository - can you push it?
I have worked on patch.
I have added comments to old functions/classes about deprecation.
I have created 4 classes:
registered_object - base class
registered_buffer inheriting from registered_object - class for buffers
registered_image inheriting from registered_object - class for textures
registered_mapping -
Function:
map_regiestered_object - creates mapping for objects (buffers
and images).
Data types
map_flags - whether to map RO, RW, or Write Only
map_targets - for textures
Please give some feedback.
--
Tomasz Rybak <bogomips at post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gl.diff
Type: text/x-patch
Size: 10869 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20101113/d38cc1c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20101113/d38cc1c0/attachment.pgp>
More information about the PyCUDA
mailing list