Commit 4f603f6f authored by Daniel Hugo Campora Perez's avatar Daniel Hugo Campora Perez
Browse files

Update contributing.md

parent 09173352
...@@ -230,15 +230,15 @@ Reserve that host memory in `stream/sequence/src/HostBuffers.cu`: ...@@ -230,15 +230,15 @@ Reserve that host memory in `stream/sequence/src/HostBuffers.cu`:
Finally, create a visitor for your newly created algorithm. Create a containing folder structure for it in `stream/visitors/test/src/`, and a new file inside named `SaxpyVisitor.cu`. Insert the following code inside: Finally, create a visitor for your newly created algorithm. Create a containing folder structure for it in `stream/visitors/test/src/`, and a new file inside named `SaxpyVisitor.cu`. Insert the following code inside:
```clike ```clike
#include "StreamVisitor.cuh" #include "SequenceVisitor.cuh"
#include "Saxpy.cuh" #include "Saxpy.cuh"
template<> template<>
void SequenceVisitor::set_arguments_size<saxpy_t>( void SequenceVisitor::set_arguments_size<saxpy_t>(
saxpy_t::arguments_t arguments,
const RuntimeOptions& runtime_options, const RuntimeOptions& runtime_options,
const Constants& constants, const Constants& constants,
const HostBuffers& host_buffers, const HostBuffers& host_buffers)
argument_manager_t& arguments)
{ {
// Set arguments size // Set arguments size
int saxpy_N = 1<<20; int saxpy_N = 1<<20;
...@@ -249,9 +249,9 @@ void SequenceVisitor::set_arguments_size<saxpy_t>( ...@@ -249,9 +249,9 @@ void SequenceVisitor::set_arguments_size<saxpy_t>(
template<> template<>
void SequenceVisitor::visit<saxpy_t>( void SequenceVisitor::visit<saxpy_t>(
saxpy_t& state, saxpy_t& state,
const saxpy_t::arguments_t& arguments,
const RuntimeOptions& runtime_options, const RuntimeOptions& runtime_options,
const Constants& constants, const Constants& constants,
argument_manager_t& arguments,
HostBuffers& host_buffers, HostBuffers& host_buffers,
cudaStream_t& cuda_stream, cudaStream_t& cuda_stream,
cudaEvent_t& cuda_generic_event) cudaEvent_t& cuda_generic_event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment