Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nums11 committed Sep 19, 2023
1 parent 3625fe3 commit 4d1b6ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
22 changes: 0 additions & 22 deletions include/onnxruntime/core/providers/dml/dml_provider_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,28 +119,6 @@ struct OrtDmlApi {
*/
ORT_API2_STATUS(GetD3D12ResourceFromAllocation, _In_ OrtAllocator* provider, _In_ void* dml_resource, _Out_ ID3D12Resource** d3d_resource);


//ORT_API2_STATUS(FreeGPUAllocation_2, _In_ void* dml_resource);

//ORT_API2_STATUS(GetNPUDevice, _Out_ int* device_id);

//ORT_API2_STATUS(GetMLDevice, _In_ bool npu_first, _Out_ int* device_ids);

// enum class Ordering {
// SAME, // DXGI/DXCore as is today...
// NONE, // Take the first one
// GPUS_FIRST,
// NPUS_FIRST
// };

// Ordering foo[3][3] = {
// // Default, HighPerformance, LowPower
// /*None*/ { Ordering::GPUS_FIRST, Ordering::GPUS_FIRST, Ordering::NPUS_FIRST },
// /*Gpu*/ { Ordering::SAME, Ordering::SAME , Ordering::SAME },
// /*Npu*/ { Ordering::NONE, Ordering::NONE , Ordering::NONE },

// }

// null means default
ORT_API2_STATUS(OrtSessionOptionsAppendExecutionProvider_DML2, _In_ OrtSessionOptions* options, OrtDmlDeviceOptions* device_opts);
};
Expand Down
2 changes: 0 additions & 2 deletions onnxruntime/core/providers/dml/dml_provider_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ ORT_API_STATUS_IMPL(FreeGPUAllocation_2, _In_ void* ptr) {

ORT_API_STATUS_IMPL(OrtSessionOptionsAppendExecutionProvider_DML2, _In_ OrtSessionOptions* options, OrtDmlDeviceOptions* device_opts) {
API_IMPL_BEGIN
//options->provider_factories.push_back(onnxruntime::DMLProviderFactoryCreator::Create(device_id));

OrtDmlPerformancePreference p = device_opts->p;
OrtDmlDeviceFilter f = device_opts->f;

Expand Down

0 comments on commit 4d1b6ae

Please sign in to comment.