Re: [brlcad-devel] OpenCL Boolean Evaluation Status Report

2016-08-22 Thread Param Hanji
Here's the link I promised https://catchchaos.wordpress.com/2016/08/21/gsoc-wrap-up/ On Tue 23 Aug, 2016, 10:28 AM Param Hanji, wrote: > Hello, > > I'm attaching a link to my final blog post summarising my work during the > summer. This is the same link that I'm subm

Re: [brlcad-devel] OpenCL Boolean Evaluation Status Report

2016-08-22 Thread Param Hanji
Hello, I'm attaching a link to my final blog post summarising my work during the summer. This is the same link that I'm submitting as part of the final evaluation on the official GSoC website. Kindly let me know if any changes are required. Best, Param Hanji On Sat 13 Aug, 2016, 11:5

[brlcad-devel] OpenCL Boolean Evaluation Status Report

2016-08-13 Thread Param Hanji
Hi, For GSoC this year I've worked to improve OpenCL support for BRL-CAD. I started off with accelerating a few of the primitives. This was basically writing kernel code for the shoot algorithms for various primitives. I had accelerated EPA just before GSoC began. This was followed up with ETO an

Re: [brlcad-devel] OpenCL Runtime Debugging

2016-08-12 Thread Param Hanji
ght since the code is in OpenCL > rather than C/C++. > > On Mon, Aug 8, 2016 at 5:55 AM, Param Hanji > wrote: > >> Hello, >> >> Does anyone know about any tools that can be used for runtime debugging >> OpenCL programs? >> >> I've written some c

[brlcad-devel] OpenCL Runtime Debugging

2016-08-07 Thread Param Hanji
n the kernel and then print out its value to see if certain parts of the code (an if condition block for example) were processed. This doesn't seem to be working though. Thank you P

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-19 Thread Param Hanji
y occured. Does this make sense? On Mon, Jul 18, 2016 at 10:42 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Jul 14, 2016 at 3:07 PM, Param Hanji > wrote: > >> >> >> Try -P1 if you want only 1 worker process/thread. >>> >>

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-11 Thread Param Hanji
> Hmmm. There seem to be a couple of issues here: > > The boolean weaving code expects seg_in.hit_rayp and seg_out.hit_rayp to > be pointing to something. These values are mostly used for debug printfs in > bool.c with the exception of bool.c:bool_max_raynum. So I changed this to > point to a dummy

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-04 Thread Param Hanji
On Mon, Jul 4, 2016 at 9:52 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Jul 4, 2016 at 12:30 PM, Param Hanji > wrote: > >> Hi Vasco, >> >> I tried everything and still no luck. I'm pretty sure just copying inhits >>

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-07-04 Thread Param Hanji
lternative approach, I feel I should go ahead with GPU partition structure. Let me know what you feel. Thank you, Param On Mon, Jun 27, 2016 at 6:54 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Jun 27, 2016 at 11:33 AM, Param Hanji > wrote: > >&g

[brlcad-devel] Week Long Vacation

