mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Moved tests
This commit is contained in:
16
tests/hello_world.cu
Normal file
16
tests/hello_world.cu
Normal 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