possible bug?
I noticed a probable dynamic stream allocation bug ...
Coul you confirm?
here is a simple test program
// Test_GPU_1.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include "brook/Stream.h"
brook::Stream<int3> *stream_A;
void create_streams( int width, int height ) {
unsigned int dims[2] = { height, width };
stream_A= new brook::Stream<int3>(2,dims); // allocation doubtful...
}
int _tmain(int argc, _TCHAR* argv[])
{
create_streams(576,720);
return 0;
}
Noticed that as a resultof allocation, here is part of the stream_A structure :
stream_A
_refcount =1
_rank=2
_ dimensions (should have 2 items)
720 OK
576 is missing !!!!