hip_helpers.h 423 Bytes
Newer Older
chenxi226's avatar
chenxi226 committed
1
2
3
4
5
6
7
8
9
10
11
// !!! This is a file automatically generated by hipify!!!
#include <ATen/dtk_macros.h>
// Parts of this code are from torchvision licensed under
// SPDX-FileCopyrightText: 2016 Soumith Chintala
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#define CUDA_1D_KERNEL_LOOP(i, n)                                \
  for (int i = (blockIdx.x * blockDim.x) + threadIdx.x; i < (n); \
       i += (blockDim.x * gridDim.x))