Susumu Yamazaki

Results 59 comments of Susumu Yamazaki

I wrote sample generated code: ```c static ERL_NIF_TERM func(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) { if (__builtin_expect((argc != 1), false)) { return enif_make_badarg(env); } if (__builtin_expect(enif_is_empty_list(env, argv[0]), false)) {...

@hisaway I'll write ideal generated native code, soon later.

@hisaway The following code is ideal generated native code, though I haven't test yet (new code fragments are `enif_get_2_double_vec_from_number_tuple_list` and `map_mult_elem_2`): ``` // This file was generated by Pelemay.Generator.Native #include...

If run the following on `iex`, such a segmentation fault doesn't occur: ```elixir iex> LogisticMap.logistic_map_10_pelemay(1..16) ```

> Q. Will Pelemay support other GPU vendors than Nvidia (CUDA)? > A. I'd like to focus on NVIDIA, first, because CUDA is much faster than OpenCL, and is de...

This problem is fixed according to this: https://qiita.com/yoya/items/630c991a98e4554e6e87 I guess Pelemay should check whether `/usr/include` exists or not on Mac OS. If not, Pelemay should put a message to reinstall...

I found this article: https://qiita.com/yoya/items/c0b26cba3c040c581643 This said, /usr/include is deprecated by Catalina and Xcode 11.

The code ```elixir {usr_include_org, usr_lib_org} = {"/usr/include", "/usr/lib"} {usr_include, usr_lib} = case :os.type() do {:unix, :darwin} -> if is_nil(System.find_executable("xcrun")) do {usr_include_org, usr_lib_org} else {result, error_code} = System.cmd("xcrun", ["--sdk", "macosx", "--show-sdk-path"])...

This issue is reflected from #49 Thank you @piacerex and @josevalim