# Is there a way to convert mathematica code to OpenMP or OpenACC?

I see that Mathematica has limited support for things like OpenCL and CUDA, but what about other standards like OpenMP or OpenACC?

-
Out of curiosity, do you know of a different system offering less limited CUDA support ? –  b.gatessucks Oct 22 '12 at 17:21
@b.gatessucks The double negatives you use confuse me. –  drN Oct 22 '12 at 17:29
@drN I have a CUDA-enabled GPU so if there is a system which supports that better than Mathematica I'd be very interested. –  b.gatessucks Oct 22 '12 at 17:32
@b.gatessucks right on! –  drN Oct 22 '12 at 18:45
Using OpenMP is a bit troublesome since most of Mathematica's internals are not thread-safe. That's (part of) why the parallelism model of the Parallel` package is distributed- rather than shared-memory multiprocessing. That being said, you can generate C code from compiled functions and insert the OpenMP directives yourself if you want, although this should be considered purely experimental. –  Oleksandr R. Oct 23 '12 at 1:52