By default, each task is allocated with 1 cpu core. To increase this, you can dynamically change the number of cores allocated;
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.task.cpus=<number of cores>