Skip to content

Commit

Permalink
conditionally include cuda_profiler_api.h (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
adammoody authored Aug 16, 2023
1 parent c2b0736 commit 58aed65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions megatron/fused_kernels/scaled_softmax_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_fp16.h>
#ifndef __HIP_PLATFORM_HCC__
#include <cuda_profiler_api.h>
#endif
#include <ATen/cuda/CUDAContext.h>
#include <torch/extension.h>
#include "scaled_masked_softmax.h"
Expand Down

0 comments on commit 58aed65

Please sign in to comment.