Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6529837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:41:01+00:00 2026-05-25T09:41:01+00:00

I would like to port a physics simulation algorithm to GPU using OpenCL for

  • 0

I would like to port a physics simulation algorithm to GPU using OpenCL for performance; I have no experience with OpenCL, and I am looking around. The computations are mostly small dense matrix (3×3) and vector products, cross-products and so on.

  1. Is there some “standard”/recommended library for such basic operations? I certainly don’t want to code matrix multiplications and inversions myself (not time, and it would be inefficent)

  2. As OpenCL does not have classes, operator overloading etc, do I have to write mmul(a,mtrans(b)) instead of a*b.transpose() for instance?

  3. Are there some (planned) extensions/evolution of OpenCL (or pre-processor, for that matter) to make the notation more math-like? I have the impression of going back to fortran years. (I know there is CUDA, but it is vendor-bound)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:41:02+00:00Added an answer on May 25, 2026 at 9:41 am

    If you know for a fact that you are limited to 3-dimensional objects, then you might consider using the double3 type (or float3 if your gpu doesn’t support double precision).

    So far, only vectors are supported, so you will have to do some coding yourself regarding any use of matrix multiplication or inversion. However, you might be interested in the following built-in geometric functions. In particular, dot products and cross products are defined.

    You might also be interested to know that there are reserved data types for futures implentations of matrices: see for example double n x m. In your case, if available in the future, you will be able to use double3x3 types for your matrices.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple c++ utilities that I would like to port over to
I would like to port an ActiveX of mine (to Silverlight) that have the
I have an iPhone app that I would like to port over to the
I have the following regex in PHP: /(?<=\')[^\'\s][^\']*+(?=\')|(?<=)[^\s][^]*+(?=)|[^\',\s]+/ and I would like to port
i would like to send a stream of bytes to a serial port using
I have a .NET Windows service that I would like to port to Mono
I have the next for nested loop and I would like to port it
I would like to port a program which is using urllib and json (Python
I would like to send a .gif file over a serial port connection using
I would like to port my C/C++ apps to OS X. I don't have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.