Skip to content

Commit

Permalink
Unified README w.r.t backends
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Nov 15, 2013
1 parent 350dbc8 commit 88dfdca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ compiler driver `nvcc` has to be in executable PATH and usable at runtime.

VexCL transparently works with multiple compute devices that are present in the
system. A VexCL context is initialized with a device filter, which is just a
functor that takes a reference to `cl::Device` and returns a `bool`. Several
functor that takes a reference to `vex::device` and returns a `bool`. Several
[standard filters][filters] are provided, but one can easily add a custom
functor. Filters may be combined with logical operators. All compute devices
that satisfy the provided filter are added to the created context. In the
Expand Down Expand Up @@ -102,11 +102,12 @@ compute device without need to recompile the program.
## <a name="memory-allocation"></a>Memory allocation

The `vex::vector<T>` class constructor accepts a const reference to
`std::vector<cl::CommandQueue>`. A `vex::Context` instance may be conveniently
converted to this type, but it is also possible to initialize the command
queues elsewhere, thus completely eliminating the need to create a
`vex::Context`. Each command queue in the list should uniquely identify a
single compute device.
`std::vector<vex::command_queue>`. A `vex::Context` instance may be
conveniently converted to this type, but it is also possible to initialize the
command queues elsewhere (e.g. with the OpenCL backend `vex::command_queue` is
typedefed to `cl::CommandQueue`), thus completely eliminating the need to
create a `vex::Context`. Each command queue in the list should uniquely
identify a single compute device.

The contents of the created vector will be partitioned across all devices that
were present in the queue list. The size of each partition will be
Expand Down
1 change: 1 addition & 0 deletions vexcl/backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ namespace vex {
#endif

namespace vex {
using backend::device;
using backend::command_queue;
using backend::command_queue_properties;
using backend::error;
Expand Down

0 comments on commit 88dfdca

Please sign in to comment.