Re: [brlcad-devel] request for some help

2017-04-20 Thread Shailesh Tripathi
Hello Sir, I changed the ID_HRT value to the one defined in "include/rt/defines.h" but I am still not able to get any output. For the other errors, I am still figuring out how to use GDB. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) O

Re: [brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-08 Thread Shailesh Tripathi
the *"part" *patch and felt that I made the necessary changes. It would be a lot help if someone could help me with the debugging. I apologize for my unprofessional behaviour, but my curiousness to get the patch working made me flush the list with mails. Regards Shailesh Shailesh

Re: [brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-08 Thread Shailesh Tripathi
As I said, > Also, I added the line > >> *#define ID_HRT 32* > > in rt.cl file. > Please consider this too. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Apr 8, 2017 at 11:53 AM, Vasco Alexandre da Silva Costa &l

Re: [brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-07 Thread Shailesh Tripathi
Hello, PFA the link for the patch for HRT primitive: https://sourceforge.net/p/brlcad/patches/459/ Also, I added the line > *#define ID_HRT 32* in rt.cl file. But I am getting a blank screen in the buffer frame. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering

Re: [brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-07 Thread Shailesh Tripathi
What could be the error now? On Apr 6, 2017 1:00 AM, "Shailesh Tripathi" < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > Hello, > I forgot to define ID_HRT. So i added: > #define ID_HRT 32 > in rt.cl file. > Do I need to make any more changes to invoke hrt_shot() a

Re: [brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-05 Thread Shailesh Tripathi
4, 2017 4:46 AM, "Vasco Alexandre da Silva Costa" < vasco.co...@gmail.com> wrote: > On Tue, Apr 4, 2017 at 12:14 AM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> >> On Mon, Apr 3, 2017 at 1:54 PM, Shailesh Tripathi <

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-04-03 Thread Shailesh Tripathi
Thanks Daniel :) Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sun, Apr 2, 2017 at 10:36 PM, Daniel Roßberg wrote: > This created a heart for me: > in heart.s hrt 0 0 0 1 0 0 0 1 0 0 0 1 10 > > Regards, > Daniel > > 2017-04-02 4:

[brlcad-devel] Issue with HRT and HYP primitive ported to OpenCL

2017-04-03 Thread Shailesh Tripathi
e check what can be the possible issues. https://sourceforge.net/p/brlcad/patches/459/ Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) -- Check out the vibrant tech communi

[brlcad-devel] Small error in shade_segs_kernel

2017-04-01 Thread Shailesh Tripathi
Hello, In clt_frame() function clt_shade_segs_kernel is launced over 1-D threads. But in the kernel definition *"get_global_id(1)" *is also used. Though this would not give wrong output but, technically its wrong. Correct me if I am missing something. Regards Shailesh Shailesh Tripa

Re: [brlcad-devel] Introduction: Shailesh Tripathi

2017-04-01 Thread Shailesh Tripathi
Another scope of optimization which I feel is to use atomic operations. I realized this while reading the rt.cl code. I feel there is a scope of using atomic operations to boost. What are your views regarding this? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-04-01 Thread Shailesh Tripathi
> make hrt hrt > e hrt > rt -z1 'make hrt hrt' gives usage error as 'hrt' is not in the name list. Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sun, Apr 2, 2017 at 7:08 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.co

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-04-01 Thread Shailesh Tripathi
) Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Apr 1, 2017 at 7:48 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > You need to make sure OpenCL is enabled with 'cmake' (e.g. using > 'cmake-gui'

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-04-01 Thread Shailesh Tripathi
Hello, The OpenCL rt finally works :) To test my code, could someone please give me some set of commands to successfully make and run raytrace over an HRT primitive. I tried: http://brlcad.org/~Izak/Export_test.png But 'rt' command fails for this. (Error: Shailesh Tripathi B.Tec

Re: [brlcad-devel] Introduction: Shailesh Tripathi

2017-04-01 Thread Shailesh Tripathi
> > >- DSP >- HLF > >*HALF not included (sorry for typo). > >- HYP >- SUPERELL >- EBM >- EXTRUDE >- REVOLVE >- HF (I am not very sure) >- SUBMODEL (a bit difficult one) > > Shailesh Tripathi B.Tech. P

Re: [brlcad-devel] Introduction: Shailesh Tripathi

2017-03-31 Thread Shailesh Tripathi
these many primitives would be enough to keep me engaged for the 3 months. Do let me know your suggestions. Also, I am active on irc.freenode with handle "shailesh". Please tell me when you are free. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU

Re: [brlcad-devel] Introduction: Shailesh Tripathi

2017-03-31 Thread Shailesh Tripathi
My proposal: https://docs.google.com/document/d/1cmIVxU22cFENhS4OvE2JCpIJy_g4ZRYsNIPyklTC1i8/edit?usp=sharing Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Apr 1, 2017 at 5:33 AM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: &

Re: [brlcad-devel] Introduction: Shailesh Tripathi

2017-03-31 Thread Shailesh Tripathi
Hello, Please review my proposal for project "OpenCL GPGPU raytracing" in GSOC,2017. In the proposal, the code work flow chart is left. I will complete it by today. Thanks in advance! Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On T

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-31 Thread Shailesh Tripathi
After setting the environment variables correctly, clinfo and vector_addition codes are working fine. But the error with "rt -z" is the same. Do I need to set any other configuration paths? How does rt detect opencl? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engin

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-30 Thread Shailesh Tripathi
s, it says > *Planning to run with 8 processors* > > */usr/brlcad/dev-7.26.1/bin/rt -M -z -u* > > *opendb model;* > *tree /home/**path_to_build**/mick1.g shapes.r; * > > *rt: rt_dirbuild(model) failure * > *Raytrace failed.* > Is there any example (with the commands)

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-30 Thread Shailesh Tripathi
same with no signs of OpenCL compilation. Please tell me how and what exactly to do for OpenCL compilation. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Tue, Mar 28, 2017 at 9:24 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com>

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-27 Thread Shailesh Tripathi
rame buffer window (with raytrace) is closed. Thank in advance! Cheers Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Mon, Mar 27, 2017 at 5:37 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > I was doing that only but I thi

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-27 Thread Shailesh Tripathi
hanks for the help :) Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Mon, Mar 27, 2017 at 11:23 AM, Christopher Sean Morrison wrote: > > > On Mar 24, 2017, at 6:25 PM, Shailesh Tripathi itbhu.ac.in> wrote: > > > >

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-26 Thread Shailesh Tripathi
ot able to find any working solution. If there is a way from which I can run the OpenCL code without the involvement of OpenGL, it would be the fastest solution. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sun, Mar 26, 2017 at 7:35 PM, V

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-25 Thread Shailesh Tripathi
L. Thanks in advance! Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Mar 25, 2017 at 12:22 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itbhu.ac.in> wrote: > Hello, > 1. I am getting the same error "*Xlib: extension "

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
code -DBRLCAD_ENABLE_OPENGL=OFF*" but it is not helping. Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Mar 25, 2017 at 5:45 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > AFAIK OpenCL should work without Ope

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
there somewhere else I need to change. I just deleted the build folder and built again using the cmake command. Please tell me how can I resolve the issue. Thanks in advance! Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Mar 25, 2017 at 1:58

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
he case I am getting the same error. Is there any other way to test it for the time being? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Sat, Mar 25, 2017 at 1:43 AM, Christopher Sean Morrison wrote: > Not necessarily. BRL-CAD has a varie

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
If OpenGL libraries are not installed correctly then shouldn't there be issue with raytracer launched from graphics window also? Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Fri, Mar 24, 2017 at 10:36 PM, Shailesh Tripathi < shailesh.tripathi.ec...@itb

Re: [brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
Hello, I am using centos 6.8 For OpenGL, should I install the libraries from mesa-libgl, GLEW or freeglut? Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Fri, Mar 24, 2017 at 10:29 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.

[brlcad-devel] Raytrace Query: rt from command window

2017-03-24 Thread Shailesh Tripathi
uot;, ret=-1.* *rt: can't open frame buffer* *Raytrace failed.* I have installed OpenGL on my system. Also, what changes do I need to make for using raytrace using "OpenCL" with the command "*rt -z1*" Regards Shailesh Tripathi Shailesh Tripathi B.Tech. Part-IV Electroni

[brlcad-devel] Introduction: Shailesh Tripathi

2017-03-20 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
Hello, To introduce myself in the mailing list: I am Shailesh Tripathi pursuing B.Tech. (Part-IV) in Electronics Engineering from IIT-BHU, Varanasi, India. I am looking forward to apply for GSOC,2017 for the project "OpenCL GPGPU raytracing". Currently I am working on porting the prim

Re: [brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-20 Thread Shailesh Tripathi
Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Tue, Mar 21, 2017 at 2:51 AM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Mar 20, 2017 at 2:54 PM, Shailesh Tripathi < > shailesh.tripathi.ec...@itbhu.ac.in> wrote: &g

Re: [brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-20 Thread Shailesh Tripathi
n other files? 3. In "common.cl", *'bn_complex_t' *is defined but '*bn_poly_t' *is not. So I I defined it in "common.cl" itself. Regards Shailesh On Mon, Mar 20, 2017 at 2:37 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: &

Re: [brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-20 Thread Shailesh Tripathi
Hey Vasco, Thanks a lot :) That was a lot of knowledge in a single go :) I will try these out and I hope to complete the task correctly ASAP :) Regards Shailesh Shailesh Tripathi B.Tech. Part-IV Electronics Engineering IIT-BHU (Varanasi) On Mon, Mar 20, 2017 at 2:59 PM, Vasco Alexandre da

Re: [brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-19 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
G' *eliminated in the the kenels and how does *'BU_LIST_INSERT(&(seghead->l), &(segp->l));* ' be equivalent to '*do_segp(res, idx, &hits[0], &hits[1]);' *? Thanks in advance :) Regards Shailesh Shailesh Tripathi B.Tech. Part-III Electronics

Re: [brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-19 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
Shailesh Tripathi B.Tech. Part-III Electronics Engineering IIT-BHU (Varanasi) On Mon, Mar 20, 2017 at 12:11 AM, Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA) wrote: > Hello, > While writing the.cl file, I got stuck at a data type "*bn_poly_t*" and &

[brlcad-devel] OpenCL code query "bn_poly_t"

2017-03-19 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
hem would not be any issue. :) Regards Shailesh Shailesh Tripathi B.Tech. Part-III Electronics Engineering IIT-BHU (Varanasi) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slas

[brlcad-devel] OpenCL code Query

2017-03-18 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
Hello, I am planning to apply for GSOC,2017. Since the past few days I am trying to understand the OpenCL code for primitives. I have a doubt in the code. What is the role of the function 'clt_ehy_pack()' for the 'ehy' primitive? Thanks in advance :) Regards Shailesh Shai

[brlcad-devel] Fwd: OpenCL code query

2017-03-18 Thread Shailesh Tripathi , B.Tech., Electronics Engg., IIT (BHU), Varanasi (INDIA)
Hello, I am planning to apply for GSOC,2017. Since the past few days I am trying to understand the OpenCL code for primitives. I have a doubt in the code. What is the role of the function 'clt_ehy_pack()' for the 'ehy' primitive? Thanks in advance :) Regards Shailesh Shai