[
https://issues.apache.org/jira/browse/MAHOUT-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15927597#comment-15927597
]
ASF GitHub Bot commented on MAHOUT-1955:
----------------------------------------
GitHub user andrewpalumbo opened a pull request:
https://github.com/apache/mahout/pull/294
[MAHOUT-1955]: ViennaCL jars are not being picked up by the shell startup
script
As reported by Nikolai Sakharnykh, ViennaCL jars were not being picked up
by the shell:
After building with `mvn clean install -Pviennacl -Phadoop2`
launching the shell with:
`MASTER=local[4] mahout spark-shell`
and loading launching: `scala>
timeSparseDRMMMul(1000,1000,1000,1,.02,1234L)`
```17/03/15 09:36:17 INFO RootSolverFactory$: Creating
org.apache.mahout.viennacl.opencl.GPUMMul solver
17/03/15 09:36:17 INFO RootSolverFactory$: Unable to create class GPUMMul:
attempting OpenMP version
17/03/15 09:36:17 INFO RootSolverFactory$: Creating
org.apache.mahout.viennacl.openmp.OMPMMul solver
17/03/15 09:36:17 INFO RootSolverFactory$:
org.apache.mahout.viennacl.openmp.OMPMMul$
17/03/15 09:36:17 INFO RootSolverFactory$: Unable to create class OMPMMul:
falling back to java version```
Issue is that `mahout-native-viennacl_2.10` and
`mahout-native-viennacl-omp_2.10` were not being copied to the `$MAHOUT_HOME`
base dir, and thus not being picked up by `load-shell.sh`.
By modifying the poms to copy jars to the base dir. This problem is fixed:
```
MASTER=local[4] mahout spark-shell
{...}
17/03/16 00:01:27 INFO backend.RootSolverFactory$: Creating
org.apache.mahout.viennacl.opencl.GPUMMul solver
17/03/16 00:01:27 INFO backend.RootSolverFactory$: Successfully created
org.apache.mahout.viennacl.opencl.GPUMMul solver
17/03/16 00:01:27 INFO opencl.GPUMMul$: Using gpuRWCW method
{...}
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewpalumbo/mahout MAHOUT-1955b
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/mahout/pull/294.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #294
----
commit 0e549333bc715e2783c067b2ed34b77ae046edb7
Author: Andrew Palumbo <[email protected]>
Date: 2017-03-16T06:21:26Z
[MAHOUT-1955] ViennaCL jars are not being picked up by the shell startup
script
----
> Viennacl jars are not being picked up by the shell startup script
> -----------------------------------------------------------------
>
> Key: MAHOUT-1955
> URL: https://issues.apache.org/jira/browse/MAHOUT-1955
> Project: Mahout
> Issue Type: Bug
> Components: Mahout spark shell
> Affects Versions: 0.13.0
> Reporter: Andrew Palumbo
> Assignee: Andrew Palumbo
> Priority: Blocker
> Fix For: 0.13.0
>
>
> When building for ViennaCL for OpenCL or OpenMP:
> {code}
> $ mvn clean install -Pviennacl -Phadoop2 -DskipTests
> {code}
> or
> {code}
> $ mvn clean install -Pviennacl-omp -Phadoop2 -DskipTests
> {code}
> The {{mahout-native-*_2.10.jar}} s are not being picked up by the shell which
> are now in the top-level directory after the build. Fix is to add a copy
> plugin to the {{viennacl}} and {{viennacl-omp}} {{pom.xml}} s.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)