Skip to content

Commit

Permalink
A quick-bugfix release
Browse files Browse the repository at this point in the history
  which solves the issue with loading native speedups from JAR
  files
  • Loading branch information
superbobry committed Jun 27, 2016
1 parent 64420d3 commit bf38a76
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ viktor Changelog

Here you can see the full list of changes between each viktor release.

Version 0.3.1
-------------

Bugfix release, released on June 27th 2016

- Fixed loading native libraries from the JAR file.
- Fixed error handling on unsupported architectures.

Version 0.3.0
-------------

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repositories {
}

dependencies {
compile 'org.jetbrains.bio:viktor:0.3.0'
compile 'org.jetbrains.bio:viktor:0.3.1'
}

```
Expand Down Expand Up @@ -72,7 +72,7 @@ No extra configuration is required for running the tests from Gradle
$ ./gradlew test
```

However, you might need to alter `java.library.path` to run the tests from
However, you might need to alter `java.library.path` to run the tests from
the IDE. The following Java command line option should work for IDEA

```bash
Expand All @@ -85,10 +85,10 @@ Publishing
You can do it with a one-liner

```bash
./gradlew clean assemble generatePomFileForMavenJavaPublication bintrayUpload
./gradlew clean assemble generatePomFileForMavenJavaPublication bintrayUpload
```

Make sure to set Bintray credentials (see API key section
Make sure to set Bintray credentials (see API key section
[here](https://bintray.com/profile/edit)) in `$HOME/.gradle/gradle.properties`.

```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.3.0
version=0.3.1

org.gradle.configureondemand=true
org.gradle.parallel=true
4 changes: 2 additions & 2 deletions src/main/kotlin/org/jetbrains/bio/viktor/Loader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ResourceLibrary(private val name: String) {
@Suppress("unchecked_cast")
fun install() {
val resource = System.mapLibraryName(name)
val inputStream = ResourceLibrary::class.java.getResourceAsStream(resource)
val inputStream = ResourceLibrary::class.java.getResourceAsStream("/$resource")
if (inputStream != null) {
val libraryPath = LIBRARY_DIR.resolve(resource)
Files.copy(inputStream, libraryPath, REPLACE_EXISTING)
Expand Down Expand Up @@ -67,7 +67,7 @@ internal object Loader {
useNative = true
}
}
} catch (e: Exception) {
} catch (e: UnsatisfiedLinkError) {
System.err.println(listOf(
"Native SIMD optimization of vector operations is not available.",
"Fallback Kotlin implementation will be used instead.").joinToString("\n"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/jetbrains/bio/viktor/StridedVector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun DoubleArray.asStrided(offset: Int = 0, size: Int = this.size): StridedVector
*
* [1, 4]
*
* Vectors with `stride` equal to 1 are caled called *dense*. The
* Vectors with `stride` equal to 1 are called called *dense*. The
* distinction is important because some of the operations can be
* significantly optimized for dense vectors.
*
Expand Down

0 comments on commit bf38a76

Please sign in to comment.