Search found 22 matches

by multineu
Mar 30, 2018 11:10
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 6715

Re: New version?

Making FreeBasic able to compile existing code to run on GPU is not realistic: as far as I know, not even GCC or FreePascal can do that. The reason is that a GPU works in a completely different way, and the code has to be different. Even if it resembles C, the GLSL is not C, and existing C code can...
by multineu
Mar 30, 2018 10:45
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 6715

Re: New version?

Making FreeBasic able to compile existing code to run on GPU is not realistic: as far as I know, not even GCC or FreePascal can do that. The reason is that a GPU works in a completely different way, and the code has to be different. Even if it resembles C, the GLSL is not C, and existing C code can...
by multineu
Mar 26, 2018 9:19
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 6715

Re: New version?

Many compliments for all the work as been done so far; nevertheless new enhancements could have been done including parallel processing and exploit modern GPU. This feature could be reached expanding the now ready llvm. I guess it would be possible to run parallel code on GPU and quickly making pro...
by multineu
Mar 23, 2018 13:16
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 6715

Re: New version?

The Freebasic project itself is awesome! Many compliments for all the work as been done so far; nevertheless new enhancements could have been done including parallel processing and exploit modern GPU. This feature could be reached expanding the now ready llvm. I guess it would be possible to run par...
by multineu
Mar 20, 2018 14:56
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 6715

New version?

Hello,
what about a new freebasic release?
by multineu
Sep 30, 2015 9:29
Forum: Community Discussion
Topic: second rnd sequence
Replies: 8
Views: 1572

Re: second rnd sequence

Well I make many experiments about spiking neural networks and would like to see the behaviour of two identical nets feeding them with two different random inputs. Of course I cannot limit the sequence after a buffer is fulfilled. If the buffer is done then I cannot see the next evolving of the nets...
by multineu
Sep 24, 2015 15:25
Forum: Community Discussion
Topic: second rnd sequence
Replies: 8
Views: 1572

Re: second rnd sequence

Thankyou for your very precious answer; I will soon take a look at that.
by multineu
Sep 24, 2015 6:54
Forum: Community Discussion
Topic: second rnd sequence
Replies: 8
Views: 1572

second rnd sequence

Hello guys,
does anyone ever had the need to have a second random sequence? That is the possibility to generalize the randomize and rnd functions with a parameter that indicates the number of the sequence to use.
Thanks
by multineu
Jul 06, 2015 13:38
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Yes I did it: porting an FBC program in C, restructuring it to accomodate the CUDA contest and then recompile it. It runs; ok but the procedure must be done once: the step to integrate CUDA context is not very easy. Maybe FBC does not have to worry about C symbols and syntax: the user is responsible...
by multineu
Jul 05, 2015 14:09
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

My request of C code inline (I do again repeat) is simle: GPU computational power is a sweet candy that no one can resist for a long while. Having a cuda board into the pc withut using it for general purpose computational tasks is a shame. C++ code of the cuda toolkit is powerful and not too complic...
by multineu
Jul 05, 2015 13:57
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Maybe the final goal will be reached when llvm backend will be ready.
by multineu
Jun 26, 2015 15:20
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Adding keywords would be the first step and would be great! This would permit everybody to build its own GPU procedures. Moreover must be checked if the statement into a __device__ sub would be executable by the GPU. An example: the rnd() function is not directly executable by the GPU when the CPU d...
by multineu
Jun 26, 2015 9:32
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Of course it is not C standard if not for some new keywords of the nvcc.
Once the code would be generated from Freebasic to C introducing the new keywords then it would be manually compiled with nvcc
by multineu
Jun 26, 2015 8:47
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Hi angros47, all you say is true: I did it months ago but the limitation is that you have to use the pre-built functions that uses the GPU. The great things would be to directly compile GPU code written in Freebasic. Ok this is still not possible so I wondered if it was possible to insert piece of c...
by multineu
Jun 25, 2015 10:06
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5215

Re: C code generation

Never the less C code generation could include GPU code support. Not just appending a __global__ keyword in front of the sub (starting at least from this point and then adding full GPU support). I guess GPU horsepower with Freebasic easy of use would be very very appreciated. I tried to link some .o...

Go to advanced search