I have always used cuda-memcheck under Windows 7.
Unfortunately, on my laptop I'm now getting the following error message:
========= Internal Memcheck Error: Memcheck failed initialization as profiler is attached. Try unsetting CUDA_PROFILE or disabling the profiler.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\windows\system32\nvcuda.dll (cuD3D11CtxCreate + 0x103dbd) [0x11fe1d]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll (_cudaRegisterDeviceFunction + 0x5eb2) [0xdaf2]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll (_cudaRegisterDeviceFunction + 0x600d) [0xdc4d]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll (_cudaRegisterDeviceFunction + 0x6576) [0xe1b6]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll (_cudaRegisterDeviceFunction + 0x3609) [0xb249]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll [0x3137]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\cudart32_55.dll (cudaMalloc + 0xb5) [0x152d5]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\StackOverflow.exe (main + 0x59) [0x2289]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\StackOverflow.exe (__tmainCRTStartup + 0x1bf) [0xa3ef]
========= Host Frame:C:\Users\user\Documents\Project\StackOverflow\Debug\StackOverflow.exe (mainCRTStartup + 0xf) [0xa21f]
========= Host Frame:C:\windows\syswow64\KERNEL32.dll (BaseThreadInitThunk + 0x12) [0x1336a]
========= Host Frame:C:\windows\SysWOW64\ntdll.dll (RtlInitializeExceptionChain + 0x63) [0x39f72]
========= Host Frame:C:\windows\SysWOW64\ntdll.dll (RtlInitializeExceptionChain + 0x36) [0x39f45]
=========
========= ERROR SUMMARY: 1 error
I have checked about the existence of a CUDA_PROFILE environmental variable, but it is not defined neither as a system nor as a user variable. I have anyway set
Set #CUDA_PROFILE = 0
but with no effect. I'm using CUDA 5.5.
I have tried using cuda-memcheck also on other two systems, a 4-GPU, NVIDIA K20c system and a system having a single Tesla C2050 card. On the former I have the same problem, on the latter cuda-memcheck works fine.
The fact that the error says the profile is attached makes me think that the problem could be due to a Visual Studio attachments to process that I have previously done on the two machines cuda-memcheck is not working on. The machine cuda-memcheck is working on has been freshly installed, instead. However, I have checked that NSIGHT_CUDA_DEBUGGER environmental variable used for such a kind of attachments is set to 0. Also. I couldn't spot any appearent process that could still be attached to the debugger.
Could anyone suggest any hint to solve the problem?
I ran into a similar with CUDA 6.5 and 7.0. The error message was slightly more general (which may be due to the different version - I'm not sure about that). It said
Internal Memcheck Error: Memcheck failed initialization as some other tools is currently attached. Please make sure that nvprof and Nsight Visual Studio Edition are not being run simultaneously
(Of course, there was no other tool running at this time).
Setting the COMPUTE_PROFILE environment variable to 0 did not help. (Actually, it was not set at all for me in the first place).
Finally, I figured out that the odd behavior was caused by other environment variables: The toolkit/profiler obviously sets two additional environment variables during the installation:
CUDA_INJECTION32_PATH=C:\Program Files (x86)\NVIDIA Corporation\Nsight Visual Studio Edition 4.1\Monitor\Common\Injection32\Nvda.Cuda.Injection.dll
CUDA_INJECTION64_PATH=C:\Program Files (x86)\NVIDIA Corporation\Nsight Visual Studio Edition 4.1\Monitor\Common\Injection64\Nvda.Cuda.Injection.dll
I'm not sure what they are doing (most likely, they establish some "hook" that is required for profiling). In any case: Removing these environment variables (or setting them to be empty by executing
set CUDA_INJECTION32_PATH=
set CUDA_INJECTION64_PATH=
at the command prompt where cuda-memcheck should be launched) caused cuda-memcheck to work properly again.
UPDATE
I was getting the same error on my Windows 2008 R2 and Windows 7 machines with Geforce GTX 780 GPUs. Though the procedure explained above worked for me, I found out that CUDA_INJECTION32_PATH and CUDA_INJECTION64_PATH environment variables are added and set by Nsight Monitor when its setting "CUDA->Use this monitor for CUDA attach" is to true by the user.
In order to fix the initialization problem of cuda-memcheck, I simply turned off the setting "CUDA->Use this monitor for CUDA attach" in Nsight monitor. This deleted the CUDA_INJECTION32_PATH and CUDA_INJECTION64_PATH environment variables. Thereafter I opened a new session of command prompt to reload new environment variables and tested that cuda-memcheck worked properly.
When experiencing the problem with cuda-memcheck, my system environmental variable COMPUTE_PROFILE was set to 1. I had just to set it to 0 to have cuda-memcheck work correctly. Incidentally, I have to thank #Vjas for suggesting checking nvprof --profile-all-processeswhich complained about the setting of CUDA_PROFILE. I have solved the problem on my laptop and on the Kepler system by setting COMPUTE_PROFILE=0.
I have today no access to the Tesla system, on which cuda-memcheck was properly working, to check about the setting of COMPUTE_PROFILE. I will update this answer as soon as I have such an information.
EDIT
I have checked that the environmental variable COMPUTE_PROFILE was not defined on the system where cuda-memcheck was originally working.
The error I ran into was just Internal Memcheck Error: Initialization failed when trying to use the cuFFT library. As per the nvidia forum the solution is to set the CUDA_MEMCHECK_PATCH_MODULE environment variable.
export CUDA_MEMCHECK_PATCH_MODULE=1
Related
I am getting the following eroor while connecting ESP32
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Multiple libraries were found for "WiFi.h"
In file included from C:\Users\Ayan Atal\Desktop\College\SEM 6\Minor\Ultrasonic\Ultrasonic.ino:3:0:
Used: C:\Users\Ayan Atal\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
C:\Users\Ayan Atal\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
There is library name conflicts. I usually solve this by first uninstalling Arduino IDE and then deleting arduino libraries, and then reinstalling everything from scratch. Sometimes using older versions of arduino IDE also had helped.
Thank You,
Have a Great Day,
Naveen.
Ive spent the last month searching off and on for a solution, unsuccessfully
I have an underlying driver called Timberline Data on what we have to use as a production windows machine. For years I was using this driver for pulling data from a database. Then one day a windows update was released, something broke and I re-installed the application which includes the dll.
Now I'm getting the following error
The same code runs on my developer machine that i have not ran a windows update on for fear it will break.
I have read online that other people have experienced the same system error IM003 (160) ... 126 with other ODBC drivers, but it looks like they experience issues because a network path was incorrectly mapped. Mine is installed on the C:\ drive...
here's what I know:
it's a 32 bit dll
i'm running 32 bit ruby
OS is Windows 10 (64 bit)
to avoid using ODBC directly, I build a connection string, which I have confirmed works successfully in other ways on the machine experiencing the issues. So I know the dll is not broken.
the same ruby code runs on the developer machine, so there is no issue with syntax, the issue is something in windows or with the installation
>> filepath = '\\\\SAGE\\Mapped_Drive\\Company\\'
=> "\\\\SAGE\\Mapped_Drive\\CAE\\"
>> uri = driver_builder(filepath)
=> "DBI:ODBC:Driver={Timberline Data};dbq=\\\\SAGE\\Mapped_Drive\\Company\\;standardmode=1;SilentLogin=1;KeepFilesOpen=0;MaxColSupport=255;DatabaseType=1;UID=...;PWD=...;"
>> DBI.connect(uri)
DBI::DatabaseError: IM003 (160) Specified driver could not be loaded due to system error 126: The specified module could not be found. (Timberline Data, C:\Program Files (x86)\Timberline Office\Shared\tssimba.dll).
C:/Ruby30/lib/ruby/gems/3.0.0/gems/dbd-odbc-0.2.5/lib/dbd/odbc/driver.rb:36:in `rescue in connect'
C:/Ruby30/lib/ruby/gems/3.0.0/gems/dbd-odbc-0.2.5/lib/dbd/odbc/driver.rb:15:in `connect'
C:/Ruby30/lib/ruby/gems/3.0.0/gems/dbi-0.4.5/lib/dbi/handles/driver.rb:33:in `connect'
C:/Ruby30/lib/ruby/gems/3.0.0/gems/dbi-0.4.5/lib/dbi.rb:148:in `connect'
(ripl):3:in `<main>'
both me and several other co workers are beside ourselves on where the issue is
Open Power BI desktop and follow below steps:
After clearing cache log off and login machine/VM.
I have installed OMNeT++ 5.6.2 and added the INET 4.2.1 framework.
I followed the setup instructions as per the doc given and compiled and did make.
On running ./aloha I seem to encounter parameter unassigned error as follows :
Setting up Cmdenv...
Loading NED files from .: 4
Preparing for running configuration General, run #0...
Assigned runID=General-0-20201227-14:11:08-9189
Setting up network "Aloha"...
<!> Error: The simulation wanted to ask a question, set cmdenv-interactive=true to allow it: "Enter parameter 'Aloha.host[0].iaTime' (unassigned):" -- in module (aloha::Host) Aloha.host[0] (id=3), during network setup
End.
Even on running a different example from INET, from examples, adhoc, seem to get a similar error as follows :
Preparing for running configuration General, run #0...
Assigned runID=General-0-20201223-00:37:38-95889
Setting up network "Net80211"...
<!> Error: The simulation wanted to ask a question, set cmdenv-interactive=true to allow it: "Enter parameter 'Net80211.numHosts' (unassigned):" -- in module (omnetpp::cModule) Net80211 (id=1), during network setup
End.
Simulation terminated with exit code: 1
I did set cmdenv-intercative=true in the config file and yet the error does not go away.
Please do let me know if you need any additional information. Any help, direction or pointer to some resources would be greatly appreciated and will be really really helpful.
You need to set "cmdenv-intercative=true" for the [General] section.
I try to run check_drivesize on a windows server with nscp++.
I already setup check for RAM, CPU and Uptime all is working fine.
When i try to setup the check_drivesize i get back:
core Unknown command(s): check_drivesize available commands: commands
{, check_counter, check_cpu, check_memory, check_network,
check_os_version, check_pagefile, check_pdh, check_process,
check_service, check_uptime, checkcounter, checkcpu, checkmem,
checkprocstate, checkservicestate, checkuptime}, plugins {, 0}
c:\source\master\service\plugin_manager.cpp:475
This is not understandable to me, because the check is at opt5.ini enabled:
; Allow check disk
CheckDisk = 1
and the needed module is also present in the correct path:
C:\Program Files\NSClient++\modules\CheckDisk.dll
I was guided by the knowledge of the manufacturer, unfortunately the commands given there return all these errors.
Has anyone had this error or is he familiar with NSCP ++ and can help me?
Thank you very much.
I'm very new to SGX and wanted to start with something simple. Fortunately, I found this very basic tutorial. Unfortunately, as simple as it is, I can't get it to work. The code executes, but there are errors in the output.
[sgx_create_enclavew ..\urts\win\urts.cpp:195] Couldn't open file with CreateFile()
error 0x200f, failed to create enclave.
Buffertests:
Buffer before change: Hello World!
Buffer after change: Hello World!
Stringtests:
Returned Secret:
Saved Secret: My secret string
Load Secret:
Integertests:
secretIntValue first load: 0
saved a 1337 to the enclave.
secretIntValue second load after 1337 was saved: 0
error, failed to destroy enclave.
image of output
the tutorial says:
If you get the error SGX couldn't find the enclave file. The solution is to move the enclave_test_save.signed.dll into the same folder where the app_test_save.exe is located.
which I've tried, but it didn't solve the problem.
when I try to create the enclave using:
sgx_create_enclave(ENCLAVE_FILE, SGX_DEBUG_FLAG, &token, &updated, &eid, NULL);
it returns: SGX_ERROR_ENCLAVE_FILE_ACCESS
could the problem be a result of using a different version of Visual Studio? (The tutorial uses VS 2012, while I'm using VS 2015)
Did you run the application through command prompt or from IDE?
If you are using IDE, You need to change the debugging properties to $(OutDir) from $(ProjecttDir) under Project Properties->Configuration Properties->Debugging->Working Directory.(Both Enclave and Application) Select the Intel(R) SGX Debugger.
Disclaimer: I had the same error although under a different setting (Ubuntu, eclipse) so I am not sure to what extent this will help.
Before initialize_enclave() is called (which in turn calls sgx_create_enclave()), a chdir(absolutePath) command needs to be executed, where absolutePath needs to be the absolute path to where your executable is.
My error was due to a wrong path I used.
Thanks, I solved it. turns out I had to place enclave_test_save.signed.dll in the root folder with the .edl file and not with the .exe file.