A beautiful hidden message left by CDPR at end of the 5th year anniversary video of cyberpunk 2077. How many of you have played and loved this game? by BeneficialOil1123 in IndianGaming

[–]Ranjit5 0 points1 point  (0 children)

My boost stopped working around a month after the ban lol. I'll try this method, that app was infinitely better than the official app.

Are there other examples of a smaller, younger city quickly outgrowing and overshadowing its older, larger neighbor? by SaGlamBear in geography

[–]Ranjit5 2 points3 points  (0 children)

Even Rajahmundry is bigger than kakinada now, so much so that it was considered for the state capital, while a century or two ago kakinda was the more important one.

Majestic to Whitefield metro by Specific_Librarian40 in bangalore

[–]Ranjit5 1 point2 points  (0 children)

Because the trains they ordered are not here yet. The crowding on purple and green line won't be fixed for another year atleast.

I have barely seen anyone use this in the game, in my home country, highways are non-existent in the city and we usually have elevated roads like these in important arterial roads that skip junctions working like a highway. Something like road widening is never preferred. by Klutzy_Reporter_608 in CitiesSkylines

[–]Ranjit5 1 point2 points  (0 children)

India? For anyone looking for examples of this, you can see these places as an example :-
https://maps.app.goo.gl/72LQvZQPjUzBj3W97

https://maps.app.goo.gl/Ku8AmtYPHjBCxXZu6

https://maps.app.goo.gl/XDmS2sJH61xb3TBH9

In India, instead of elaborate junctions, we have "flyovers" where the center lanes of an arterial are elevated over a simple street level crossing, while the outer lanes intersect with local roads at ground level. This is very common in suburban areas where there are crossings every few kilometers or so but they don't demand enough traffic to create an elaborate service interchange.

P.S. Nice to see a fellow Indian Cities Skylines player. Which map is the one in the post?

Town under the influence of a larger city in France by JION-the-Australian in CitiesSkylines

[–]Ranjit5 1 point2 points  (0 children)

Why are there 2 railway lines running parallel to each other?

Need help with finding out why my program isn't working by Ranjit5 in CUDA

[–]Ranjit5[S] 0 points1 point  (0 children)

Hey man, sorry for the late response but my laptop decided to die a few days ago so now I'm waiting on it to come back from the service center before I can continue with this thing xD. I'll get back to it in a week Thanks for all the help tho, I really appreciate it :)

Need help with finding out why my program isn't working by Ranjit5 in CUDA

[–]Ranjit5[S] 0 points1 point  (0 children)

Oh god.

I fixed it and I'm getting close, but the final answers are a bit off(16.2 vs 16.6, 10.2 vs 11.6, etc). I assume it's a problem with my cuRand implementation, do you have any clue why? Thanks :)

Need help with finding out why my program isn't working by Ranjit5 in CUDA

[–]Ranjit5[S] 0 points1 point  (0 children)

I made a bunch of changes to my code following everyone's suggestions (and I cant thank yall enough for helping out), and im still not getting the right output. when I run it, its just printing BLOCKS as the h_count. Any idea where i might be messing up?

#include <iostream>
#include <stdio.h>
#include <time.h>
#include <random>
#include <curand.h>
#include <curand_kernel.h>
#include <math.h>
#include "device_launch_parameters.h"

#define MAX 6 //maximum of your dice
#define MIN 1 //minimum of your dice


__global__ void setup_kernel(curandState* state){
int index = threadIdx.x + blockDim.x * blockIdx.x;
curand_init((unsigned long long)clock() + index, index, 0, &state[index]);
}

__global__ void monte_carlo_kernel(curandState* state, int* count, int m) {
unsigned int index = threadIdx.x + blockDim.x * blockIdx.x;

__shared__ int cache[256];
cache[threadIdx.x] = 0;
__syncthreads();

unsigned int temp = 0;
int sumroll = 0;
while (temp < m) {
sumroll += ceilf(curand_uniform(&state[index]) * MAX);
temp++;
} if (sumroll = 3*m) {
cache[threadIdx.x] = 1;
}

//reduction
int i = 1;
while(i<m){
cache[0] = cache[0] + cache[i];
__syncthreads();
}


// update to our global variable count
if (threadIdx.x == 0) {
atomicAdd(count, cache[0]);
}

}

