我在我的C++程序中使用了一些HDF5文件,我对该H5Dopen功能有疑问.是否可以在给定文件中获取hdf5数据集的维度?
hid_t file, dset;
herr_t status;
file = H5Fopen (filenameField, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen (file, "/xField", H5P_DEFAULT);
Run Code Online (Sandbox Code Playgroud)
在我做下一行之前,我想得到的尺寸dset.
status = H5Dread (dset, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &readBuf[0]);
Run Code Online (Sandbox Code Playgroud)
我才发现H5Dget_storage_size,但这不适合我的情况.
有谁知道怎么做?
目前我正在尝试优化一些cuda内核......
如果使用选项 --ptxas-options=-v 进行编译,我将获得有关寄存器 %co 的信息。
就我而言,我总是得到一些额外的行,这对我来说没有意义:
ptxas : info : Compiling entry function '_Z20backprojLinTexInterpP7double3S0_S0_P7double2iiiiiS2_PdPf' for 'sm_20'
ptxas : info : Function properties for _Z20backprojLinTexInterpP7double3S0_S0_P7double2iiiiiS2_PdPf
8 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas : info : Used 47 registers, 32 bytes smem, 112 bytes cmem[0], 56 bytes cmem[16]
ptxas : info : Function properties for __internal_trig_reduction_slowpathd
40 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
Run Code Online (Sandbox Code Playgroud)
第 1 行到第 4 行对我来说很清楚,但最后一行是什么?
谷歌在这里没有帮助......我已经尝试过了。
有人知道这些行的含义是什么吗?我为程序中的每个编译内核获取它们