How do I install Cuda 8 under Ubuntu 17.04, although it is not listed as supported? I need it because the following code causes nvcc 9 not to terminate:
#include <thrust/device_vector.h>
using thrust::device_vector;
struct T : public thrust::binary_function<int, int, int> {
// m=1000 compile loops. m=10 compiles.
static const int m = 1000;
int d[m];
__host__ __device__
int operator()(const int i, const int j) const {
return i+d[j];
}
};
int main(void) {
device_vector<int> a(10), b(10), c(10);
T f;
transform(a.begin(), a.end(), b.begin(), c.begin(), f);
}
This is a MWE tediously extracted from a much larger program.
Previously, the larger program compiled and ran fine. Indeed, an executable compiled under cuda 8 in an earlier Ubuntu release runs fine in the cuda 9 environment.
Thanks.
My other options would be to revert my whole system to an earlier Ubuntu release or to rework my algorithm to find something that nvcc can handle.