# Tag Info

## New answers tagged windows

4

Your RunProcess works properly in all examples and System settings are fine. As @Oleksandr R. has admitted, date is a shell builtin on Windows. So there are commands date /t and time /t in cmd Windows shell that can be used instead. In Mathematica for Windows: \$SystemShell == "cmd" (* True *) So something like: RunProcess[{"cmd", "/c", "date ...

8

This is a known problem with nodejs on Windows. The stdout stream is an asynchronous stream and is not always being flushed before the process exits. A work-around is to perform an explicitly synchronous write to stdout (i.e. file descriptor #1): Import["!node -e require('fs').writeSync(1,'test')", "Text"] (* test *) The bug report referenced above ...

2

Let's override the Run so it stops acting up. Needs["NETLink"]; InstallNET[]; Unprotect[Run]; Run[x___] := Module[{t, p}, LoadNETType["System.IO.Directory"]; DirectorySetCurrentDirectory[Directory[]]; t = NETNew["System.Diagnostics.Process"]; t@StartInfo@FileName = "C:\\Windows\\System32\\cmd.exe"; t@StartInfo@Arguments = "/c " <> ...

0

This is another way of doing it: Import["!powershell.exe \"Get-Help\"", "TEXT"]

3

I have a Dell 17R SE with nVIDIA GeForce GT650M with 3D capabilities and Mathematica 10.3 on Windows 10 64bit. Today I got an answer on my email to support@wolfram.com saying there was no issue on the machine of the support engineer. So I again let Mathematica install the CUDA paclet. The download was extremely slow. But in the end version 10.2.0.3 was ...

2

This is decidedly not an answer, so please do not give me the bounty. It is also not a solution to the problem, for the simple reason that my C++, Win32, and LibraryLink skills are virtually nonexistent, and certainly not sufficient to write this robustly. Rather, my intent is simply to show that the answer given by Eric Towers contains some serious ...

7

This is just a comment with code. Here is a very simple multithreaded compiled function (not a sum calculation) to prove that the issue has nothing to do with Total specifically, but is a more general (and unfortunate) issue with Timing: fc = Compile[{{x, _Real, 0}, {n, _Integer, 0}}, Block[{y = x}, Do[y = Tan[y], {n}]; y], Parallelization -> True, ...

13

There are a couple of issues at play. One is that the implementation of Total has changed, and it is now using several threads in parallel. Furthermore, there are platform-specific differences in how Timing works. On Windows, it will only measure the CPU time used by the main kernel thread, excluding any subthreads. On Linux, and I believe OS X, it will ...

Top 50 recent answers are included