You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to support more functions from third-party libraries to make taichi more powerful in practice. To achieve this goal, we are trying to include common math libraries like LAPACK, BLAS, Eigen,...
The text was updated successfully, but these errors were encountered:
import ctypes
import os
import taichi as ti
ti.init(dynamic_index=True)
source = '''
void foo(int* a, int b[2][2]) {
a[0] = 11;
b[0][0] = 10;
}
'''
ces = ti.CompileExternalSource(source)
@ti.kernel
def call_ext():
b = 0
a = ti.Vector([[0, 0], [0, 0]], ti.i32)
print(a, b)
ti.call_cpp(ces, "foo", b, a)
print(a, b)
call_ext()
squarefk
changed the title
Call external function with llvm bitcode and ctypes
Call external function with llvm bitcode
Sep 16, 2021
Issue: #
### Brief Summary
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 96d400f</samp>
Comment out redundant code that copies C API library in
`cmake/TaichiCAPI.cmake`. This fixes the Windows issue of finding the
library by the Python wrapper.
### Walkthrough
<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at 96d400f</samp>
* Remove unnecessary copy command for C API library
([link](https://github.com/taichi-dev/taichi/pull/8014/files?diff=unified&w=0#diff-10352bff7efe48325ce87e625e5f5a62bb33011655bbf87c25c7fafb7e9077deL98-R112)).
This fixes the issue #2879 where the C API library was not found by the
Python wrapper on Windows. The `install` command already copies the
library to the output directory, so the extra copy command was redundant
and caused conflicts.
We would like to support more functions from third-party libraries to make taichi more powerful in practice. To achieve this goal, we are trying to include common math libraries like LAPACK, BLAS, Eigen,...
The text was updated successfully, but these errors were encountered: