NSYS launch Julia causes conflicts in certain .dll files on win11

I used the recently released Nsight Systems 2023.3.1 and managed to successfully trace Julia with the following settings:

  1. I used the std streams workaround by setting “EnableStdOutErrCapture=false” in C:\Program Files\NVIDIA Corporation\Nsight Systems 2023.3.1\target-windows-x64\config.ini.
  2. I started an admin terminal console and used the following command line: “c:\Program Files\NVIDIA Corporation\Nsight Systems 2023.3.1\target-windows-x64\nsys.exe” profile -t cuda C:\Users\dofek\AppData\Local\Programs\Julia-1.9.2\bin\julia.exe

The absolute path in step #2 is necessary because nsys does not search for target paths in the Path environment variable. This is a known issue and will be fixed in a future release.