Codegen Compiler for gpucoder.stridedMatrixMultiplyAdd
    6 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi, I trie to use gpucoder.stridedMatrixMultiplyAdd to speed up my training. I run the example as:
A1 = coder.newtype('double',[15,42],[0 0]);
A2 = coder.newtype('double',[15,42],[0 0]);
B1 = coder.newtype('double',[42,30],[0 0]);
B2 = coder.newtype('double',[42,30],[0 0]);
alpha = 0.3;
inputs = {A1,B1,A2,B2,alpha};
cfg = coder.gpuConfig('lib');
cfg.GpuConfig.EnableCUBLAS = true;
cfg.GpuConfig.EnableCUSOLVER = true;
cfg.GenerateReport = true;
codegen -config cfg-args inputs myBatchMatMul
After that, I got an error: Unrecognized configuration argument
Use help codegen for more information on using this command.
Error using codegen 
After running the following codes, it looks that I have installed all the required toolboxes.  Can you help me to fix it? my cuda version is 11, toolkitversion 10.1, cuDNN 7.5
coder.checkGpuInstall
Compatible GPU           : PASSED 
CUDA Environment         : PASSED 
	Runtime   : PASSED 
	cuFFT     : PASSED 
	cuSOLVER  : PASSED 
	cuBLAS    : PASSED 
cuDNN Environment        : PASSED 
Basic Code Generation    : PASSED 
Basic Code Execution     : PASSED 
ans = 
  struct with fields:
                 gpu: 1
                cuda: 1
               cudnn: 1
            tensorrt: 1
        basiccodegen: 1
       basiccodeexec: 1
         deepcodegen: 1
        deepcodeexec: 0
    tensorrtdatatype: 1
           profiling: 1
0 件のコメント
採用された回答
  Hariprasad Ravishankar
    
 2020 年 8 月 31 日
        
      編集済み: Hariprasad Ravishankar
    
 2020 年 8 月 31 日
  
      Hello,
It looks like you missed a space after 'cfg'
Try adding a space after the 'cfg' in the codegen command as follows
codegen -config cfg -args inputs myBatchMatMul
Please note that GPU Coder, MATLAB R2020a only supports CUDA 10.2 and hence CUDA 11 may not be fully compatible with the release.
Hari
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Get Started with GPU Coder についてさらに検索
			
	製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

