yuchuli 1 éve
szülő
commit
747d17410b

+ 1 - 1
src/common/ndt_gpu/ndt_gpu.pro

@@ -63,7 +63,7 @@ SYSTEM_NAME = linux         # 自己系统环境 'Win32', 'x64', or 'Win64'
 
 SYSTEM_TYPE = 64           #操作系统位数 '32' or '64',
 
-CUDA_ARCH = sm_72          # cuda架构, for example 'compute_10', 'compute_11', 'sm_10'
+CUDA_ARCH = sm_72  #sm_72  # xavier 72  orin 87          # cuda架构, for example 'compute_10', 'compute_11', 'sm_10'
 
 NVCC_OPTIONS = --use_fast_math --compiler-options "-fPIC"
 

+ 2 - 2
src/common/ndt_gpu/ndt_gpu/common.h

@@ -11,8 +11,8 @@
 
 #define BLOCK_X 16
 #define BLOCK_Y 16
-//#define BLOCK_Z 4
-#define BLOCK_Z 1
+#define BLOCK_Z 4
+//#define BLOCK_Z 1
 
 #define SHARED_MEM_SIZE 3072
 #endif

+ 1 - 1
src/tool/adciv_record/adciv_record.pro

@@ -17,7 +17,7 @@ TEMPLATE = app
 # deprecated API in order to know how to port your code away from it.
 DEFINES += QT_DEPRECATED_WARNINGS
 
-
+QMAKE_CXXFLAGS +=  -g
 # You can also make your code fail to compile if you use deprecated APIs.
 # In order to do so, uncomment the following line.
 # You can also select to disable deprecated APIs only up to a certain version of Qt.

+ 1 - 0
src/tool/adciv_record/mainwindow.cpp

@@ -207,6 +207,7 @@ void MainWindow::UpdateData(const char * pdata, const int ndatasize, const unsig
 
 
     int i;
+ //   std::cout<<" ruv size: "<<mRUV.size()<<std::endl;
     for(i=0;i<mRUV.size();i++)
     {
         if(strcmp(mRUV.at(i).strname,strmemname) == 0)

+ 6 - 2
src/tool/adciv_record/recodfile.cpp

@@ -28,11 +28,15 @@ int RecodFile::WriteData(const char *str, int nsize)
 
 int RecodFile::get_path_availspace(const QString & path)
 {
+
 #ifdef OS_UNIX
     struct statfs diskInfo;
-    statfs(path.toUtf8().data(), &diskInfo);
+    std::cout<<" run hea1r. "<<std::endl;
+
+    statfs(path.toLatin1().data(), &diskInfo);
+    std::cout<<" run hear. "<<std::endl;
 
-    qDebug("%s 总大小:%.0lfMB 可用大小:%.0lfMB",path.toStdString().c_str(),(diskInfo.f_blocks * diskInfo.f_bsize)/1024.0/1024.0,(diskInfo.f_bavail * diskInfo.f_bsize)/1024.0/1024.0);
+    qDebug("%s 总大小:%.0lfMB 可用大小:%.0lfMB",path.toLatin1().data(),(diskInfo.f_blocks * diskInfo.f_bsize)/1024.0/1024.0,(diskInfo.f_bavail * diskInfo.f_bsize)/1024.0/1024.0);
     return (diskInfo.f_bavail * diskInfo.f_bsize)/1024.0/1024.0;
 #endif