Comments (15)
I'm not sure this would be that useful. I'd imagine that WebGL is far slower than what OpenCL or CUDA can achieve.
from nufhe.
I'm not sure this would be that useful. I'd imagine that WebGL is far slower than what OpenCL or CUDA can achieve.
but if supported,the code can be compiled to wasm by emscripten and run in mobile phoen.
1, as my tested data,the GPU in mobile is powerful enough for computing.
2,usually,no much data needed to be handled in one phone for phone is a private device and only handle some little private data.
from nufhe.
some times,the mobile phone GPU is more powerful than some PC's
from nufhe.
So, the reason to add WebGL will allow us to compile to WASM? Can we not just do this with extensions to, say, Rust instead of having to add support for another backend?
from nufhe.
main reason is to support running in browser and mobile env
from nufhe.
and then many apps can use this feature
from nufhe.
only server/pc env usage is so limited and more and more private data is in mobile phone.
many people have no server to service self and also they may not have an trusted service provider
from nufhe.
What use cases are you envisioning for mobile-based FHE applications?
from nufhe.
FHE is to protect privacy.
for modern people,the most privacy is stored and used in mobile phone.
if FHE can not be used in mobile phone, the people should maintain a server to do that?
or people should trust a 3rd-party organize to maintain a server to do that ?
from nufhe.
Right, that's great -- we definitely need more privacy in our devices/applications/etc.
What I want to understand is what exactly you're hoping to accomplish with WebGL here. Is there something you'd like to build on a mobile variant? If so, what is it?
from nufhe.
I would like to do a job-find and recruit platform.
The platform make matching based on AI using encrypted data and return encrypted result to requestor and requestor share the result though the platform
from nufhe.
Many people find job on phone and many company find employee on phone
from nufhe.
Actually, you don't need to process encrypted data on the phone. You will certainly need to encrypt and decrypt on the phone (I believe, should be possible to do, yes), but the difficult part is happening on a server without the server knowing anything (and that is the whole point)
from nufhe.
yes,i don't "PROCESS" it,but i need encrypt/decrypt it using homomorphic encryption
from nufhe.
Ok, sorry for taking so long to reply, here's my five cents.
-
"cuda/opencl are all needing 3rd-party plugins to installed" - that's true (if you stretch the definition of "plugin"), but so does webgl - it requires a browser, and some kind of an interface from Python to it. I do not know much about mobile platforms and the current state of running arbitrary code in the browser (e.g. whether it can be accessed from Python, or the other way around).
-
I am not sure how well WebGL is suited for general purpose computations and not specifically for graphics. If it's anything like OpenGL, as its name suggests, it will be quite hard to do GPGPU on it.
-
Apparently, OpenCL does support mobile GPUs. Whether it will be faster than using the CPU (for this particular purpose) is uncertain, but will be interesting to test. It also seems to be a more straightforward way to use the GPU (and will require less new code).
Now I just want to ascertain what your goal is, that is, what you want to be able to do, without going into implementation details. If you want to encrypt/decrypt without a GPU, that is quite easy to do: these are just simple inner products that numpy
can handle fast enough. If you want to do that in a browser, that may require writing a JS library, which will be more time-consuming (although if it's just encryption and decryption, still pretty straightforward).
from nufhe.
Related Issues (20)
- GPU concatenation raises an error after computation HOT 8
- [Feature Request] Support for CPU/non-GPU systems? HOT 1
- python3 ./gate_nand.py Traceback (most recent call last): File "./gate_nand.py", line 2, in <module> import nufhe ModuleNotFoundError: No module named 'nufhe' HOT 2
- Some detail about TLWE sample HOT 2
- Performance evaluation HOT 2
- how to compile library locally after cloning from git HOT 2
- Exception: No supported GPGPU APIs found HOT 1
- key genration error HOT 1
- Can we decomp tlwe in Galios Field?
- speed of gate bootstrapping
- how to parallize nufhe code like openmp style for loops
- 80-bit security key instead of 128 HOT 1
- Precision in binary gates, how to use binary gates in sequence HOT 1
- Connect TFHE to other HE schemes HOT 2
- how to use nufhe without bootstrapping only using leveled homomorphic encryption. comparison of with and without bootstrapping of homomorphic encryption time and error HOT 1
- gate_mux with the OverflowError :"Python int too large to convert to C long"
- Some of the details about FFTs in `implementation_details.rst` are incorrect HOT 1
- βsecret_key, cloud_key = ctx.make_key_pair()β raise error
- mux gate not working in program
- installing nufhe in raspberry pi4 model b computer.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nufhe.