2016-06-28 Thread Param Hanji
Hi, I will be out of town for a couple days on a vacation. I had mentioned this in my proposal as well, so I hope this alright. I'll resume work by Monday at the latest. Best, Param -- Attend Shape: An AT&T Tech Expo Ju

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-27 Thread Param Hanji
> > Also the GPU side seg_sti doesn't have the same meaning at all. It's a > unique solid id. In the soltabs list. So '0' would be the first valid solid > in the soltabs list. So your code should work like this: > > unsigned int i=0; > RT_VISIT_ALL_SOLTABS_START(stp, a->a_rt_i) { > /* I

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-23 Thread Param Hanji
On Wed, Jun 22, 2016 at 7:43 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Jun 22, 2016 at 2:36 PM, Param Hanji > wrote: > >> - in copy_to_cpu if gpu_seg->seg_sti is zero the cpu_seg->seg_stp->st_id >>> will be unin

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-22 Thread Param Hanji
- in copy_to_cpu if gpu_seg->seg_sti is zero the cpu_seg->seg_stp->st_id > will be uninitialized. worse. you are writing to an uninitialized pointer. > what I think you want to do is lookup the seg_stp pointer based on the > seg_sti id and use that to initialize the cpu->seg_stp pointer field. > I

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-16 Thread Param Hanji
#x27;d be great if someone could figure out where I'm going wrong. Thanks. Param On Wed, Jun 8, 2016 at 4:32 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Jun 8, 2016 at 8:04 AM, Param Hanji > wrote: > >> Another thing I realized is that

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-08 Thread Param Hanji
On Tue, Jun 7, 2016 at 8:41 PM Christopher Sean Morrison wrote: > > It's called automatically when you invoke through any of the rt* tools and > is manually in each saveview script as a simple "end;" directive. The > command table translates the "end" string into a call to cm_end() via > rt_do_c

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-06-06 Thread Param Hanji
t; On Fri, May 27, 2016 at 2:33 PM, Param Hanji > wrote: > >> Thanks a lot! Any leads on how to use the partition list output by >> boolfinal()? I'll need to convert this back into an array of segs to be >> further processed. >> > Can I just copy inhit and

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-05 Thread Param Hanji
On Sun, Jun 5, 2016 at 6:14 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Jun 2, 2016 at 10:36 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Thu, Jun 2, 2016 at 6:55 PM, Param Hanji >> wrote: >> &

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-06-02 Thread Param Hanji
> Double precision floating point support is optional under OpenCL. You > should check (e.g. with clinfo) if your hardware/driver supports double > precision. > > You can force OpenCL librt to use single precision (float), that must be > hardware supported as part of the basic OpenCL specification,

Re: [brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-05-30 Thread Param Hanji
.co...@gmail.com> wrote: > I don't know the MacOS X environment much. But it might be the executable > can't find the path where the .dynlibs are installed. > > On Mon, May 30, 2016 at 3:56 PM, Param Hanji > wrote: > >> Hello all, >> >> My laptop was o

[brlcad-devel] Dynamic Linker in OS X 10.11.4

2016-05-30 Thread Param Hanji
Hello all, My laptop was overheating a little. and was also having some issues with driver support for the GPU. So, I decided to change it. However, I'm having some trouble getting BRL-CAD working. Compilation and installation using 'make' happen as expected. All the tests pass too. However when

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-27 Thread Param Hanji
Thanks a lot! Any leads on how to use the partition list output by boolfinal()? I'll need to convert this back into an array of segs to be further processed. Best, Param Hanji On Fri, May 27, 2016 at 5:39 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Fri

Re: [brlcad-devel] Understanding Data Structures

2016-05-24 Thread Param Hanji
mean converting output from clt_frame() into a suitable form to call the generic do_run() function, instead of the OpenCL specific clt_run(). I'll start working on this. Best, Param On Mon, May 9, 2016 at 8:00 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, M

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-19 Thread Param Hanji
On Thu, May 19, 2016 at 8:28 PM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, May 19, 2016 at 1:52 PM, Param Hanji > wrote: > >> Hi, >> >> You could basically copy the segments list results from clt_frame() to >>> the CPU

Re: [brlcad-devel] GSoC 2016 - BRL-CAD

2016-05-19 Thread Param Hanji
Hi, You could basically copy the segments list results from clt_frame() to the > CPU side and then process the list with ANSI C rt_boolweave and > rt_boolfinal. Then send the processed results from the CPU back to the GPU > side for rendering. > Then when you implement rt_boolweave and rt_boolfina

Re: [brlcad-devel] librt OpenCL starting point

2016-05-12 Thread Param Hanji
rays (the per ray parallelization you mentioned). Is this correct? Best, Param On Fri, May 13, 2016 at 5:13 AM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, May 12, 2016 at 11:22 AM, Param Hanji > wrote: > ... > >> Where does the parallelizati

Re: [brlcad-devel] Understanding Data Structures

2016-05-09 Thread Param Hanji
> See page 19 in this presentation to understand how the line segments are > generated: > http://web.iitd.ac.in/~hegde/cad/lecture/L30_solidmod_basics.pdf > > In fact you would be well advised to read the entire presentation. > > I did go through the presentation. However it contains only 18 pages

[brlcad-devel] Understanding Data Structures

2016-05-08 Thread Param Hanji
data structures. Links to an article or a book would be nice. Thank you for your time. Best, Param Hanji -- Find and fix application performance issues faster with Applications Manager Applications Manager provides

Re: [brlcad-devel] GSOC Propsal Review

2016-03-24 Thread Param Hanji
d. I understand that the mentors have a lot of proposals to review and have their hands full, but at the same time am a little apprehensive. Thanks a lot for your time! Best, Param On Mon 21 Mar, 2016, 7:24 PM Param Hanji, wrote: > Hello, > > I made my proposal more detailed. I'll

Re: [brlcad-devel] Help understanding code

2016-03-22 Thread Param Hanji
Hi Currently the blank screen issue happens only with EPA. The others work fine. On Tue 22 Mar, 2016, 9:28 AM Vasco Alexandre da Silva Costa, < vasco.co...@gmail.com> wrote: > On Tue, Mar 22, 2016 at 3:17 AM, Param Hanji > wrote: > >> I updated my svn repo to revision

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Param Hanji
I updated my svn repo to revision 67420. However, rt.cl wasn't changed and I still can't get a preview. Also, here's the patch. On Tue, Mar 22, 2016 at 1:27 AM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Mar 21, 2016 at 4:58 AM, Christopher Sean Morrison > wrote: > >

Re: [brlcad-devel] GSOC Propsal Review

2016-03-21 Thread Param Hanji
Hello, I made my proposal more detailed. I'll continue doing so as I learn more about bool.c. Have a look at it now. I've given comment access to everyone, so feel free to add comments. I also included a weekly breakup of the tasks as Sean suggested. Thank you, Param On Mon, Mar 21, 2016 at 9:44

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Param Hanji
On Mon, Mar 21, 2016 at 10:28 AM Christopher Sean Morrison wrote: > > Still no image preview? > > > Nope. I still get a blank image. I tried generating the png with the -l2 option as well as the -W as suggested. Still no luck Best, Param --

Re: [brlcad-devel] Help understanding code

2016-03-21 Thread Param Hanji
Hello, Ok, now the code compiles! I checked the code and functionally it looks > good. But you need to indent the code according to the BRL-CAD coding > style. e.g. indent the code with 4 spaces and use regular tabs with 8 > spaces. This is particularly noticeable in the .cl file. > > The style ru

Re: [brlcad-devel] GSOC Propsal Review

2016-03-20 Thread Param Hanji
Hi, Thank you so much! I'll work on a slightly more detailed one. In the meanwhile if anyone has any other comments kindly let me know. Best, Param On Mon 21 Mar, 2016, 1:26 AM Vasco Alexandre da Silva Costa, < vasco.co...@gmail.com> wrote: > On Sun, Mar 20, 2016 at 5:12 A

[brlcad-devel] GSOC Propsal Review

2016-03-19 Thread Param Hanji
Hello all, Here's a link to the first draft of my GSOC propsal. Kindly have a look at it and let me know what you think. :) https://docs.google.com/document/d/1kyVGZAqAKm-scHCUFBQrB2nyrG20xRTOINSMAQtPC6I/edit?usp=sharing Thank You Param

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
_solid_pack’: > .../brlcad/trunk/src/librt/primitives/primitive_util.c:648:25: error: > implicit declaration of function ‘clt_epa_pack’ > [-Werror=implicit-function-declaration] > case ID_EPA:size = clt_epa_pack(pool, stp); break; > ^ > > > On

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
Hello, On Thu, Mar 17, 2016 at 4:57 AM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Wed, Mar 16, 2016 at 9:44 PM, Param Hanji > wrote: > > You will need a lot of time to port bool.c so you need to schedule > appropriately. That code is rife wit

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
rote: > >> On Wed, Mar 16, 2016 at 8:26 PM, Vasco Alexandre da Silva Costa < >> vasco.co...@gmail.com> wrote: >> >>> On Wed, Mar 16, 2016 at 8:15 PM, Param Hanji >> > wrote: >>> >>>> Hi Vasco Costa, >>>> >>>> Yes -z 1 d

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
Here's the new patch. On Sat, Mar 19, 2016 at 6:32 PM Param Hanji wrote: > Oops I did manually edit the patch. I ran diff again and uploaded the > patch without changes. I also changed the ID used to 19. > > On Sat 19 Mar, 2016, 2:51 AM Vasco Alexandre da Silva Costa, < >

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
lva Costa < > vasco.co...@gmail.com> wrote: > >> On Fri, Mar 18, 2016 at 1:17 PM, Param Hanji >> wrote: >> >>> Hello, >>> >>> On Thu, Mar 17, 2016 at 4:57 AM Vasco Alexandre da Silva Costa < >>> vasco.co...@gmail.com> wrote: >>>

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
On 17-Mar-2016 6:47 AM, "Vasco Alexandre da Silva Costa" < vasco.co...@gmail.com> wrote: > > On Wed, Mar 16, 2016 at 11:26 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: >> >> gal >> On Wed, Mar 16, 2016 at 9:44 PM, Param Hanji

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
hu, Mar 17, 2016 at 7:54 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Thu, Mar 17, 2016 at 7:47 PM, Christopher Sean Morrison < >> brl...@mac.com> wrote: >> >>> >>> >>> On Mar 17, 2016, at 05:33 AM, Para

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
9:32 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Wed, Mar 16, 2016 at 9:12 PM, Param Hanji >> wrote: >> >>> Yes, there was an error message on the terminal. Manually copying >>> everything to my current directory worked. Compi

Re: [brlcad-devel] Help understanding code

2016-03-19 Thread Param Hanji
On Fri, Mar 18, 2016 at 6:47 PM Param Hanji wrote: > > I'll start looking into the code as soon as i can. Is there any resource I > can refer to get a brief high level understanding of how ray tracing > occurs. I have no knowledge of computer graphics and even theoretical >

Re: [brlcad-devel] Help understanding code

2016-03-18 Thread Param Hanji
r the if following block (if (opencl_mode)) is not entered. opencl_mode is set at opt.c at case: 'z'. I still don't know why its value doesn't change even if use -z option. Best, Param On Wed, Mar 16, 2016 at 8:35 AM Param Hanji wrote: > Hello, > > Yup I did run th

Re: [brlcad-devel] Help understanding code

2016-03-18 Thread Param Hanji
@gmail.com> wrote: > On Wed, Mar 16, 2016 at 7:36 PM, Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> On Wed, Mar 16, 2016 at 7:28 PM, Param Hanji >> wrote: >> >>> Hi, >>> >>> Installing the AMD SDK gave me OpenC

Re: [brlcad-devel] Help understanding code

2016-03-15 Thread Param Hanji
> wrote: > >> On Tue, Mar 15, 2016 at 11:52 AM, Param Hanji > > wrote: >> >>> Further reading hinted at the lack of OpenCL 1.2 on Nvidia graphics >>> cards. The clinfo package for Ubuntu doesn't recognize my GPU for the same >>> reason. >&g

Re: [brlcad-devel] Help understanding code

2016-03-15 Thread Param Hanji
.1 is listed. How do I move forward? Thanks, Param On Tue 15 Mar, 2016, 3:50 PM Param Hanji, wrote: > > > > I guess Cmake isn't detecting OpenCL on your system. You might have to > run 'cmake-gui' in order to point to the place where the OpenCL include &

Re: [brlcad-devel] Help understanding code

2016-03-15 Thread Param Hanji
> > I guess Cmake isn't detecting OpenCL on your system. You might have to run 'cmake-gui' in order to point to the place where the OpenCL include files (e.g. CL/cl.h) and libraries (libOpenCL.so) are located in your system. > Did you do basic tests to see if OpenCL is correctly installed? You can

Re: [brlcad-devel] Help understanding code

2016-03-14 Thread Param Hanji
Hello, I got the -z working. However only CPU parallelization is done. In my build/CmakeCache.txt, the boolean BRLCAD_ENABLE_OPENCL is OFF. I'm guessing that's why my OpenCL files don't compile. How do I change this? -- T

Re: [brlcad-devel] Help understanding code

2016-03-14 Thread Param Hanji
Hi everyone, Sorry for the brief period of absence. I did a fresh build and got the GUI working. A build with .cl file for accelerating epa also completes successfully. I've generated the .patch file as well. However, parallel ray trace fails on every primitive(including ell, ehy, sph etc). I get

Re: [brlcad-devel] google summer of code : Geometry Conversion Library

2016-03-08 Thread Param Hanji
Hi Margaret, > I have successfully checkout the SVN source and built in my Ubuntu 14.04 > > The make command gives > BRL-CAD Release 7.25.0, Build 20160308 > > The make test command gives > The following tests FAILED: >1 - NOTE: some 'test' tests are expected to fail, 'regress' must pass > (F

Re: [brlcad-devel] Help understanding code

2016-03-08 Thread Param Hanji
27;mged' starts and offers to attach either a text file or a null. But that's not an issue as I'm fine working with the command line. Just want to know how I can view the trace. Best, Param Hanji On Tue, Mar 8, 2016 at 1:08 AM Vasco Alexandre da Silva Costa < vasco.co...@gmai

Re: [brlcad-devel] Help understanding code

2016-03-08 Thread Param Hanji
PS: I can't seem to get 'brlterm' to run as well(don't know how to). For now I'm launching 'mged' directly from /usr/brlcad/dev-7.25.0/bin/mged. Cheers, Param Hanji On Tue, Mar 8, 2016 at 8:01 AM Param Hanji wrote: > Um running 'rt' gives me a

Re: [brlcad-devel] Help understanding code

2016-03-08 Thread Param Hanji
r use the raytrace command from the mged menus. > > On Tue, Mar 8, 2016 at 2:31 AM, Param Hanji > wrote: > >> Um running 'rt' gives me a message "view does not exist". The same >> message is displayed if I try any other primitive(like ell, sph as well). >&

Re: [brlcad-devel] Help understanding code

2016-03-07 Thread Param Hanji
>> The primitives folder has the primitive implementation code. See >> librt/primitives/primitive_util.c for the OpenCL C calls proper. >> >> On Sat, Mar 5, 2016 at 7:10 AM, Param Hanji >> wrote: >> >>> Hello, >>> >>> I was going throug

[brlcad-devel] Help understanding code

2016-03-05 Thread Param Hanji
ion calls like clCreateContext(), clGetPlatformIDs(), clGetDeviceIDs(), etc. So I just don't know where to start. Any kind of help would be great. Maybe someome could point to some resources that I could go through. Thank yo

[brlcad-devel] (no subject)

2016-03-05 Thread Param Hanji
ion calls like clCreateContext(), clGetPlatformIDs(), clGetDeviceIDs(), etc. So I just don't know where to start. Any kind of help would be great. Maybe someome could point to some resources that I could go through. Thank yo

Re: [brlcad-devel] (no subject)

2016-03-03 Thread Param Hanji
Can I have a link to the existing code please? On Fri, Mar 4, 2016 at 12:02 AM Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Thu, Mar 3, 2016 at 6:23 PM, Param Hanji > wrote: > >> Hello, >> >> I'm an undergraduate student majoring in

[brlcad-devel] (no subject)

2016-03-03 Thread Param Hanji
one kindly tell me about this or other projects that I could work on? Thank you in advance! Cheers, Param Hanji -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 A