|
#pragma once |
|
|
|
#ifndef C10_USING_CUSTOM_GENERATED_MACROS |
|
|
|
|
|
|
|
#ifndef C10_CUDA_NO_CMAKE_CONFIGURE_FILE |
|
#include <c10/cuda/impl/cuda_cmake_macros.h> |
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32 |
|
#if defined(C10_CUDA_BUILD_SHARED_LIBS) |
|
#define C10_CUDA_EXPORT __declspec(dllexport) |
|
#define C10_CUDA_IMPORT __declspec(dllimport) |
|
#else |
|
#define C10_CUDA_EXPORT |
|
#define C10_CUDA_IMPORT |
|
#endif |
|
#else |
|
#if defined(__GNUC__) |
|
#define C10_CUDA_EXPORT __attribute__((__visibility__("default"))) |
|
#else |
|
#define C10_CUDA_EXPORT |
|
#endif |
|
#define C10_CUDA_IMPORT C10_CUDA_EXPORT |
|
#endif |
|
|
|
|
|
#ifdef C10_CUDA_BUILD_MAIN_LIB |
|
#define C10_CUDA_API C10_CUDA_EXPORT |
|
#else |
|
#define C10_CUDA_API C10_CUDA_IMPORT |
|
#endif |
|
|
|
|
|
|
|
|
|
#define C10_COMPILE_TIME_MAX_GPUS 16 |
|
|