Help me write a fused softmax CUDA kernel in Julia using CUDA.jl.
Jump to turn (10)
- 1Help me write a fused softmax CUDA kernel in Julia using CUDA.jl.
- 2Does this kernel assign each column of the input to a block?
- 3Write the code to ensure that the input is column major not row major
- 4But julia is by default column major which would lead to a very slow implementat
- 5Can you explain what the above code is doing step by step
- 6What is a grid in CUDA?
- 7What is a lane in warpReduceSum?
- 8Is the local\data in the softmax\block\reduce on global memory or shared memory?
- 9The code above uses local\data of the size of number of threads in a block. What
- 10BTW you claim local\data is shared mem above but you never used the shared memor
- User
Help me write a fused softmax CUDA kernel in Julia using CUDA.jl.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.