Community RSS Feed
https://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag High-Performance Computing sorted by activeCUDADot possible issue in Mathematica 13.1
https://community.wolfram.com/groups/-/m/t/2598200
Dear all, after updating my Mathematica installation to version 13.1, I ran a few tests to check CUDA functionality. Things worked fine except for **CUDADot**. The command
CUDADot[Range[10],Range[10]]
should give the scalar product
385
However, what one gets is a pile of error messages:
StringReplace::strse: String or list of strings expected at position 1 in StringReplace[{1,2,3,4,5,6,7,8,9,10}[_class],`->_].
StringReplace::strse: String or list of strings expected at position 1 in StringReplace[{1,2,3,4,5,6,7,8,9,10}[_class],`->_]
StringReplace::strse: String or list of strings expected at position 1 in StringReplace[StringReplace[{1,2,3,4,5,6,7,8,9,10}[_class],`->_],`->_].
General::stop: Further output of StringReplace::strse will be suppressed during this calculation.
...
CUDADot::notsupported: CUDADot does not support StringReplace[{1,2,3,4,5,6,7,8,9,10}[_class],`->_]-StringReplace[{1,2,3,4,5,6,7,8,9,10}[_class],`->_] product.
with CUDADot returning the unprocessed input arguments:
CUDADot[{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, {1, 2, 3, 4, 5, 6, 7, 8, 9,
10}]
The other examples in the documentation computing dot products of two matrices or dot products of a matrix with a vector work just fine. Anybody able to reproduce this behaviour?
The system I am running Mathematica on is SUSE Linux 15.3 with an NVIDIA GeForce GTX 1060, both CUDA and Graphics Driver updated to latest versions: CUDA toolkit 11.7 and Driver version 515.65.1Karl Krieger2022-08-15T12:26:47ZHow do I change output size before truncation from the Linux Terminal ?
https://community.wolfram.com/groups/-/m/t/1886019
I recently installed Wolfram Mathematica in a instance in Google Cloud using GPUs and I'm running it inside Jupyter Notebook, Python 3, using Wolfram Client library. However, big outputs, like a 400,000 connections social network are being prevented from being shown:
![Truncated][1]
He is my code:
a1=list(a.iloc[:,1].astype(str))
a2=list(a.iloc[:,2].astype(str))
b=[i for i in list(a1)]
b2=[i for i in list(a2)]
punct=w1.Flatten(w1.StringCases(w1.CharacterRange(1, 65535), w1.PunctuationCharacter))
c1=w1.StringDelete(b,punct)
c2=w1.StringDelete(b2,punct)
edges=wlexpr('f[x_,y_]:=CommunityGraphPlot[Graph[UndirectedEdge[x[[#]], y[[#]]] & /@ Range[Dimensions[x][[1]]]],FindGraphCommunities[Graph[UndirectedEdge[x[[#]], y[[#]]] & /@ Range[Dimensions[x][[1]]]]]]');
h=w1.f(c1,c2);
path2 = "/home/rubens/Math/data2.jpg"
cr=session.evaluate(w1.Export(path2,h , "JPG"));
import imageio
import matplotlib.pyplot as plt
from PIL import Image
im1 = imageio.imread('/home/rubens/Math/data2.jpg')
plt.imshow(im1)
plt.show()
I tried Show[] but it does not solve the problem. I noticed it's possible to setup a maximum output before truncation and I guess this would solve my problem, but I don't know how to do this using Linux terminal command line, given that Jupyter does not offer a Mathematica menu.
Any ideas are welcome.
[1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=doubt.png&userId=992056Rubens Zimbres2020-02-23T19:14:01Z