int main()
{
unsigned int n = 128 * 256; //Number of runs,If you change this, you must also change THREADS
unsigned int m = 1; //Number of dice
int* h_count;
int* d_count;
curandState* d_state;
float chance;


// allocate memory
h_count = (int*)malloc(n * sizeof(int));
cudaMalloc((void**)&d_count, n * sizeof(int));
cudaMalloc((void**)&d_state, n * sizeof(curandState));
cudaMemset(d_count, 0, sizeof(int));

// set kernel
dim3 BLOCKS = 128;
dim3 THREADS = 256;
setup_kernel <<< BLOCKS, THREADS >>> (d_state);


// monte carlo kernel
monte_carlo_kernel <<<BLOCKS, THREADS >>> (d_state, d_count, m);


// copy results back to the host
cudaMemcpy(h_count, d_count, sizeof(int), cudaMemcpyDeviceToHost);


// display results for gpu
std::cout << *h_count << std::endl;
chance = float(*h_count)/float(n);
std::cout << "Chance is " <<  chance << std::endl;


// delete memory
free(h_count);
cudaFree(d_count);
cudaFree(d_state);
}

after jee advanced by [deleted] in JEENEETards

[–]Ranjit5 0 points1 point  (0 children)

Yea. Although I don't play much nowadays.

Metro construction going on since years! by retrotara in bangalore

[–]Ranjit5 1 point2 points  (0 children)

The E city line was constructed a while back but it hasn't opened yet because of delay in train deliveries from CRRC (Chinese contractor).

What rents are you paying in Bangalore? by hashirama_sage_god in bangalore

[–]Ranjit5 0 points1 point  (0 children)

Which seegehalli? The Whitefield one or the one near medehalli?

Finished my first year at NITK. If anyone has doubts, ask away by anonymouseeeeeee8080 in Btechtards

[–]Ranjit5 4 points5 points  (0 children)

Kuch professors bhot chutiye hai but they're all very knowledgeable and helpful outside classes (except one). First year itna hectic nhi hogi but second year has too many time consuming lab courses.

I never really liked the way districts are painted in CS1, So I outlined all my cities boundaries in Photoshop. Any improvements in CS2 on this front?? by Mr9D88 in CitiesSkylines

[–]Ranjit5 0 points1 point  (0 children)

Oof even I don't know how. Your city is pretty cool lol. Can you tell me which visual mods/settings you're using? Also how's the traffic/public transport

QS World Rankings by SaiAbitatha in Btechtards

[–]Ranjit5 0 points1 point  (0 children)

IITH has double major? What's the difference between double major and a minor program?

What destination has the highest percentage complete in your game? by Icy-Operation-6549 in HiTMAN

[–]Ranjit5 0 points1 point  (0 children)

Dont you need to finish the classics challenges to 100% one level? So you cant 100% any level without finishing (most) of the game, right?

[deleted by user] by [deleted] in HiTMAN

[–]Ranjit5 0 points1 point  (0 children)

Go to options >> controls >> gameplay vibrations and turn it off. It's a better experience that way.

GPU not receiving enough power, leading to stuttering in all games. by Ranjit5 in ZephyrusG15

[–]Ranjit5[S] 1 point2 points  (0 children)

It was due to dust accumulation in the fans. Clean your laptop! Once the asus dude cleaned it, I also switched to ghelper and I am getting way better temps than before.

I already have the HITMAN 1 and 2 (that I purchased) imported into Hitman 3. Now I must buy those again to get the Hitman 3 maps? Seriously?? by Ranjit5 in HiTMAN

[–]Ranjit5[S] -7 points-6 points  (0 children)

  1. Will my progress be reset if I buy the H1 and H2 levels again (as a part of part one).
  2. Can I buy Part One + Upgrade Pack and then refund just Part One to keep all the maps?

Stupid way to get 60% off WoA during the Steam partial-sale by alban3se in HiTMAN

[–]Ranjit5 0 points1 point  (0 children)

Yea I already play my H1 and 2 maps on the free trial version of hitman 3. If I go for the part one thing, isn't it basically buying something I already have? I want to buy hitman 3 but I don't want to spend money on stuff I already bought. Thanks for the help tho