added some ptx options
This commit is contained in:
@@ -171,7 +171,7 @@ struct Uniform
|
||||
shptr[chunk][elem] = value;
|
||||
}
|
||||
};
|
||||
#elif 1
|
||||
#elif 0
|
||||
template<typename T, int N>
|
||||
struct Uniform
|
||||
{
|
||||
@@ -184,7 +184,7 @@ struct Uniform
|
||||
|
||||
__device__ inline Uniform()
|
||||
{
|
||||
#if 0
|
||||
#if 1
|
||||
if (programIndex == 0)
|
||||
data = new T[N];
|
||||
ptr[0] = __shfl(ptr[0], 0);
|
||||
@@ -200,7 +200,7 @@ struct Uniform
|
||||
}
|
||||
__device__ inline ~Uniform()
|
||||
{
|
||||
#if 0
|
||||
#if 1
|
||||
if (programIndex == 0)
|
||||
delete data;
|
||||
#else
|
||||
@@ -821,4 +821,5 @@ RenderStatic(InputHeader inputHeaderPtr[],
|
||||
inputHeaderPtr, inputDataPtr, visualizeLightCount,
|
||||
framebuffer_r, framebuffer_g, framebuffer_b);
|
||||
cudaDeviceSynchronize();
|
||||
cudaDeviceSynchronize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user