2011-03-15 7 views
2

私は単純な(テスト済みの)pycudaアプリを持っており、それをプロファイルしようとしています。LinuxでPyCudaコードをプロファイルする方法は?

NV_Warning: Ignoring the invalid profiler config option: fb0_subp0_read_sectors 
Error : Profiler data file '/home/jguy/proj/gpu/tdbp/pyArch/temp_compute_profiler_0_0.csv' does not contain profiler output.This can happen when: 
a) Profiling is disabled during the entire run of the application. 
b) The application does not invoke any kernel launches or memory transfers. 
c) The application does not release resources (contexts, events, etc.). The program needs to be modified to properly free up all resources before termination. 

私も「CUDA_PROFILEパイソンscriptname.py arg1の」を実行しようとした:私は、このエラーを発し、プログラムを11回実行し、NVIDIAの計算ビジュアルプロファイラを、試してみました。場合、それは便利です

NV_Warning: Ignoring the invalid profiler config option: instructions 
# CUDA_PROFILE_LOG_VERSION 2.0 
# CUDA_DEVICE 0 GeForce GTX 560 Ti 
# CUDA_PROFILE_CSV 1 
# TIMESTAMPFACTOR fffff7003e38fec8 
gpustarttimestamp,method,gputime,cputime,occupancy 

、私はまた、これらの環境を設定しVARSています:それは含まれているファイルを作成し

CUDA_PROFILE_CONFIG=temp_cuda_profiler.conf 
CUDA_PROFILE_CSV=1 
CUDA_PROFILE_LOG=profile.csv 
CUDA_PROFILE=1 

をしてtemp_cuda_profiler.confが

は時間グーグルれ

gpustarttimestamp 
instructions 
が含まれていますとか、ぐらい。運がない。あなたが提供できるどんな洞察力もありがとう!

答えて

1

pycuda.autoinitのインポートを使用する場合、pycuda.autoinit.context.detach()をプログラムの最後に置くことが重要です。これで問題は解決しました。

関連する問題