# GPU CI testing

**URL:** <https://discourse.mc-stan.org/t/gpu-ci-testing/2572>\
**Category:** Developers\
**Created:** [November 21, 2017, 9:25pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572 "2017-11-21T21:25:55Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [February 12, 2018, 10:03pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/21 "2018-02-12T22:03:36Z")

</div>

¯\_(ツ)\_/¯

Can you chmod as root to give everyone access to `libopencl.so`? I think that would do it

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [February 12, 2018, 10:17pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/22 "2018-02-12T22:17:15Z")

</div>

It was not installed systemwide, but is now. It is technically named

```
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1

```

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [May 26, 2018, 4:19pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/23 "2018-05-26T16:19:53Z")

</div>

Has anything changed with sundials downstream?

The current GPU branch is failing because the windows computer cannot find some sundials functions it needs. Searching for ‘N\_VMake\_Serial’ on the link below will show what I’m talking about

[http://d1m1s1b1.stat.columbia.edu:8080/job/Stan/job/downstream%20tests/421/execution/node/89/log/](http://d1m1s1b1.stat.columbia.edu:8080/job/Stan/job/downstream%20tests/421/execution/node/89/log/)

Not sure how to resolve this so any help would be v appreciated

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [May 26, 2018, 4:47pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/24 "2018-05-26T16:47:59Z")

</div>

Yes, it has. I’ll take a look later.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [May 26, 2018, 4:48pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/25 "2018-05-26T16:48:19Z")

</div>

Is the pull request up to date with develop?

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [May 26, 2018, 4:48pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/26 "2018-05-26T16:48:39Z")

</div>

It was last night I’ll rn

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [May 26, 2018, 4:49pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/27 "2018-05-26T16:49:45Z")

</div>

Just merged the latest updates, but they were all for MPI so I’m not sure if that will solve my issue

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [May 29, 2018, 12:39am UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/29 "2018-05-29T00:39:28Z")

</div>

It looks like Stan needs to be updated. Will get on that.

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [May 29, 2018, 2:45pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/30 "2018-05-29T14:45:10Z")

</div>

Ty!

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [June 7, 2018, 2:30pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/31 "2018-06-07T14:30:59Z")

</div>

Jenkins seems to be throwing an error because my email changed.

```
Not sending mail to user [my_email_address] with no permission to view Math Pipeline » PR-885 #11Sending email to: [my_email_address]

remote file operation failed: /Users/Shared/Jenkins/gelman-group-mac/workspace/Math_Pipeline_PR-885-44NXYESDMGOQXZOKNHAZLVBDHULVNPUBLA57ANR6E66GEWV6FDHQ at hudson.remoting.Channel@3b2b5bda:gelman-group-mac: hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on gelman-group-mac failed. The channel is closing down or has closed down

```

Does anyone have access to Jenkins today and can update my email address to be recognized? I can dm you my email to add.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [June 7, 2018, 2:34pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/32 "2018-06-07T14:34:46Z")

</div>

I don’t think that build is failing because your email changed - emailing happens after a build fails. I have a PR to print messages surrounding any email failures so that people aren’t confused, but develop is broken. Also I don’t think there’s a place to like, add a person’s email to Jenkins…? I guess somehow your github email and what Jenkins thinks is your github email got out of sync, but I don’t think there’s a place where you can set that…

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [June 7, 2018, 2:35pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/33 "2018-06-07T14:35:44Z")

</div>

It looks like the Mac stopped responding immediately after starting the GPU tests?

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [June 7, 2018, 2:41pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/34 "2018-06-07T14:41:47Z")

</div>

Though the compilation worked fine. So I suspect that the process segfaulted or something?

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [June 7, 2018, 2:44pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/35 "2018-06-07T14:44:32Z")

</div>

> It looks like the Mac stopped responding immediately after starting the GPU tests?

If you go to this page and ctrl + f for

```no-highlight
[Unit with GPU] make -j16 test/unit/math/rev/scal/fun/trigamma_test test/unit/math/rev/scal/fun/trunc_test 

```

at the link below

[http://d1m1s1b1.stat.columbia.edu:8080/blue/rest/organizations/jenkins/pipelines/Math%20Pipeline/branches/PR-885/runs/11/log/?start=0](http://d1m1s1b1.stat.columbia.edu:8080/blue/rest/organizations/jenkins/pipelines/Math%20Pipeline/branches/PR-885/runs/11/log/?start=0)

it looks like it fails right below where it tries to run deleteDir. I’m not really sure why, could it be a permissions error somehow? I can try to change my email back to my old one (tbh I don’t even remember changing it but I must have)

Error I’m seeing is

```no-highlight
[Pipeline] [Unit with GPU] sh
[Pipeline] [Unit with GPU] junit
Post stage
[Pipeline] [Unit with GPU] retry
[Pipeline] [Unit with GPU] {
[Pipeline] [Unit with GPU] deleteDir
[Pipeline] [Unit with GPU] }
[Unit with GPU] ERROR: Execution failed
[Unit with GPU] java.io.EOFException

```

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [June 7, 2018, 3:01pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/36 "2018-06-07T15:01:30Z")

</div>

I think that ‘sh’ is running ./runTests.py on the GPU stuff and then immediately failing; see these views:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/2/273242a3845f7fd85000c1bc170f06c4bc6bfbca.png)

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/e/e2bc0d358992b8a9c5990dd3868c3ac94d80a9b7.jpg)

I really thought people would look at the first error instead of the last more than they have been… lol

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [June 7, 2018, 9:05pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/37 "2018-06-07T21:05:47Z")

</div>

Oh interesting. We haven’t touched the Jenkins or makefile for this PR. Do you know what else would cause that?

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [June 8, 2018, 4:28am UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/38 "2018-06-08T04:28:32Z")

</div>

I suspect that the binary linking and trying to use opencl is segfaulting. I imagine that could be due to permissions or some other device related stuff? I’m not sure. I can try to get you ssh access to try it out on the machine, assuming it works locally?

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [June 8, 2018, 1:52pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/39 "2018-06-08T13:52:36Z")

</div>

Yeah everything was running fine locally. If you can get me an ssh that would be great!

---

<div class="post-metadata">

**Author:** ![stevebronder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/stevebronder/32/17242_2.png) [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Post date:** [June 8, 2018, 5:33pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/40 "2018-06-08T17:33:32Z")

</div>

Odd, I just merged master into the gpu branch and now it’s failing on the MPI tests?

[http://d1m1s1b1.stat.columbia.edu:8080/blue/organizations/jenkins/Math%20Pipeline/detail/PR-885/12/pipeline/79](http://d1m1s1b1.stat.columbia.edu:8080/blue/organizations/jenkins/Math%20Pipeline/detail/PR-885/12/pipeline/79)

There’s a bunch of warnings, but this is the first error I’m seeing

```

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: more than one input file specified (lib/boost_1.66.0/stage/lib/libboost_mpi.dylib and Pipeline/branches/PR-885/workspace/lib/boost_1.66.0/stage/lib)

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input

make: *** [lib/boost_1.66.0/stage/lib/libboost_mpi.dylib] Error 1

```

Looking over the changes we don’t mess with anything in the makefile so I think this is a Jenkins thing. If you can pm me the ssh stuff I can go take a look at this.

---

<div class="post-metadata">

**Author:** ![wds15](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/wds15/32/908_2.png) [@wds15](https://discourse.mc-stan.org/u/wds15)\
**Post date:** [June 8, 2018, 7:57pm UTC](https://discourse.mc-stan.org/t/gpu-ci-testing/2572/41 "2018-06-08T19:57:09Z")

</div>

About 24h’s ago we merged some updates I did to the MPI make stuff into develop… and looking at the error you are getting, there is actually a mistake in the makefiles which is triggered by the Jenkins setup as there is a space in the absolute path. I will fix that tomorrow morning… or you just do it on your branch. What you need to do is to add in the line 76 and 82 the right quotation to `$(BOOS_LIB_ABS)` which needs to read as `"$(BOOST_LIB_ABS)"`. Sorry for that.

[Previous page](https://discourse.mc-stan.org/t/gpu-ci-testing/2572.md?page=1)

[Next page](https://discourse.mc-stan.org/t/gpu-ci-testing/2572.md?page=3)
