#[kernel] fn add(a: *const f64, b: *const f64, c: *mut f64) { ... } でadd関数に加えて const ADD_PTX: &'static str = "{{ptx文字列}}"; を定義したい...
-
-
Replying to @termoshtt
関数と同名のモジュール作ってそこに放り込むのはどうですか? fn add(...) { ... } mod add { pub const PTX_STR: &str = "..."; }
1 reply 0 retweets 1 like -
Replying to @termoshtt
素直に適用できない場合があるかもしれないですが(生成されるitemがサブモジュールにあるとまずいなど)、基本的にはこの方式で追記していくのが一番素直だと(個人的には)思いますね
10:44 PM - 28 Feb 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.