lessthanoptimal / Java-Matrix-Benchmark

Java Matrix Benchmark is a tool for evaluating Java linear algebra libraries for speed, stability, and memory usage.
http://lessthanoptimal.github.io/Java-Matrix-Benchmark/
GNU General Public License v3.0
56 stars 10 forks source link

Can't make directories to save results - error on Windows 7 #8

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello,

I just tried to run the benchmark on windows 7, but I get the exception message "Can't make directories to save results" at jmbench.tools.runtime.RuntimeBenchmark.saveSystemInfo(RuntimeBenchmark.java:105)

Java version: jdk1.8.0_121

lessthanoptimal commented 7 years ago

Which branch are you running? If you're not using the SNAPSHOT you should switch to that. Also look at the readme/instructions. Things have changed a bit.

ghost commented 7 years ago

I just downloaded the project here (on the 24th feb 2017) via the clone function as a zip file (master branch I guess, didn't see a SNAPSHOT branch though...)

I then followed the README.MD instructions, put Jeigen-onefat.jar and jna-4.1.0.jar into /external/jeigen/libs/, run "gradle createRuntimeJars", run "gradle benchmarkJar".

I run java -jar benchmark.jar and saw, that for running the runtime benchmark, I need to run

java -jar benchmark.jar runtime which I did. The help section shows up and is confusing me. It tells me, that the only mandatory option is the FixedMemory one, which is not listed in the tool. The only memory setting that is listed is called --Memory, so I tried:

java -jar benchmark.jar runtime --Memory=4096

Which gives me the message:

Exception in thread "main" java.lang.IllegalArgumentException: Can't make directories to save results. at jmbench.tools.runtime.RuntimeBenchmark.saveSystemInfo ...

Edit: I run the code from the directory E:\Download\javaMatrixBenchmark, so no spaces or special characters involved.

Edit2: Also cloning the repository with git and doing the above steps gives me the same error.

lessthanoptimal commented 7 years ago

Think I found the error. Windows doesn't like colons in file names right? I was trying to create a directory with colons in the file name. Pull the most recent version and see if that fixes it.

BTW your right that there's no SNAPSHOT. Forgot that on this project I'm not doing that. Probably because there isn't a stable version yet on git.

ghost commented 7 years ago

Alright, the new version is running fine now, issue is solved.

Thank you!

lessthanoptimal commented 7 years ago

I should add this to the documentation, but it takes a LONG time if you do the full benchmark. 10 days about. --Quick cuts it down a lot. I need to run that again to see how long it takes with the new code