cmake-init 0.1.0

Initialize CMake project at speed
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <hip/hip_runtime.h>

#include <stdio.h>

__global__ void hello_kernel() {
    printf("Hello from HIP kernel!\n");
}

int main() {
    // Launch the kernel with one block and one thread
    hello_kernel<<<1, 1>>>();

    // Wait for the GPU to finish
    hipDeviceSynchronize();

    return 0;
}