hip
stringlengths 140
3.32k
| cuda
stringlengths 84
3.33k
|
---|---|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <stdint.h>
#include "core/providers/rocm/shared_inc/rocm_utils.h"
namespace onnxruntime {
namespace rocm {
template <typename T>
hipError_t ReverseSequenceCudaImpl(
hipStream_t stream,
const T* x_data,
const int64_t* seq_len_data,
T* y_data,
const int batch_size,
const int max_seq_len,
const int element_size,
const bool time_major);
} // namespace rocm
} // namespace onnxruntime
### |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <stdint.h>
#include "core/providers/cuda/shared_inc/cuda_utils.h"
namespace onnxruntime {
namespace cuda {
template <typename T>
cudaError_t ReverseSequenceCudaImpl(
cudaStream_t stream,
const T* x_data,
const int64_t* seq_len_data,
T* y_data,
const int batch_size,
const int max_seq_len,
const int element_size,
const bool time_major);
} // namespace cuda
} // namespace onnxruntime
### |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <memory>
#include "core/providers/providers.h"
struct OrtROCMProviderOptions;
struct OrtROCMProviderOptionsV2;
namespace onnxruntime {
// defined in provider_bridge_ort.cc
struct CudaProviderFactoryCreator {
static std::shared_ptr<IExecutionProviderFactory> Create(const OrtROCMProviderOptions* provider_options);
static std::shared_ptr<IExecutionProviderFactory> Create(const OrtROCMProviderOptionsV2* provider_options);
};
} // namespace onnxruntime
### |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <memory>
#include "core/providers/providers.h"
struct OrtCUDAProviderOptions;
struct OrtCUDAProviderOptionsV2;
namespace onnxruntime {
// defined in provider_bridge_ort.cc
struct CudaProviderFactoryCreator {
static std::shared_ptr<IExecutionProviderFactory> Create(const OrtCUDAProviderOptions* provider_options);
static std::shared_ptr<IExecutionProviderFactory> Create(const OrtCUDAProviderOptionsV2* provider_options);
};
} // namespace onnxruntime
### |