Questions tagged [compiler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
91 views

Tensor product inside the compiler

The compiler does not have support for tensor product, are there any packages that implements the tensor product in a way that can be compiled? I need to take the tensor product of several numeric ...
Felipe's user avatar
  • 489
0 votes
0 answers
50 views

Are you surprised with the apparent inconsistency in what this CompiledCodeFunction returns?

I am using Mathematica 12.2 with MacOS, and I do this: ...
Ted Ersek's user avatar
  • 929
1 vote
1 answer
101 views

LMDB Library cannot be loaded by `LibraryLoad`, how to compile properly

I cloned LMDB* from https://github.com/LMDB/lmdb and compiled on a Mac M1 with make -e clean liblmdb.so CC="cc -target aarch64-macos-none" which produced ...
Adam's user avatar
  • 3,947
4 votes
1 answer
99 views

Mathematica 12.0 finds Visual studio C compiler for use of CompilationTarget -> "C" in Compile but Compile does not work

I installed Visual Studio and then the command CCompilers[] in Mathematica 12.0 nicely gives: {{"Name" -> "Visual Studio", "Compiler" -> CCompilerDriver...
Wise View's user avatar
2 votes
2 answers
136 views

How to use global variables in FunctionCompile?

In FunctionCompile, system does not recognize external functions and external global variables by default. But we can use ...
swish47's user avatar
  • 153
3 votes
0 answers
151 views

Will the new compiler give access to pointer arithmetic like that done in C?

I was watching this video and came across the Handle type construct in the new compiler. So my question is the new Handle[...] ...
user13892's user avatar
  • 9,385
2 votes
0 answers
126 views

LTemplate and external library Armadillo

As a great fan of the simplicity of the LTemplate library for the end user I am now faced with a problem when apparently everything compiles correctly but the functions are not loaded from the library....
pbx's user avatar
  • 842
0 votes
0 answers
52 views

Basic question of "good" habits during the evaluation of a notebook in mathematica

Suppose that I have notebook, call it Nb1. And I want to evaluate the notebook Nb1, next suppose that the process is slow, but I have to evaluate other notebooks, suppose Nb2, and Nb3. I see that ...
Mauricio Cruz Reyes's user avatar
16 votes
1 answer
267 views

How to use CompilerOptions?

The refpage for FunctionCompile's option CompilerOptions is empty of examples: Does anyone know what keys and values can be ...
M.R.'s user avatar
  • 31.5k
17 votes
2 answers
540 views

How to use DataStructure in FunctionCompile?

The official document said compile a function that can work with data structures but how to use it? There is no doubt that it is possible to use DataStructure as a function parameter: ...
miRoox's user avatar
  • 323
3 votes
0 answers
60 views

any way to study the number of CPU cycles used for a computation?

I do speed comparisons for various functions and algorithms, and ultimately, the speed of some section of program code depends on the number of CPU cycles. This can vary wildly across operating ...
Andreas Lauschke's user avatar
20 votes
1 answer
496 views

How to link C++ code through the new compiler in V12?

The Advanced Compilation Topics talk in the WTC 2018 shows that one can easily link C++ code through the new compiler technology. This feature seems very useful as one can easily load existing C++ ...
xslittlegrass's user avatar
65 votes
2 answers
1k views

New Compiler Technology in V12

I am wondering whether the speed of compilation for the new compiler can be improved. Here are the results from my test. Consider the following function for generating a random draw from a gamma ...
Asim's user avatar
  • 1,150
18 votes
3 answers
829 views

How to use the library exported from FunctionCompileExportLibrary outside of Mathematic (e.g., in Visual Studio)?

Mathematica 12 has a new function FunctionCompileExportLibrary, which can export a pure function as a .dll file like this: <...
yode's user avatar
  • 26.7k
4 votes
1 answer
90 views

Why will functions from the SystemModelConfiguration` package not evaluate?

Documentation page now improved (checked in v13.0) According to the tutorial Compiler for System Modeling I should be able to verify the installation of a C++ ...
gwr's user avatar
  • 13.5k
44 votes
1 answer
2k views

What's the deal with next generation Wolfram compiler?

Sources: Old Compiler (Rob Knapp Nov2011) Computer Science in Mathematica (Abdul Dakkak Dec2014) Compilation Technology (Tom Wickham-Jones, Abdul Dakkak & Steve Wilson Dec2015) The Wolfram ...
user13892's user avatar
  • 9,385