Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions challenges/easy/43_count_array_element/starter/starter.cu

This file was deleted.

22 changes: 0 additions & 22 deletions challenges/easy/43_count_array_element/starter/starter.mojo

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions challenges/easy/44_count_2d_array_element/starter/starter.cu

This file was deleted.

22 changes: 0 additions & 22 deletions challenges/easy/44_count_2d_array_element/starter/starter.mojo

This file was deleted.

4 changes: 4 additions & 0 deletions challenges/medium/43_count_array_element/starter/starter.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <cuda_runtime.h>

// input, output are device pointers
extern "C" void solve(const int* input, int* output, int N, int K) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from gpu.host import DeviceContext
from gpu.id import block_dim, block_idx, thread_idx
from memory import UnsafePointer
from math import ceildiv

# input, output are device pointers
@export
def solve(input: UnsafePointer[Int32], output: UnsafePointer[Int32], N: Int32, K: Int32):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import torch
import triton
import triton.language as tl


# input, output are tensors on the GPU
def solve(input: torch.Tensor, output: torch.Tensor, N: int, K: int):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <cuda_runtime.h>

// input, output are device pointers
extern "C" void solve(const int* input, int* output, int N, int M, int K) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from gpu.host import DeviceContext
from gpu.id import block_dim, block_idx, thread_idx
from memory import UnsafePointer
from math import ceildiv

# input, output are device pointers
@export
def solve(input: UnsafePointer[Int32], output: UnsafePointer[Int32], N: Int32, M: Int32, K: Int32):
pass