Unverified Commit 71573f3c authored by Maxim Evtush's avatar Maxim Evtush Committed by GitHub
Browse files

Docs - Fix typos in documentation and code files (#686)


Co-authored-by: default avatarYifan Xiong <yifan.xiong@microsoft.com>
Co-authored-by: default avatarHongtao Zhang <garyworkzht@gmail.com>
parent 064ca1d0
...@@ -193,7 +193,7 @@ double DecodeVideo(size_t i, const std::vector<OptimizedNvDecoder *> &vDec, cons ...@@ -193,7 +193,7 @@ double DecodeVideo(size_t i, const std::vector<OptimizedNvDecoder *> &vDec, cons
<< " duration:" << elapsedTime << " frames:" << *pnFrame << std::endl; << " duration:" << elapsedTime << " frames:" << *pnFrame << std::endl;
return elapsedTime / 1000.0f; return elapsedTime / 1000.0f;
} catch (const std::exception &e) { } catch (const std::exception &e) {
std::cerr << "Exception in deocding: " << e.what() << std::endl; std::cerr << "Exception in decoding: " << e.what() << std::endl;
return 0; return 0;
} }
} }
......
...@@ -184,15 +184,15 @@ void GPUMemRwBw::CreatePipeline() { ...@@ -184,15 +184,15 @@ void GPUMemRwBw::CreatePipeline() {
*/ */
void GPUMemRwBw::LoadAssets() { void GPUMemRwBw::LoadAssets() {
// Prepare root signature, root parameter can be a table, root descriptor or root constants. // Prepare root signature, root parameter can be a table, root descriptor or root constants.
const int nParamter = 3; const int nParameter = 3;
CD3DX12_ROOT_PARAMETER slotRootParameter[nParamter]; CD3DX12_ROOT_PARAMETER slotRootParameter[nParameter];
// Bind the SRV, CBV and UAV descriptor tables to the root parameters. // Bind the SRV, CBV and UAV descriptor tables to the root parameters.
slotRootParameter[0].InitAsShaderResourceView(0); slotRootParameter[0].InitAsShaderResourceView(0);
slotRootParameter[1].InitAsConstantBufferView(0); slotRootParameter[1].InitAsConstantBufferView(0);
slotRootParameter[2].InitAsUnorderedAccessView(0); slotRootParameter[2].InitAsUnorderedAccessView(0);
// Create the root signature. // Create the root signature.
// A root signature is an array of root parameters. // A root signature is an array of root parameters.
CD3DX12_ROOT_SIGNATURE_DESC rootSigDesc(nParamter, slotRootParameter, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_NONE); CD3DX12_ROOT_SIGNATURE_DESC rootSigDesc(nParameter, slotRootParameter, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_NONE);
ComPtr<ID3DBlob> serializedRootSig = nullptr; ComPtr<ID3DBlob> serializedRootSig = nullptr;
ComPtr<ID3DBlob> errorBlob = nullptr; ComPtr<ID3DBlob> errorBlob = nullptr;
HRESULT hr = D3D12SerializeRootSignature(&rootSigDesc, D3D_ROOT_SIGNATURE_VERSION_1, HRESULT hr = D3D12SerializeRootSignature(&rootSigDesc, D3D_ROOT_SIGNATURE_VERSION_1,
......
...@@ -99,7 +99,7 @@ class GPUMemRwBw { ...@@ -99,7 +99,7 @@ class GPUMemRwBw {
void LoadAssets(); void LoadAssets();
/** /**
* @brief Allocate resouce on both CPU side and GPU side and construct a array of buffers with given length. * @brief Allocate resource on both CPU side and GPU side and construct a array of buffers with given length.
* @param numElement the length of data array. * @param numElement the length of data array.
*/ */
void PrepareDataAndBuffer(SIZE_T numElement); void PrepareDataAndBuffer(SIZE_T numElement);
......
...@@ -160,7 +160,7 @@ def _process_raw_result(self, idx, raw_output): ...@@ -160,7 +160,7 @@ def _process_raw_result(self, idx, raw_output):
# If socket error or exception happens on TCPing, add result values as failed # If socket error or exception happens on TCPing, add result values as failed
suc = 0 suc = 0
fail = self._args.count fail = self._args.count
mininum = 0.00 minimum = 0.00
maximum = 0.00 maximum = 0.00
average = 0.00 average = 0.00
rate = 0 rate = 0
...@@ -179,13 +179,13 @@ def _process_raw_result(self, idx, raw_output): ...@@ -179,13 +179,13 @@ def _process_raw_result(self, idx, raw_output):
suc = int(res[labels.index('Successed')]) suc = int(res[labels.index('Successed')])
fail = int(res[labels.index('Failed')]) fail = int(res[labels.index('Failed')])
rate = float(res[labels.index('Success Rate')].strip('%')) rate = float(res[labels.index('Success Rate')].strip('%'))
mininum = float(res[labels.index('Minimum')].strip('ms')) minimum = float(res[labels.index('Minimum')].strip('ms'))
maximum = float(res[labels.index('Maximum')].strip('ms')) maximum = float(res[labels.index('Maximum')].strip('ms'))
average = float(res[labels.index('Average')].strip('ms')) average = float(res[labels.index('Average')].strip('ms'))
self._result.add_result(host + '_successed_count', suc) self._result.add_result(host + '_successed_count', suc)
self._result.add_result(host + '_failed_count', fail) self._result.add_result(host + '_failed_count', fail)
self._result.add_result(host + '_success_rate', rate) self._result.add_result(host + '_success_rate', rate)
self._result.add_result(host + '_time_min', mininum) self._result.add_result(host + '_time_min', minimum)
self._result.add_result(host + '_time_max', maximum) self._result.add_result(host + '_time_max', maximum)
self._result.add_result(host + '_time_avg', average) self._result.add_result(host + '_time_avg', average)
except Exception as e: except Exception as e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment