cu-compressed-matrix-test.cc File Reference
#include <iostream>
#include <vector>
#include <cstdlib>
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "cudamatrix/cu-matrix-lib.h"
Include dependency graph for cu-compressed-matrix-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

void CuCompressedMatrixTestSign ()
 
void CuCompressedMatrixTestNonnegative ()
 
void CuCompressedMatrixTestSymmetric ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 165 of file cu-compressed-matrix-test.cc.

References kaldi::CuCompressedMatrixTestNonnegative(), kaldi::CuCompressedMatrixTestSign(), kaldi::CuCompressedMatrixTestSymmetric(), rnnlm::i, and kaldi::SetVerboseLevel().

165  {
166  SetVerboseLevel(1);
167  // we don't run this test if CUDA is not compiled in, since
168  // you can't instantiate class CuCompressedMatrix in that case.
169 #if HAVE_CUDA == 1
170  CuDevice::Instantiate().SelectGpuId("yes");
171  for (int32 i = 1; i < 10; i++) {
175  }
176 
177 #endif
178  return 0;
179 }
kaldi::int32 int32
void CuCompressedMatrixTestSign()
void SetVerboseLevel(int32 i)
This should be rarely used, except by programs using Kaldi as library; command-line programs set the ...
Definition: kaldi-error.h:64
void CuCompressedMatrixTestSymmetric()
void CuCompressedMatrixTestNonnegative()