Closed fhorse closed 8 years ago
BTW, my version of BIDMach/BIDMat is built on RHEL6.5, kernel version 2.6.32, cuda version 7.0, if that helps.
OK. The problem is the dimension of the array being allocated. It exceeds the int limit in Buffer.java:
189 Buffer(int mark, int pos, int lim, int cap) { // package-private
190 if (cap < 0)
191 throw new IllegalArgumentException("Negative capacity: " + cap);
192 this.capacity = cap;
193 limit(lim);
194 position(pos);
195 if (mark >= 0) {
196 if (mark > pos)
197 throw new IllegalArgumentException("mark > position: ("
198 + mark + " > " + pos + ")");
199 this.mark = mark;
200 }
201 }
I'm running into a error in GMat's allocation during a matrix multiply operation that's run in the bidmach/scala repl:
But if the column dimensions are different, it works:
The relevant code is in GMat.scala, line 1661:
Notice that:
The latter is the value that the cudaMallocHost() was complaining about. The version of the code I'm using is: