ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenCL/OpenCL.pm
(Generate patch)

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.55 by root, Tue Apr 24 22:45:38 2012 UTC vs.
Revision 1.56 by root, Tue Apr 24 23:53:12 2012 UTC

552 552
553Returns all available OpenCL::Platform objects. 553Returns all available OpenCL::Platform objects.
554 554
555L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformIDs.html> 555L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformIDs.html>
556 556
557=item $ctx = OpenCL::context_from_type $properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = $print_stderr 557=item $ctx = OpenCL::context_from_type $properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $callback->($err, $pvt) = $print_stderr
558 558
559Tries to create a context from a default device and platform - never worked for me. 559Tries to create a context from a default device and platform type - never worked for me.
560 560
561L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> 561L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html>
562
563=item $ctx = OpenCL::context $properties, \@devices, $callback->($err, $pvt) = $print_stderr)
564
565Create a new OpenCL::Context object using the given device object(s). This
566function isn't implemented yet, use C<< $platform->context >> instead.
567
568L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html>
562 569
563=item OpenCL::wait_for_events $wait_events... 570=item OpenCL::wait_for_events $wait_events...
564 571
565Waits for all events to complete. 572Waits for all events to complete.
566 573
636 643
637=item @devices = $platform->devices ($type = OpenCL::DEVICE_TYPE_ALL) 644=item @devices = $platform->devices ($type = OpenCL::DEVICE_TYPE_ALL)
638 645
639Returns a list of matching OpenCL::Device objects. 646Returns a list of matching OpenCL::Device objects.
640 647
641=item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = $print_stderr) 648=item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $callback->($err, $pvt) = $print_stderr)
642 649
643Tries to create a context. Never worked for me, and you need devices explicitly anyway. 650Tries to create a context. Never worked for me, and you need devices explicitly anyway.
644 651
645L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> 652L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html>
646 653
647=item $ctx = $platform->context ($properties, @$devices, $notify = $print_stderr) 654=item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr)
648 655
649Create a new OpenCL::Context object using the given device object(s)- a 656Create a new OpenCL::Context object using the given device object(s)- a
650CL_CONTEXT_PLATFORM property is supplied automatically. 657CL_CONTEXT_PLATFORM property is supplied automatically.
651 658
652L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> 659L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines