Added makefile

This commit is contained in:
Martin committed 2024-11-14 18:02:32 +01:00
1 parent 1974d7bcc0
commit ed3adbd4c4
16 files changed
+38 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#include <iostream>
#include <cuda_runtime.h>
__global__ void hello_from_gpu() {
printf("Hello from GPU!\n");
}
int main() {
hello_from_gpu<<<1, 1>>>();
cudaDeviceSynchronize();
// Reset device
cudaDeviceReset();
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.