Replies: 4 comments 1 reply
-
I think it's harmless to include, but in theory a minimal proposal could leave it out - on the Web, the value of |
Beta Was this translation helpful? Give feedback.
-
I can appreciate the general use case of: I have some data-parallel kernel, how many threads should I run it on? My initial knee-jerk reaction is to worry that making this an instruction is a virtualizability hazard and thus we should go the import route as Conrad suggests. That being said, once you have a way to measure time (noting that, once you have threads+shmem, you have a high-res way to measure time even without importing time), you can measure There's also more subtle questions that you can see outlined in this Firefox bug and the moz.dev.platform threads it links to that ask whether we should have something more nuanced than a single |
Beta Was this translation helpful? Give feedback.
-
Agreed that both usability and implications of this are unclear enough, and that this should be post-MVP material. |
Beta Was this translation helpful? Give feedback.
-
+1 for post-MVP. |
Beta Was this translation helpful? Give feedback.
-
The section describing the
thread.hw_concurrency
instruction argues that something like this is necessary for some parallel algorithms (e.g., data parallel ones) to perform optimally. That section also discusses some of the fingerprinting concerns of such an instruction. What do you think — isthread.hw_concurrency
necessary?Beta Was this translation helpful? Give feedback.
All reactions