Skip to content

Commit

Permalink
fin
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Feb 4, 2022
1 parent f63c8cd commit 53e6aaf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 09/01_texture/08/CudaArray.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct CudaArray : DisableCopy {
copy3DParams.dstPtr = make_cudaPitchedPtr((void *)_data, m_dim.x * sizeof(T), m_dim.x, m_dim.y);
copy3DParams.extent = make_cudaExtent(m_dim.x, m_dim.y, m_dim.z);
copy3DParams.kind = cudaMemcpyDeviceToHost;
printf("%p %d %d %d\n", _data, m_dim.x, m_dim.y, m_dim.z);
checkCudaErrors(cudaMemcpy3D(&copy3DParams));
}

Expand Down Expand Up @@ -102,7 +103,7 @@ template <class T>
struct CudaTexture : CudaSurface<T> {
struct Parameters {
cudaTextureAddressMode addressMode{cudaAddressModeBorder};
cudaTextureFilterMode filterMode{cudaFilterModeLinear};
cudaTextureFilterMode filterMode{cudaFilterModePoint};
cudaTextureReadMode readMode{cudaReadModeElementType};
bool normalizedCoords{false};
};
Expand Down
2 changes: 1 addition & 1 deletion 09/01_texture/08/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ struct SmokeSim : DisableCopy {
};

int main() {
unsigned int n = 128;
unsigned int n = 256;
SmokeSim sim(n);

{
Expand Down
Binary file modified 09/slides.pptx
Binary file not shown.
1 change: 1 addition & 0 deletions tools/images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ffmpeg -y -f image2 -r 24 -i /tmp/%04d.png -vcodec mpeg4 /tmp/out.mp4

0 comments on commit 53e6aaf

Please sign in to comment.